Browse Source

Added description for a basic ACPI table, taken from

include/linux/acpi.h.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
35559ad87c
1 changed files with 39 additions and 0 deletions
  1. 39
    0
      src/include/gpxe/acpi.h

+ 39
- 0
src/include/gpxe/acpi.h View File

@@ -0,0 +1,39 @@
1
+#ifndef _GPXE_ACPI_H
2
+#define _GPXE_ACPI_H
3
+
4
+/** @file
5
+ *
6
+ * ACPI data structures
7
+ *
8
+ */
9
+
10
+#include <stdint.h>
11
+
12
+/**
13
+ * An ACPI description header
14
+ *
15
+ * This is the structure common to the start of all ACPI system
16
+ * description tables.
17
+ */
18
+struct acpi_description_header {
19
+	/** ACPI signature (4 ASCII characters) */
20
+	char signature[4];
21
+	/** Length of table, in bytes, including header */
22
+	uint32_t length;
23
+	/** ACPI Specification minor version number */
24
+	uint8_t revision;
25
+	/** To make sum of entire table == 0 */
26
+	uint8_t checksum;
27
+	/** OEM identification */
28
+	char oem_id[6];
29
+	/** OEM table identification */
30
+	char oem_table_id[8];
31
+	/** OEM revision number */
32
+	uint32_t oem_revision;
33
+	/** ASL compiler vendor ID */
34
+	char asl_compiler_id[4];
35
+	/** ASL compiler revision number */
36
+	uint32_t asl_compiler_revision;
37
+};
38
+
39
+#endif /* _GPXE_ACPI_H */

Loading…
Cancel
Save