summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpireg.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-01-04 21:17:50 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-01-04 21:17:50 +0000
commit520623cefde5dd43125b0e3bd121266079514407 (patch)
treede8f57eddbfc38a2b036b8caeef560e5e8a0c342 /sys/dev/acpi/acpireg.h
parente18c67189da470f1eb4149eae8e689e05da21f2e (diff)
Add support for Memory Mapped Configuration space access. This gives us
access to PCIe extended configuration space access on modern i386 and amd64 machines.
Diffstat (limited to 'sys/dev/acpi/acpireg.h')
-rw-r--r--sys/dev/acpi/acpireg.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpireg.h b/sys/dev/acpi/acpireg.h
index 1669bec11bc..7bbb480485c 100644
--- a/sys/dev/acpi/acpireg.h
+++ b/sys/dev/acpi/acpireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpireg.h,v 1.23 2010/07/21 19:35:15 deraadt Exp $ */
+/* $OpenBSD: acpireg.h,v 1.24 2011/01/04 21:17:49 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
@@ -380,6 +380,17 @@ struct acpi_hpet {
u_int8_t page_protection;
} __packed;
+struct acpi_mcfg {
+ struct acpi_table_header hdr;
+#define MCFG_SIG "MCFG"
+ u_int8_t reserved[8];
+ u_int64_t base_address;
+ u_int16_t segment;
+ u_int8_t min_bus_number;
+ u_int8_t max_bus_number;
+ u_int32_t reserved1;
+} __packed;
+
struct acpi_facs {
u_int8_t signature[4];
#define FACS_SIG "FACS"