iir_pci.c (127135) | iir_pci.c (143160) |
---|---|
1/*- 2 * Copyright (c) 2000-03 ICP vortex GmbH 3 * Copyright (c) 2002-03 Intel Corporation 4 * Copyright (c) 2003 Adaptec Inc. 5 * All Rights Reserved 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ident "$Id: iir_pci.c 1.2 2003/08/26 12:29:55 achim Exp $" 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000-03 ICP vortex GmbH 3 * Copyright (c) 2002-03 Intel Corporation 4 * Copyright (c) 2003 Adaptec Inc. 5 * All Rights Reserved 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ident "$Id: iir_pci.c 1.2 2003/08/26 12:29:55 achim Exp $" 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/iir/iir_pci.c 127135 2004-03-17 17:50:55Z njl $"); | 34__FBSDID("$FreeBSD: head/sys/dev/iir/iir_pci.c 143160 2005-03-05 18:17:35Z imp $"); |
35 36/* 37 * iir_pci.c: PCI Bus Attachment for Intel Integrated RAID Controller driver 38 * 39 * Written by: Achim Leubner <achim.leubner@intel.com> 40 * Written by: Achim Leubner <achim_leubner@adaptec.com> 41 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com> 42 * --- 120 unchanged lines hidden (view full) --- 163DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); 164 165static int 166iir_pci_probe(device_t dev) 167{ 168 if (pci_get_vendor(dev) == INTEL_VENDOR_ID && 169 pci_get_device(dev) == INTEL_DEVICE_ID_IIR) { 170 device_set_desc(dev, "Intel Integrated RAID Controller"); | 35 36/* 37 * iir_pci.c: PCI Bus Attachment for Intel Integrated RAID Controller driver 38 * 39 * Written by: Achim Leubner <achim.leubner@intel.com> 40 * Written by: Achim Leubner <achim_leubner@adaptec.com> 41 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com> 42 * --- 120 unchanged lines hidden (view full) --- 163DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0); 164 165static int 166iir_pci_probe(device_t dev) 167{ 168 if (pci_get_vendor(dev) == INTEL_VENDOR_ID && 169 pci_get_device(dev) == INTEL_DEVICE_ID_IIR) { 170 device_set_desc(dev, "Intel Integrated RAID Controller"); |
171 return (0); | 171 return (BUS_PROBE_DEFAULT); |
172 } 173 if (pci_get_vendor(dev) == GDT_VENDOR_ID && 174 ((pci_get_device(dev) >= GDT_DEVICE_ID_MIN && 175 pci_get_device(dev) <= GDT_DEVICE_ID_MAX) || 176 pci_get_device(dev) == GDT_DEVICE_ID_NEWRX)) { 177 device_set_desc(dev, "ICP Disk Array Controller"); | 172 } 173 if (pci_get_vendor(dev) == GDT_VENDOR_ID && 174 ((pci_get_device(dev) >= GDT_DEVICE_ID_MIN && 175 pci_get_device(dev) <= GDT_DEVICE_ID_MAX) || 176 pci_get_device(dev) == GDT_DEVICE_ID_NEWRX)) { 177 device_set_desc(dev, "ICP Disk Array Controller"); |
178 return (0); | 178 return (BUS_PROBE_DEFAULT); |
179 } 180 return (ENXIO); 181} 182 183 184static int 185iir_pci_attach(device_t dev) 186{ --- 298 unchanged lines hidden --- | 179 } 180 return (ENXIO); 181} 182 183 184static int 185iir_pci_attach(device_t dev) 186{ --- 298 unchanged lines hidden --- |