summaryrefslogtreecommitdiffstats
path: root/compiler/dttable.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2011-03-16 20:53:41 +0000
committerjkim <jkim@FreeBSD.org>2011-03-16 20:53:41 +0000
commit42a99af5c483122effde7730002be92964d6d727 (patch)
tree8e59ec98e0d4b4d7084753b3623441114c6185b0 /compiler/dttable.c
parent6636ac3533f4af02a42a7302b5cd1197817f4ed9 (diff)
downloadFreeBSD-src-42a99af5c483122effde7730002be92964d6d727.zip
FreeBSD-src-42a99af5c483122effde7730002be92964d6d727.tar.gz
Import ACPICA 20110316.
Diffstat (limited to 'compiler/dttable.c')
-rw-r--r--compiler/dttable.c69
1 files changed, 69 insertions, 0 deletions
diff --git a/compiler/dttable.c b/compiler/dttable.c
index f818d3e..0ad4dd4 100644
--- a/compiler/dttable.c
+++ b/compiler/dttable.c
@@ -1134,6 +1134,75 @@ DtCompileRsdt (
/******************************************************************************
*
+ * FUNCTION: DtCompileSlic
+ *
+ * PARAMETERS: List - Current field list pointer
+ *
+ * RETURN: Status
+ *
+ * DESCRIPTION: Compile SLIC.
+ *
+ *****************************************************************************/
+
+ACPI_STATUS
+DtCompileSlic (
+ void **List)
+{
+ ACPI_STATUS Status;
+ DT_SUBTABLE *Subtable;
+ DT_SUBTABLE *ParentTable;
+ DT_FIELD **PFieldList = (DT_FIELD **) List;
+ DT_FIELD *SubtableStart;
+ ACPI_SLIC_HEADER *SlicHeader;
+ ACPI_DMTABLE_INFO *InfoTable;
+
+
+ while (*PFieldList)
+ {
+ SubtableStart = *PFieldList;
+ Status = DtCompileTable (PFieldList, AcpiDmTableInfoSlicHdr,
+ &Subtable, TRUE);
+ if (ACPI_FAILURE (Status))
+ {
+ return (Status);
+ }
+
+ ParentTable = DtPeekSubtable ();
+ DtInsertSubtable (ParentTable, Subtable);
+ DtPushSubtable (Subtable);
+
+ SlicHeader = ACPI_CAST_PTR (ACPI_SLIC_HEADER, Subtable->Buffer);
+
+ switch (SlicHeader->Type)
+ {
+ case ACPI_SLIC_TYPE_PUBLIC_KEY:
+ InfoTable = AcpiDmTableInfoSlic0;
+ break;
+ case ACPI_SLIC_TYPE_WINDOWS_MARKER:
+ InfoTable = AcpiDmTableInfoSlic1;
+ break;
+ default:
+ DtFatal (ASL_MSG_UNKNOWN_SUBTABLE, SubtableStart, "SLIC");
+ return (AE_ERROR);
+ }
+
+ Status = DtCompileTable (PFieldList, InfoTable, &Subtable, TRUE);
+ if (ACPI_FAILURE (Status))
+ {
+ return (Status);
+ }
+
+ ParentTable = DtPeekSubtable ();
+ DtInsertSubtable (ParentTable, Subtable);
+ DtPopSubtable ();
+ }
+
+ return (AE_OK);
+}
+
+
+/******************************************************************************
+ *
* FUNCTION: DtCompileSlit
*
* PARAMETERS: List - Current field list pointer
OpenPOWER on IntegriCloud