freebsd-skq/sys/dev/cardbus
imp 7642aaf239 There were two calls to cardbus_do_cis when cardbus_do_cis changed,
yet I only changed one of them.  So when we loaded drivers, we'd fail
to allocate resources correct.

This pointed out that we were doing the wrong thing when we failed to
attach a child.  We released all the resources and almost deleted the
child.  Instead, we should keep the resources allocated so when/if a
driver is loaded, we can go w/o having to allocate them.  We use
pci_cfg_save/restore to restore the BARs with these resources.

This seems to fix the problems that we were seeing that I thought
might have magically gone away in the last revision of cardbus.c (but
really didn't).

Noticed by: avatar (nicely done!)
2005-02-28 01:27:24 +00:00
..
cardbus_cis.c Be more verbose on errors with CIS reading. This should be a noop, but 2005-02-20 20:36:16 +00:00
cardbus_cis.h Move resource allocation routines from cardbus_cis.c to cardbus.c. 2005-02-06 21:03:13 +00:00
cardbus.c There were two calls to cardbus_do_cis when cardbus_do_cis changed, 2005-02-28 01:27:24 +00:00
cardbusreg.h Use the standard FreeBSD license 2005-01-13 19:12:10 +00:00
cardbusvar.h Move resource allocation routines from cardbus_cis.c to cardbus.c. 2005-02-06 21:03:13 +00:00