summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-10-02 07:11:13 +0000
committermsmith <msmith@FreeBSD.org>2000-10-02 07:11:13 +0000
commit2922dcb255d814cdc46a8f0b407a38138b0a7f66 (patch)
treeccbe00ec076e3dd11847a000b15fca1db9c1410e /sys/amd64/include
parenta152a7ef82d848279559ecbca83c547e47aa8c9d (diff)
downloadFreeBSD-src-2922dcb255d814cdc46a8f0b407a38138b0a7f66.zip
FreeBSD-src-2922dcb255d814cdc46a8f0b407a38138b0a7f66.tar.gz
Move the i386 PCI attachment code out of i386/isa back into i386/pci.
Split out the configuration space access primitives, as these are needed elsewhere as well.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/pci_cfgreg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/amd64/include/pci_cfgreg.h b/sys/amd64/include/pci_cfgreg.h
index 34b3fc5..c0909aa 100644
--- a/sys/amd64/include/pci_cfgreg.h
+++ b/sys/amd64/include/pci_cfgreg.h
@@ -46,3 +46,8 @@
#define CONF2_ENABLE_CHK 0x0e
#define CONF2_ENABLE_RES 0x0e
+
+extern int pci_cfgregopen(void);
+extern u_int32_t pci_cfgregread(int bus, int slot, int func, int reg, int bytes);
+extern void pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes);
+
OpenPOWER on IntegriCloud