freebsd-nq/sys/dev/cardbus
Gleb Smirnoff 086745614c When in rev. 1.47 cardbus_alloc_resources() function was moved from
cardbus_cis.c to this file, some code was not merged and thus resource
list entries were invalid. They didn't have a resources attached to
them.
  However, the problem was masked for some time later, because newer
resources list entries were added to the head of the list, and
resource_list_find() always returned the first matching resource list
entry. Usually the underlying driver allocated a valid resource and
added it to the head of the list, and invalid one wasn't used.
  In rev. 1.174 of subr_bus.c the sorting of resource list entries was
reversed demasking the problem in cardbus_alloc_resources().
  This commit fixes the problem returning back some code from
cardbus_cis.c, pre-1.49 revisions.

PR:			kern/87114
PR:			kern/90441
Hardware provided by:	Vasily Olekhov <olekhov yandex.ru>
Reviewed by:		imp
2005-12-28 10:15:01 +00:00
..
cardbus_cis.c Eliminate even more duplication, and move some definitions into pcireg.h 2005-10-28 05:55:52 +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 When in rev. 1.47 cardbus_alloc_resources() function was moved from 2005-12-28 10:15:01 +00:00
cardbusreg.h Cardbus has only 1 slot, so simplify a little. 2005-10-28 06:03:53 +00:00
cardbusvar.h Use PCIR_BARS rather than CARDBUS_BASE0_REG 2005-10-28 05:29:41 +00:00