plan9fox/sys/src/9/ppc
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
..
blast kernel: remove ptclbsum dependencies from configs 2019-02-27 08:47:17 +01:00
blast.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
clock.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
dat.h kernel: introduce per process FPU struct (PFPU) for more flexible machine specific fpu handling 2017-11-04 20:08:22 +01:00
devflash.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
devirq.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
etherfcc.c devether: mux bridges, portable netconsole 2018-02-18 19:56:01 +01:00
ethersaturn.c devether: mux bridges, portable netconsole 2018-02-18 19:56:01 +01:00
fns.h kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
init9.s Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
io.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
l.s all kernels: declare _tas() to prevent pulling in libc version (for libmemdraw) 2015-07-07 19:17:55 +02:00
lblast.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
lucu.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
m8260.c kernel: expose no execute bit to portable mmu code as SG_NOEXEC / PTENOEXEC, add PTECACHED bits 2019-08-26 22:34:38 +02:00
m8260.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
main.c kernel: implement portable userinit() and simplify process creation 2020-01-26 19:01:36 +01:00
mcc.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mem.h sysexec: fix possible segment overlap with temporary stack 2013-03-16 02:37:07 +01:00
mkfile kernel: cleanup makefile for $CONF.$O target 2020-02-02 20:46:58 +01:00
mmu.c mtx, ppc: use proctab() to index into process table 2020-04-04 16:52:08 +02:00
msaturn.c kernel: change active.machs from bitmap to char array to support up to 64 cpus on pc64 2016-01-05 05:32:40 +01:00
msaturn.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mtx.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
saturntimer.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
trap.c kernel: implement portable userinit() and simplify process creation 2020-01-26 19:01:36 +01:00
uartsaturn.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
uartsmc.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
ucu kernel: remove ptclbsum dependencies from configs 2019-02-27 08:47:17 +01:00
ucu.h kernel: expose no execute bit to portable mmu code as SG_NOEXEC / PTENOEXEC, add PTECACHED bits 2019-08-26 22:34:38 +02:00