fork of 9front i guess
Go to file
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
386 add va_copy macro, conforming to c99 7.15.1.2 2020-03-22 17:31:39 -07:00
68000 add signed fixed size integer typedefs 2018-05-12 19:19:52 +02:00
68020 add va_copy macro, conforming to c99 7.15.1.2 2020-03-22 17:31:39 -07:00
acme acme/win: add trailing space to window tag 2020-06-23 18:41:00 +09:30
adm/timezone timezones: change DST timezone string for South Australia 2019-11-20 11:49:16 +10:30
amd64 turn ptrdiff_t into a 64 bit type 2020-03-24 14:45:15 -07:00
arm add va_copy macro, conforming to c99 7.15.1.2 2020-03-22 17:31:39 -07:00
arm64 turn ptrdiff_t into a 64 bit type 2020-03-24 14:45:15 -07:00
lib bullshit: decentralized ActivityPub 2020-08-07 15:50:55 +02:00
mips add va_copy macro, conforming to c99 7.15.1.2 2020-03-22 17:31:39 -07:00
power add va_copy macro, conforming to c99 7.15.1.2 2020-03-22 17:31:39 -07:00
power64 add signed fixed size integer typedefs 2018-05-12 19:19:52 +02:00
rc rc-httpd: fix invalid test(1) invocation in dir-index 2020-08-02 18:30:01 +09:30
sparc ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
sparc64 add va_copy macro, conforming to c99 7.15.1.2 2020-03-22 17:31:39 -07:00
spim add signed fixed size integer typedefs 2018-05-12 19:19:52 +02:00
sys kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
.hgignore hgignore: ignore section 9 manpage indices, ignore init, kernels and bootloader binaries 2020-03-07 12:28:49 +01:00