]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Converted the isa probe and attach to new-bus so that this driver works
authorBruce Evans <bde@FreeBSD.org>
Mon, 5 Apr 2004 08:16:23 +0000 (08:16 +0000)
committerBruce Evans <bde@FreeBSD.org>
Mon, 5 Apr 2004 08:16:23 +0000 (08:16 +0000)
commit42d122e1251ea547b43af6306bb079d307549f43
treeadbcc6b808103d4af4980c216d34b82d4cc207bb
parentcbf67506f61abfe002cf29fc37bcfc36da999308
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
sys/dev/cy/cy.c
sys/dev/cy/cy_isa.c
sys/dev/cy/cy_pci.c
sys/i386/isa/cy.c
sys/pci/cy_pci.c