summaryrefslogtreecommitdiff
path: root/sys/dev/isp/isp_pci.c
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2002-07-11 03:25:04 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2002-07-11 03:25:04 +0000
commit73030e03ce43a5b08e7c70ececaa2a34e57471fb (patch)
tree4cdda3097fefd6ca5dc914e1e615c16f4926b81b /sys/dev/isp/isp_pci.c
parent7fb2cdd9eebcfdd2cdcb841f7261e7e11a65d210 (diff)
Notes
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r--sys/dev/isp/isp_pci.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index c37ea96a404b..1664b4735c72 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -62,10 +62,6 @@ isp_pci_dmateardown(struct ispsoftc *, XS_T *, u_int16_t);
static void isp_pci_reset1(struct ispsoftc *);
static void isp_pci_dumpregs(struct ispsoftc *, const char *);
-#ifndef ISP_CODE_ORG
-#define ISP_CODE_ORG 0x1000
-#endif
-
static struct ispmdvec mdvec = {
isp_pci_rd_isr,
isp_pci_rd_reg,
@@ -266,7 +262,7 @@ struct isp_pcisoftc {
bus_dma_tag_t dmat;
bus_dmamap_t *dmaps;
};
-ispfwfunc *isp_get_firmware_p = NULL;
+extern ispfwfunc *isp_get_firmware_p;
static device_method_t isp_pci_methods[] = {
/* Device interface */
@@ -281,7 +277,6 @@ static driver_t isp_pci_driver = {
};
static devclass_t isp_devclass;
DRIVER_MODULE(isp, pci, isp_pci_driver, isp_devclass, 0, 0);
-MODULE_VERSION(isp, 1);
static int
isp_pci_probe(device_t dev)
@@ -320,11 +315,12 @@ isp_pci_probe(device_t dev)
default:
return (ENXIO);
}
- if (device_get_unit(dev) == 0 && bootverbose) {
+ if (isp_announced == 0 && bootverbose) {
printf("Qlogic ISP Driver, FreeBSD Version %d.%d, "
"Core Version %d.%d\n",
ISP_PLATFORM_VERSION_MAJOR, ISP_PLATFORM_VERSION_MINOR,
ISP_CORE_VERSION_MAJOR, ISP_CORE_VERSION_MINOR);
+ isp_announced++;
}
/*
* XXXX: Here is where we might load the f/w module
@@ -689,7 +685,6 @@ isp_pci_attach(device_t dev)
}
isp_debug = 0;
- isp_debug = 0;
(void) resource_int_value(device_get_name(dev), device_get_unit(dev),
"debug", &isp_debug);