summaryrefslogtreecommitdiff
path: root/include/acdisasm.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-05-28 18:46:48 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-05-28 18:46:48 +0000
commitf2bf96d30fe08965ffd53a28099131ac030e43d5 (patch)
tree2429d13f44367948f54b059645bd882e2e28f2d4 /include/acdisasm.h
parent5b663f0c698a9ecf7e562f7f7f730d056e499b5f (diff)
Notes
Diffstat (limited to 'include/acdisasm.h')
-rw-r--r--include/acdisasm.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/acdisasm.h b/include/acdisasm.h
index ab32086e2f28..4ab78ce5c14c 100644
--- a/include/acdisasm.h
+++ b/include/acdisasm.h
@@ -131,9 +131,19 @@ typedef const struct acpi_dmtable_info
UINT8 Opcode;
UINT8 Offset;
char *Name;
+ UINT8 Flags;
} ACPI_DMTABLE_INFO;
+#define DT_LENGTH 0x01 /* Field is a subtable length */
+#define DT_FLAG 0x02 /* Field is a flag value */
+#define DT_NON_ZERO 0x04 /* Field must be non-zero */
+
+/* TBD: Not used at this time */
+
+#define DT_OPTIONAL 0x08
+#define DT_COUNT 0x10
+
/*
* Values for Opcode above.
* Note: 0-7 must not change, used as a flag shift value
@@ -173,17 +183,24 @@ typedef const struct acpi_dmtable_info
#define ACPI_DMT_FADTPM 32
#define ACPI_DMT_BUF16 33
#define ACPI_DMT_IVRS 34
+#define ACPI_DMT_BUFFER 35
+#define ACPI_DMT_PCI_PATH 36
typedef
void (*ACPI_DMTABLE_HANDLER) (
ACPI_TABLE_HEADER *Table);
+typedef
+ACPI_STATUS (*ACPI_CMTABLE_HANDLER) (
+ void **PFieldList);
+
typedef struct acpi_dmtable_data
{
char *Signature;
ACPI_DMTABLE_INFO *TableInfo;
ACPI_DMTABLE_HANDLER TableHandler;
+ ACPI_CMTABLE_HANDLER CmTableHandler;
char *Name;
} ACPI_DMTABLE_DATA;
@@ -200,11 +217,18 @@ typedef struct acpi_op_walk_info
} ACPI_OP_WALK_INFO;
+/*
+ * TBD - another copy of this is in asltypes.h, fix
+ */
+#ifndef ASL_WALK_CALLBACK_DEFINED
typedef
ACPI_STATUS (*ASL_WALK_CALLBACK) (
ACPI_PARSE_OBJECT *Op,
UINT32 Level,
void *Context);
+#define ASL_WALK_CALLBACK_DEFINED
+#endif
+
typedef struct acpi_resource_tag
{
@@ -312,6 +336,11 @@ extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[];
/*
* dmtable
*/
+
+ACPI_DMTABLE_DATA *
+AcpiDmGetTableData (
+ char *Signature);
+
void
AcpiDmDumpDataTable (
ACPI_TABLE_HEADER *Table);