plan9fox/sys/src/9/bcm64
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
..
archbcm3.c bcm64: do not use OTP_BOOTMODE_REG to determine OSC frequency (thanks richard miller) 2019-08-19 16:42:20 +02:00
archbcm4.c kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
cache.v8.s
clock.c bcm64: do not use OTP_BOOTMODE_REG to determine OSC frequency (thanks richard miller) 2019-08-19 16:42:20 +02:00
dat.h bcm64: use uvlong for ISAConf.port 2020-06-06 15:01:56 +02:00
devgen.c
ethergenet.c ethergenet: remove debugging 2019-08-16 19:22:28 +02:00
fns.h kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
fpu.c
gic.c kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
gisb.c bcm64: poll gisb arbiter for asynchronous bus errors 2019-08-16 19:24:00 +02:00
init9.s
io.h kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
l.s bcm64: fix kernels cmpswap() function 2020-05-07 23:27:27 +02:00
main.c kernel: implement portable userinit() and simplify process creation 2020-01-26 19:01:36 +01:00
mem.h bcm64: increase maximum segment size to 8GB 2020-07-03 01:17:38 +02:00
mkfile kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
mmu.c bcm64: handle 8GB of physical memory for raspberry pi4 2020-07-02 21:12:40 +02:00
pcibcm.c kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
pi3 bcm64: enable devgpio in kernel configuration (thanks qeed) 2019-09-02 19:38:44 +02:00
pi4 kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
rebootcode.s bcm, bcm64: add support for device tree parameter passing 2019-07-25 08:19:12 +02:00
sdhc.c emmc: 50MHz highspeed support (from richard miller) 2019-08-25 20:02:53 +02:00
sysreg.c
sysreg.h bcm64: fix wrong prescaler for generic timer on rpi4 2019-07-27 17:59:25 +02:00
trap.c kernel: implement portable userinit() and simplify process creation 2020-01-26 19:01:36 +01:00