Deleted Added
full compact
iir_pci.c (232882) iir_pci.c (254379)
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

--- 16 unchanged lines hidden (view full) ---

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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#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

--- 16 unchanged lines hidden (view full) ---

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/dev/iir/iir_pci.c 232882 2012-03-12 19:29:32Z jmallett $");
33__FBSDID("$FreeBSD: head/sys/dev/iir/iir_pci.c 254379 2013-08-15 20:03:22Z jkim $");
34
35/*
36 * iir_pci.c: PCI Bus Attachment for Intel Integrated RAID Controller driver
37 *
38 * Written by: Achim Leubner <achim.leubner@intel.com>
39 * Written by: Achim Leubner <achim_leubner@adaptec.com>
40 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>
41 *

--- 116 unchanged lines hidden (view full) ---

158
159DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0);
160MODULE_DEPEND(iir, pci, 1, 1, 1);
161MODULE_DEPEND(iir, cam, 1, 1, 1);
162
163static int
164iir_pci_probe(device_t dev)
165{
34
35/*
36 * iir_pci.c: PCI Bus Attachment for Intel Integrated RAID Controller driver
37 *
38 * Written by: Achim Leubner <achim.leubner@intel.com>
39 * Written by: Achim Leubner <achim_leubner@adaptec.com>
40 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>
41 *

--- 116 unchanged lines hidden (view full) ---

158
159DRIVER_MODULE(iir, pci, iir_pci_driver, iir_devclass, 0, 0);
160MODULE_DEPEND(iir, pci, 1, 1, 1);
161MODULE_DEPEND(iir, cam, 1, 1, 1);
162
163static int
164iir_pci_probe(device_t dev)
165{
166 if (pci_get_vendor(dev) == INTEL_VENDOR_ID &&
166 if (pci_get_vendor(dev) == INTEL_VENDOR_ID_IIR &&
167 pci_get_device(dev) == INTEL_DEVICE_ID_IIR) {
168 device_set_desc(dev, "Intel Integrated RAID Controller");
169 return (BUS_PROBE_DEFAULT);
170 }
171 if (pci_get_vendor(dev) == GDT_VENDOR_ID &&
172 ((pci_get_device(dev) >= GDT_DEVICE_ID_MIN &&
173 pci_get_device(dev) <= GDT_DEVICE_ID_MAX) ||
174 pci_get_device(dev) == GDT_DEVICE_ID_NEWRX)) {

--- 309 unchanged lines hidden ---
167 pci_get_device(dev) == INTEL_DEVICE_ID_IIR) {
168 device_set_desc(dev, "Intel Integrated RAID Controller");
169 return (BUS_PROBE_DEFAULT);
170 }
171 if (pci_get_vendor(dev) == GDT_VENDOR_ID &&
172 ((pci_get_device(dev) >= GDT_DEVICE_ID_MIN &&
173 pci_get_device(dev) <= GDT_DEVICE_ID_MAX) ||
174 pci_get_device(dev) == GDT_DEVICE_ID_NEWRX)) {

--- 309 unchanged lines hidden ---