mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
7722df0394
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 |
||
---|---|---|
.. | ||
card_if.m | ||
devlist2h.awk | ||
files.pccard | ||
Makefile.pccarddevs | ||
pccard_cis_quirks.c | ||
pccard_cis.c | ||
pccard.c | ||
pccarddevs | ||
pccarddevs.h | ||
pccardreg.h | ||
pccardvar.h | ||
power_if.m |