From 0ba91ae22a06af3a7561db15973dd98f715cc9eb Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 3 Nov 2020 20:46:09 +0100 Subject: pc, pc64: allocate i/o port space for unassigned pci bars, move ioalloc() to port/iomap.c With some newer UEFI firmware, not all pci bars get programmed and we have to assign them ourselfs. This was already done for memory bars. This change adds the same for i/o port space, by providing a ioreservewin() function which can be used to allocate port space within the parent pci-pci bridge window. Also, the pci code now allocates the pci config space i/o ports 0xCF8/0xCFC so userspace needs to use devpnp to access pci config space now. (see latest realemu change). Also, this moves the ioalloc()/iofree() code out of devarch into port/iomap.c as it can be shared with the ppc mtx kernel. --- sys/src/9/pc64/fns.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/src/9/pc64/fns.h') diff --git a/sys/src/9/pc64/fns.h b/sys/src/9/pc64/fns.h index 39afc4864..b3408badb 100644 --- a/sys/src/9/pc64/fns.h +++ b/sys/src/9/pc64/fns.h @@ -83,11 +83,7 @@ void intrenable(int, void (*)(Ureg*, void*), void*, int, char*); void introff(void); void intron(void); void invlpg(uintptr); -void iofree(int); void ioinit(void); -int iounused(int, int); -int ioalloc(int, int, int, char*); -int ioreserve(int, int, int, char*); int iprint(char*, ...); int isaconfig(char*, int, ISAConf*); void* kaddr(uintptr); -- cgit v1.2.3