| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
| |
expcted to provide it nowadays.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
free. Mapping those with BUS_SPACE_MAP_PREFETCHABLE can have disastrous
effects, like the NMIs observed by jsg@ with certain Intel 10Gb Ethernet
devices. So stop trusting the devices and instead require drivers to
explicitly pass the BUS_SPACE_MAP_PREFECTHABLE flag to pci_mapreg_map().
The pci_mapreg_info() call will continue to return BUS_SPACE_MAP_PREFECTHABLE
flags for prefetchable BARs as an easy way to figure out whether a BAR is
prefetchable. Since the vga_pci.c code uses this interface, all consumers
of VGA BARs will still use the BUS_SPACE_MAP_PREFETCHABLE flag when
appropriate.
ok oga@, jsg@
|
|
|
|
|
| |
upon stumbling on a BAR which value is zero.
Found the hard way by kurt@, ok kettenis@
|
|
|
|
|
|
|
| |
i386 and amd64 to make avoid legacy ISA I/O registers. Fixes issues with
ThinkPad T-series Dock II units as reported by sobrado@
ok miod@
|
| |
|
|
|
|
| |
for mapping ROM BARs.
|
|
|
|
|
|
|
|
|
|
|
|
| |
keeping a per-bus extent containing the address space available to the bus.
Address space assigned to devices will be removed from these extents when
we attach a bus. And when we try to map a PCI BAR that hasn't had address
space assigned to it, we will allocate free space from this extent.
This won't do anything until the parent devices actually allocate and
initialize the extents.
ok oga@
|
|
|
|
|
|
|
|
|
| |
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
| |
|
|
|
|
|
|
|
| |
need a MD base address validation function, but skipping the check on sparc64
will do for now.
ok deraadt@
|
|
|
|
|
|
|
| |
sizing its BARs.
tested niallo@, tsi@, ian@, mk@, sturm@, kettenis@, krw@, beck@, drahn@
ok beck@, kettenis@, drahn@
|
| |
|
|
|
|
|
|
| |
tested on puc@pci by fkr and meself on the cardbus.
still needs a bit more work but generally works.
deraadt@ ok and some input from miod@
|
|
|
|
|
|
|
|
| |
known to be wrong for legacy VGA devices. It also seems to have bad side
effects for some unconfigured PCI-PCI bridges. Instead, enable io or mem
space when we map it.
ok deraadt@
|
| |
|
|
|
|
|
|
| |
have BARs way out in left field.
From NetBSD
|
|
|
|
|
|
|
|
| |
configuration space address, pci_mapreg_probe().
From NetBSD
ok dlg@
|
| |
|
|
|
|
|
|
|
| |
do not return 1 on failure but a real errno the caller can check for proper
action.
tweaks and ok mickey@
|
|
|
|
|
|
|
|
|
| |
If the 32bit mask read is 0, wmask will be 0xffffffff00000000, and
PCI_MAPREG_MEM64_SIZE() won't make this 0.
From NetBSD
ok mickey@
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
put a size limitation of the PCI region to map. That makes the PERC 3/Di
raid controller usable, as it publishes too much PCI memory for us to map
in the kernel virtual memory. As we only access the first 256 byte it is
of no use to map 128MB of kvm.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduction of home-grown
To enable this stuff in your configuration, look at the NEWATA conf file
and go through
dev/isa/files.isa
dev/pci/files.pci
conf/files
arch/i386/conf/files.i386
and follow the instructions on commenting/uncommenting stuff
|
|
Added PCI 2.2 stuff from NetBSD
Modified if_de to use mapreg interface
|