diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-07-04 20:46:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-07-04 20:46:23 +0000 |
commit | 5122a3c63dc86357891a0e94d2a3f20ae1098312 (patch) | |
tree | 450e14d17a4f288ad09664503fd9cf7e8141b621 /sys/arch/amd64/include | |
parent | 11362c6c7cabcf7e045553f2434744084bf45d08 (diff) |
Properly pass around the PCI "chipset tag" in acpi(4) and refactor
acpimcfg(4) to call an MD initialization functions that sets up a tag for
PCI ECAM.
ok guenther@, mlarkin@, krw@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/pci_machdep.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/amd64/include/pci_machdep.h b/sys/arch/amd64/include/pci_machdep.h index 27b833b52cc..a919dfd77e2 100644 --- a/sys/arch/amd64/include/pci_machdep.h +++ b/sys/arch/amd64/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.25 2016/05/04 14:30:00 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.26 2018/07/04 20:46:22 kettenis Exp $ */ /* $NetBSD: pci_machdep.h,v 1.1 2003/02/26 21:26:11 fvdl Exp $ */ /* @@ -59,9 +59,6 @@ typedef struct { * amd64-specific PCI variables and functions. * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE. */ -extern bus_addr_t pci_mcfg_addr; -extern int pci_mcfg_min_bus, pci_mcfg_max_bus; - struct pci_attach_args; extern struct extent *pciio_ex; @@ -98,6 +95,8 @@ void pci_dev_postattach(struct device *, struct pci_attach_args *); pcireg_t pci_min_powerstate(pci_chipset_tag_t, pcitag_t); void pci_set_powerstate_md(pci_chipset_tag_t, pcitag_t, int, int); +pci_chipset_tag_t pci_mcfg_init(bus_space_tag_t, bus_addr_t, int, int); + /* * ALL OF THE FOLLOWING ARE MACHINE-DEPENDENT, AND SHOULD NOT BE USED * BY PORTABLE CODE. |