plan9fox/sys/src/9
cinap_lenrek 4f85115526 kernel: massive pci code rewrite
The new pci code is moved to port/pci.[hc] and shared by
all ports.

Each port has its own PCI controller implementation,
providing the pcicfgrw*() functions for low level pci
config space access. The locking for pcicfgrw*() is now
done by the caller (only port/pci.c).

Device drivers now need to include "../port/pci.h" in
addition to "io.h".

The new code now checks bridge windows and membars,
while enumerating the bus, giving the pc driver a chance
to re-assign them. This is needed because some UEFI
implementations fail to assign the bars for some devices,
so we need to do it outselfs. (See pcireservemem()).

While working on this, it was discovered that the pci
code assimed the smallest I/O bar size is 16 (pcibarsize()),
which is wrong. I/O bars can be as small as 4 bytes.
Bit 1 in an I/O bar is also reserved and should be masked off,
making the port mask: port = bar & ~3;
2020-09-13 20:33:17 +02:00
..
bcm bcm64: fix usb xhci controller on pi4 8GB variant (thanks richard miller) 2020-07-02 21:04:01 +02:00
bcm64 kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
boot kernel: don't strip binaries in bootfs.paq 2020-08-04 16:31:24 +02:00
cycv kernel: cleanup makefile for $CONF.$O target 2020-02-02 20:46:58 +01:00
ip devip: implement ipv6 support in ipmux packet filter 2020-06-07 16:56:01 +02:00
kw kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
mtx kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
omap kernel: cleanup the software mouse cursor mess 2020-04-10 17:12:51 +02:00
pc kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
pc64 kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
port kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
ppc kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
sgi kernel: cleanup the software mouse cursor mess 2020-04-10 17:12:51 +02:00
teg2 kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
xen xen: fix rebootcode linkage 2020-03-29 22:47:42 +02:00
zynq kernel: cleanup the software mouse cursor mess 2020-04-10 17:12:51 +02:00
mkfile add cycv kernel 2020-01-08 02:35:01 +00:00