plan9fox/sys/src
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
..
9 kernel: massive pci code rewrite 2020-09-13 20:33:17 +02:00
ape ape/ctype.h: add isblank, fix functions (thanks staalmannen) 2020-08-29 11:09:20 -07:00
boot 9bootpxe: simplify 2020-04-08 23:48:09 +02:00
cmd faces: remove log support 2020-09-12 17:40:41 -07:00
games make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
lib9p lib9p: reject reads on closed fids and writes on directories 2020-04-27 19:55:42 +02:00
libaml libaml: fix fault when the second operand of comparison cannot be converted 2020-08-20 08:28:24 +02:00
libauth make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
libauthsrv libauthsrv: authdial smprint() out of memory autism 2019-04-06 20:23:00 +02:00
libavl
libbin
libbio
libc tmparse: put in local timezone hack 2020-09-01 19:32:45 -07:00
libcomplete
libcontrol
libdisk libdisk: catch null bytes in proto file, fix memory leaks 2018-10-20 20:32:22 +02:00
libdraw libdraw: fix mount() error handling in newwindow() 2020-05-02 17:05:17 +02:00
libdtracy dtracy: avoid dmachlock() race 2019-03-30 09:17:46 +01:00
libfis
libflate
libframe
libgeometry qball: remove unused #include <stdio.h> 2020-08-04 16:27:27 +02:00
libhtml libhtml: increase Nestmax to render some convoluted pages (thanks fernan) 2018-09-23 23:35:41 +02:00
libhttpd always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
libip libip: move optimized 386 assembly version of ptclbsum() from kernel to libip 2019-02-27 18:29:08 +01:00
libjson
liblex
libmach libmach: remove newline 2019-05-09 10:27:17 +02:00
libmemdraw libmemdraw: remove inexistent build targets 2020-04-19 15:30:58 +02:00
libmemlayer
libmp libmp: add dummy mkfile for arm64 2019-05-03 21:02:13 +02:00
libndb libndb: order subnets by prefix length for ndbipinfo() lookups 2020-07-17 16:53:20 +02:00
libplumb libplumb: fix plumbunpackpartial() 2018-05-10 19:46:38 +02:00
libregexp
libsat
libscribble
libsec libsec/base58enc: null-terminate the result 2020-04-28 12:49:05 +02:00
libstdio #pragma ref no longer exists 2020-05-15 16:56:59 -07:00
libString
libsunrpc
libthread libthread: initial support for arm64 2019-05-03 21:03:12 +02:00
libttf libttf: fix cmap subtable offset type and rank UCS-4 higher (more codepoints). fixes runes > 0xffff 2020-08-05 14:25:21 +02:00
libventi sys/src/libventi: implement vtsha1 and vtsha1check functions 2019-09-06 11:55:18 -07:00
mkfile add dtracy to mkfile 2018-11-11 10:10:30 +00:00
mkfile.proto arm64: add mkfile 2019-05-03 21:12:31 +02:00