summaryrefslogtreecommitdiff
path: root/sys/src/9/xen
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-11-03 20:46:09 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-11-03 20:46:09 +0100
commit0ba91ae22a06af3a7561db15973dd98f715cc9eb (patch)
tree6f5871cee6c3880847b6548902855a2f45e397da /sys/src/9/xen
parentaad55ccc2d1e4004574ce96389ee8e5cd9bb2444 (diff)
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.
Diffstat (limited to 'sys/src/9/xen')
-rw-r--r--sys/src/9/xen/fns.h1
-rw-r--r--sys/src/9/xen/mkfile1
2 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/xen/fns.h b/sys/src/9/xen/fns.h
index 88f5f1916..7289bd570 100644
--- a/sys/src/9/xen/fns.h
+++ b/sys/src/9/xen/fns.h
@@ -56,7 +56,6 @@ ulong inl(int);
void insl(int, void*, int);
void intrdisable(int, void (*)(Ureg *, void *), void*, int, char*);
void intrenable(int, void (*)(Ureg*, void*), void*, int, char*);
-int ioalloc(int, int, int, char*);
void ioinit(void);
int isaconfig(char*, int, ISAConf*);
void kbdenable(void);
diff --git a/sys/src/9/xen/mkfile b/sys/src/9/xen/mkfile
index 9330581f6..3a3ecc87b 100644
--- a/sys/src/9/xen/mkfile
+++ b/sys/src/9/xen/mkfile
@@ -22,6 +22,7 @@ PORT=\
dev.$O\
edf.$O\
fault.$O\
+ iomap.$O\
page.$O\
parse.$O\
pgrp.$O\