freebsd-dev/sys/dev/pccard
Peter Wemm 7722df0394 This is a bandaid for a problem that is not entirely fixed yet.
The pccard_function_init() call creates a bunch of inactive resources
that are persistant and configured on demand.  When the child driver
"allocates" a resource it is connected up to one of these.  When the
child releases the resource, we should not delete our copy, just
deactivate it again.  Otherwise there is nothing to recreate it again
after several probe functions have run and done an alloc/release cycle.
INVARIANTS shows 0xdeadc0de without this.

More work is needed to do a sweep though the pccard_function_disable()
call to actually delete the resources for real.  Right now, we leak
memory on eject (at best), so Dont Do That(TM) yet.  This affects
16 bit pccards on a cardbus bridge only.  This will be fixed soon, but
for now it gets the cards working.

Reviewed by: imp
2001-01-07 21:32:05 +00:00
..
card_if.m o Now that I've had time to test the new interface, reintegrate it back in. 2001-01-07 16:31:09 +00:00
devlist2h.awk Moderately hacked pccard code from newconfig. It is somewhat in 1999-10-26 06:52:31 +00:00
files.pccard Moderately hacked pccard code from newconfig. It is somewhat in 1999-10-26 06:52:31 +00:00
Makefile.pccarddevs We do not, and hopefully never will, use the static pccard device table. 2001-01-07 03:58:57 +00:00
pccard_cis_quirks.c MFNetBSD: 2000-09-05 18:25:49 +00:00
pccard_cis.c Make a few more mallocs use M_ZERO. 2000-10-29 16:29:05 +00:00
pccard.c This is a bandaid for a problem that is not entirely fixed yet. 2001-01-07 21:32:05 +00:00
pccarddevs Add Kingston and the KNE-PC2 card 2000-11-25 03:42:06 +00:00
pccarddevs.h Regenerate. Note that pccarddevs_data.h is not used. 2000-11-25 03:43:37 +00:00
pccardreg.h Moderately hacked pccard code from newconfig. It is somewhat in 1999-10-26 06:52:31 +00:00
pccardvar.h * Better kld support in pccbb/cardbus 2001-01-06 18:04:55 +00:00
power_if.m Include <sys/bus.h>, which is needed after Doug's latest object changes. 2000-04-16 06:04:13 +00:00