Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-09-13 | kernel: massive pci code rewrite | cinap_lenrek | |
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-06-06 | sdodin: use 64-bit physical addresses and check pci membar type | cinap_lenrek | |
2020-02-23 | sdiahci, sdodin: avoid calling kproc() while holding ilock() | cinap_lenrek | |
2018-10-07 | pc drivers: more pci cleanup | cinap_lenrek | |
2014-06-08 | kernel: remove _xinc()/_xdec() | cinap_lenrek | |
as with the Block refcount changes, _xinc() and _xdec() arent used anymore, so remove them. architecure can still define ainc()/adec() when it needs them. | |||
2013-11-22 | pc kernel: kproc error and exit | cinap_lenrek | |
catch the error() that can be thrown by sleep() and tsleep() in kprocs. add missing pexit() calls. always set the freemem argument to pexit() from kproc otherwise the process gets added to the broken list. | |||
2011-12-12 | kernel: fix inproper use of malloc/smalloc | cinap_lenrek | |
2011-07-10 | merge sd changes from 9atom | cinap_lenrek | |