plan9fox/sys/src/9/teg2
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
..
notes add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
_announce add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
arch.c bcm, kw, omap, teg2: implement setregisters() 2019-06-20 13:17:36 +02:00
archtegra.c usbehci: introduce dmaflush() function to handle portable cache invalidation for device drivers 2019-07-17 10:24:50 +02:00
arm.h add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
arm.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
cache-l2-pl310.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
cache.v7.s teg2: fix wrong l2 setshift address in wholecache() (from sources) 2014-09-17 16:34:30 +02:00
caches-v7.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
caches.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
clock-tegra.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
clock.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
coproc.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01: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
devarch.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
ether8169.c kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
fns.h kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
fpi.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
fpi.h add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
fpiarm.c kernel: introduce per process FPU struct (PFPU) for more flexible machine specific fpu handling 2017-11-04 20:08:22 +01:00
fpimem.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
io.h kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
l.s all kernels: declare _tas() to prevent pulling in libc version (for libmemdraw) 2015-07-07 19:17:55 +02:00
lexception.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
lproc.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
main.c kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
mem.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
mkfile kernel: cleanup makefile for $CONF.$O target 2020-02-02 20:46:58 +01:00
mmu.c kernel: get rid of PTR2UINT() and UINT2PTR() macros 2019-04-11 13:51:38 +02:00
nvram add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
pciteg.c kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
rebootcode.s add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
softfpu.c ARM: kernel changes make teg2 procfork() call fpuprocfork() and acid fixes for vfp instruction 2013-06-10 18:07:16 +05:30
syscall.c kernel: implement portable userinit() and simplify process creation 2020-01-26 19:01:36 +01:00
trap.c kernel: catch execution read fault on SG_NOEXEC segment 2019-08-27 03:47:18 +02:00
ts kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
uarti8250.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
v7-arch.c add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00
vfp3.c ARM: kernel changes make teg2 procfork() call fpuprocfork() and acid fixes for vfp instruction 2013-06-10 18:07:16 +05:30
words add tegra2 soc kernel (from sources) 2013-01-26 17:33:21 +01:00