]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
1) When mucking with mapping registers, it is best to *not* have
authorjon <jon@FreeBSD.org>
Tue, 28 Nov 2000 00:52:40 +0000 (00:52 +0000)
committerjon <jon@FreeBSD.org>
Tue, 28 Nov 2000 00:52:40 +0000 (00:52 +0000)
commit51f405ec6ea3c70e9e867604bf429307817cb25c
tree57c8c77e8f5c87fb6e5b5230d756340726855112
parent49bd2bf0607af99945e5e2b456be122bc22f2247
1) When mucking with mapping registers, it is best to *not* have
   io or memory space access enabled.  This patch defers the setting
   of these bits until after all of the mapping registers are probed.
   It might be even better to defer this until a particular mapping
   is activated and to disable that type of access when a new
   register is activated.

2) The PCI spec is very explicit about how mapping registers and
   the expansion ROM mapping register should be probed.  This patch
   makes cardbus_add_map() follow the spec.

3) The PCI spec allows a device to use the same address decoder for
   expansion ROM access as is used for memory mapped register access.
   This patch carefully enables and disables ROM access along with
   resource (de)activiation.

This doesn't include the prefetching detection stuff (maybe later when code is written to actually turn on prefetching).  It also does not use the PCI definitions (yet, I'll try to put this in all at once later)

Submitted by: Justin T. Gibbs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_cis.c
sys/dev/cardbus/cardbusreg.h