ar71xx_spi.c (256572) | ar71xx_spi.c (257338) |
---|---|
1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_spi.c 256572 2013-10-16 02:10:35Z adrian $"); | 29__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_spi.c 257338 2013-10-29 14:07:31Z nwhitehorn $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33 34#include <sys/bus.h> 35#include <sys/interrupt.h> 36#include <sys/malloc.h> 37#include <sys/kernel.h> --- 49 unchanged lines hidden (view full) --- 87 struct resource *sc_mem_res; 88 uint32_t sc_reg_ctrl; 89}; 90 91static int 92ar71xx_spi_probe(device_t dev) 93{ 94 device_set_desc(dev, "AR71XX SPI"); | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33 34#include <sys/bus.h> 35#include <sys/interrupt.h> 36#include <sys/malloc.h> 37#include <sys/kernel.h> --- 49 unchanged lines hidden (view full) --- 87 struct resource *sc_mem_res; 88 uint32_t sc_reg_ctrl; 89}; 90 91static int 92ar71xx_spi_probe(device_t dev) 93{ 94 device_set_desc(dev, "AR71XX SPI"); |
95 return (0); | 95 return (BUS_PROBE_NOWILDCARD); |
96} 97 98static int 99ar71xx_spi_attach(device_t dev) 100{ 101 struct ar71xx_spi_softc *sc = device_get_softc(dev); 102 int rid; 103 --- 189 unchanged lines hidden --- | 96} 97 98static int 99ar71xx_spi_attach(device_t dev) 100{ 101 struct ar71xx_spi_softc *sc = device_get_softc(dev); 102 int rid; 103 --- 189 unchanged lines hidden --- |