summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-04-05 08:16:23 +0000
committerbde <bde@FreeBSD.org>2004-04-05 08:16:23 +0000
commit8ff01ad78588c2228109302e270b64639208cdee (patch)
treeadbcc6b808103d4af4980c216d34b82d4cc207bb /sys/pci
parentad426d20c2816920c3f7fb41565bedfb2d9f34dc (diff)
downloadFreeBSD-src-8ff01ad78588c2228109302e270b64639208cdee.zip
FreeBSD-src-8ff01ad78588c2228109302e270b64639208cdee.tar.gz
Converted the isa probe and attach to new-bus so that this driver works
without the (defunct) isa compatibility shims. The new-bus-specific parts are very similar to the ones for the pci probe and attach. This was held up too long waiting for a repo copy to src/sys/dev/cy, so I decided to fix the files in their old place. This gives easier to read and merge diffs anyway. The "count" line in src/sys/conf/files won't be changed until after the repo copy, so old kernel configs that specify a count need not be (and must not be) changed until then. The count is just ignored in the driver. One unfinished detail is dynamic allocation of arrays with <count> and (<count> * 32) entries, and iteration over the arrays. This is now kludged with a fixed count of 10 (up to 10 cards with up to 32 ports each). Prodded by: imp Submitted by: mostly by imp Approved by: imp
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/cy_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/cy_pci.c b/sys/pci/cy_pci.c
index 9664651..c08c419 100644
--- a/sys/pci/cy_pci.c
+++ b/sys/pci/cy_pci.c
@@ -66,6 +66,8 @@ __FBSDID("$FreeBSD$");
#define PLX_9060 0x0c
#define PLX_9080 0x0d
+extern devclass_t cy_devclass;
+
void *cyattach_common(u_char volatile *iobase, int cy_align);
driver_intr_t cyintr;
@@ -86,8 +88,6 @@ static driver_t cy_pci_driver = {
0,
};
-static devclass_t cy_devclass;
-
DRIVER_MODULE(cy, pci, cy_pci_driver, cy_devclass, 0, 0);
MODULE_DEPEND(cy, pci, 1, 1, 1);
OpenPOWER on IntegriCloud