summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/m32r/include/machine/pci_cfgreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/m32r/include/machine/pci_cfgreg.h')
-rw-r--r--freebsd/sys/m32r/include/machine/pci_cfgreg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/freebsd/sys/m32r/include/machine/pci_cfgreg.h b/freebsd/sys/m32r/include/machine/pci_cfgreg.h
index bc72418d..ea5e3198 100644
--- a/freebsd/sys/m32r/include/machine/pci_cfgreg.h
+++ b/freebsd/sys/m32r/include/machine/pci_cfgreg.h
@@ -27,6 +27,9 @@
*
*/
+#ifndef __X86_PCI_CFGREG_H__
+#define __X86_PCI_CFGREG_H__
+
#define CONF1_ADDR_PORT 0x0cf8
#define CONF1_DATA_PORT 0x0cfc
@@ -43,10 +46,15 @@
#define CONF2_ENABLE_CHK 0x0e
#define CONF2_ENABLE_RES 0x0e
+u_long hostb_alloc_start(int type, u_long start, u_long end, u_long count);
int pcie_cfgregopen(uint64_t base, uint8_t minbus, uint8_t maxbus);
int pci_cfgregopen(void);
u_int32_t pci_cfgregread(int bus, int slot, int func, int reg, int bytes);
void pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes);
+#ifdef __HAVE_PIR
void pci_pir_open(void);
int pci_pir_probe(int bus, int require_parse);
int pci_pir_route_interrupt(int bus, int device, int func, int pin);
+#endif
+
+#endif /* !__X86_PCI_CFGREG_H__ */