isp_pci.c (2127f26023a9be443e05b592b35c77b454ba8f77) isp_pci.c (2fa86a2b839377d971e9a9a655243ccb427cc546)
1/* $FreeBSD$ */
1/* $FreeBSD$ */
2/* isp_pci.c 1.18 */
2/*
3 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
4 * FreeBSD Version.
5 *
6 *---------------------------------------
7 * Copyright (c) 1997, 1998 by Matthew Jacob
8 * NASA/Ames Research Center
9 * All rights reserved.

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

265 printf("isp%d: unable to map any ports!\n", unit);
266 free(pcs, M_DEVBUF);
267 return;
268 }
269 printf("isp%d: using %s space register mapping\n", unit,
270 pcs->pci_st == IO_SPACE_MAPPING? "I/O" : "Memory");
271
272 isp = &pcs->pci_isp;
3/*
4 * PCI specific probe and attach routines for Qlogic ISP SCSI adapters.
5 * FreeBSD Version.
6 *
7 *---------------------------------------
8 * Copyright (c) 1997, 1998 by Matthew Jacob
9 * NASA/Ames Research Center
10 * All rights reserved.

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

266 printf("isp%d: unable to map any ports!\n", unit);
267 free(pcs, M_DEVBUF);
268 return;
269 }
270 printf("isp%d: using %s space register mapping\n", unit,
271 pcs->pci_st == IO_SPACE_MAPPING? "I/O" : "Memory");
272
273 isp = &pcs->pci_isp;
274#if __FreeBSD_version >= 300006
273 (void) snprintf(isp->isp_name, sizeof(isp->isp_name), "isp%d", unit);
275 (void) snprintf(isp->isp_name, sizeof(isp->isp_name), "isp%d", unit);
276#else
277 (void) sprintf(isp->isp_name, "isp%d", unit);
278#endif
274 isp->isp_osinfo.unit = unit;
275
276 data = pci_conf_read(config_id, PCI_ID_REG);
277 if (data == PCI_QLOGIC_ISP) {
278 isp->isp_mdvec = &mdvec;
279 isp->isp_type = ISP_HA_SCSI_UNKNOWN;
280 isp->isp_param = &pcs->_z._x;
281 } else if (data == PCI_QLOGIC_ISP2100) {

--- 678 unchanged lines hidden ---
279 isp->isp_osinfo.unit = unit;
280
281 data = pci_conf_read(config_id, PCI_ID_REG);
282 if (data == PCI_QLOGIC_ISP) {
283 isp->isp_mdvec = &mdvec;
284 isp->isp_type = ISP_HA_SCSI_UNKNOWN;
285 isp->isp_param = &pcs->_z._x;
286 } else if (data == PCI_QLOGIC_ISP2100) {

--- 678 unchanged lines hidden ---