summaryrefslogtreecommitdiffstats
path: root/sys/amd64/pci/pci_cfgreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/pci/pci_cfgreg.c')
-rw-r--r--sys/amd64/pci/pci_cfgreg.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c
index 7b73486..3538969 100644
--- a/sys/amd64/pci/pci_cfgreg.c
+++ b/sys/amd64/pci/pci_cfgreg.c
@@ -71,6 +71,19 @@ static int pcireg_cfgopen(void);
static struct PIR_table *pci_route_table;
static int pci_route_count;
+int
+pci_pcibios_active(void)
+{
+ return usebios;
+}
+
+int
+pci_kill_pcibios(void)
+{
+ usebios = 0;
+ return pcireg_cfgopen() != 0;
+}
+
/*
* Initialise access to PCI configuration space
*/
OpenPOWER on IntegriCloud