if_ath_pci.c (140427) | if_ath_pci.c (143163) |
---|---|
1/*- 2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 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 --- 21 unchanged lines hidden (view full) --- 30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 32 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 34 * THE POSSIBILITY OF SUCH DAMAGES. 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting 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 --- 21 unchanged lines hidden (view full) --- 30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 32 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 34 * THE POSSIBILITY OF SUCH DAMAGES. 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath_pci.c 140427 2005-01-18 18:08:16Z sam $"); | 38__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath_pci.c 143163 2005-03-05 19:06:12Z imp $"); |
39 40/* 41 * PCI/Cardbus front-end for the Atheros Wireless LAN controller driver. 42 */ 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/module.h> --- 38 unchanged lines hidden (view full) --- 85static int 86ath_pci_probe(device_t dev) 87{ 88 const char* devname; 89 90 devname = ath_hal_probe(pci_get_vendor(dev), pci_get_device(dev)); 91 if (devname != NULL) { 92 device_set_desc(dev, devname); | 39 40/* 41 * PCI/Cardbus front-end for the Atheros Wireless LAN controller driver. 42 */ 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/module.h> --- 38 unchanged lines hidden (view full) --- 85static int 86ath_pci_probe(device_t dev) 87{ 88 const char* devname; 89 90 devname = ath_hal_probe(pci_get_vendor(dev), pci_get_device(dev)); 91 if (devname != NULL) { 92 device_set_desc(dev, devname); |
93 return 0; | 93 return BUS_PROBE_DEFAULT; |
94 } 95 return ENXIO; 96} 97 98static u_int32_t 99ath_pci_setup(device_t dev) 100{ 101 u_int32_t cmd; --- 189 unchanged lines hidden --- | 94 } 95 return ENXIO; 96} 97 98static u_int32_t 99ath_pci_setup(device_t dev) 100{ 101 u_int32_t cmd; --- 189 unchanged lines hidden --- |