isp_pci.c (6e5c5328c4942c39b0f484b2b968a26a7da1e65d) isp_pci.c (ed34d0ade2848f88c70b745d77380c5069ebdfd6)
1/* $FreeBSD$ */
2/*
3 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
4 * FreeBSD Version.
5 *
6 * Copyright (c) 1997, 1998, 1999, 2000 by Matthew Jacob
7 *
8 * Redistribution and use in source and binary forms, with or without

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

611 (void) resource_int_value(device_get_name(dev), device_get_unit(dev),
612 "debug", &isp_debug);
613
614#ifdef ISP_SMPLOCK
615 /* Make sure the lock is set up. */
616 mtx_init(&isp->isp_osinfo.lock, "isp", MTX_DEF);
617 locksetup++;
618
1/* $FreeBSD$ */
2/*
3 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
4 * FreeBSD Version.
5 *
6 * Copyright (c) 1997, 1998, 1999, 2000 by Matthew Jacob
7 *
8 * Redistribution and use in source and binary forms, with or without

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

611 (void) resource_int_value(device_get_name(dev), device_get_unit(dev),
612 "debug", &isp_debug);
613
614#ifdef ISP_SMPLOCK
615 /* Make sure the lock is set up. */
616 mtx_init(&isp->isp_osinfo.lock, "isp", MTX_DEF);
617 locksetup++;
618
619 if (bus_setup_intr(dev, irq, INTR_TYPE_CAM | INTR_MPSAFE,
619 if (bus_setup_intr(dev, irq, INTR_TYPE_CAM | INTR_MPSAFE | INTR_ENTROPY,
620 isp_pci_intr, isp, &pcs->ih)) {
621 device_printf(dev, "could not setup interrupt\n");
622 goto bad;
623 }
624#else
620 isp_pci_intr, isp, &pcs->ih)) {
621 device_printf(dev, "could not setup interrupt\n");
622 goto bad;
623 }
624#else
625 if (bus_setup_intr(dev, irq, INTR_TYPE_CAM,
625 if (bus_setup_intr(dev, irq, INTR_TYPE_CAM | INTR_ENTROPY,
626 isp_pci_intr, isp, &pcs->ih)) {
627 device_printf(dev, "could not setup interrupt\n");
628 goto bad;
629 }
630#endif
631
632 /*
633 * Set up logging levels.

--- 1220 unchanged lines hidden ---
626 isp_pci_intr, isp, &pcs->ih)) {
627 device_printf(dev, "could not setup interrupt\n");
628 goto bad;
629 }
630#endif
631
632 /*
633 * Set up logging levels.

--- 1220 unchanged lines hidden ---