pxa_smi.c (241856) | pxa_smi.c (241885) |
---|---|
1/*- 2 * Copyright (c) 2006 Benno Rice. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Benno Rice. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/arm/xscale/pxa/pxa_smi.c 241856 2012-10-22 03:41:14Z eadler $"); | 26__FBSDID("$FreeBSD: head/sys/arm/xscale/pxa/pxa_smi.c 241885 2012-10-22 13:06:09Z eadler $"); |
27 28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bus.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/malloc.h> 34#include <sys/rman.h> --- 42 unchanged lines hidden (view full) --- 77 int, int, struct resource *); 78 79static void pxa_smi_add_device(device_t, const char *, int); 80 81static int 82pxa_smi_probe(device_t dev) 83{ 84 | 27 28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bus.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/malloc.h> 34#include <sys/rman.h> --- 42 unchanged lines hidden (view full) --- 77 int, int, struct resource *); 78 79static void pxa_smi_add_device(device_t, const char *, int); 80 81static int 82pxa_smi_probe(device_t dev) 83{ 84 |
85 if (resource_disabled("smi", device_get_unit(dev))) 86 return (ENXIO); 87 |
|
85 device_set_desc(dev, "Static Memory Interface"); 86 return (0); 87} 88 89static int 90pxa_smi_attach(device_t dev) 91{ 92 int error, i, dunit; --- 261 unchanged lines hidden --- | 88 device_set_desc(dev, "Static Memory Interface"); 89 return (0); 90} 91 92static int 93pxa_smi_attach(device_t dev) 94{ 95 int error, i, dunit; --- 261 unchanged lines hidden --- |