summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/dbfileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/dbfileio.c')
-rw-r--r--sys/contrib/dev/acpica/dbfileio.c53
1 files changed, 35 insertions, 18 deletions
diff --git a/sys/contrib/dev/acpica/dbfileio.c b/sys/contrib/dev/acpica/dbfileio.c
index a5c3221..19ba9a0 100644
--- a/sys/contrib/dev/acpica/dbfileio.c
+++ b/sys/contrib/dev/acpica/dbfileio.c
@@ -2,7 +2,7 @@
*
* Module Name: dbfileio - Debugger file I/O commands. These can't usually
* be used when running the debugger in Ring 0 (Kernel mode)
- * $Revision: 59 $
+ * $Revision: 60 $
*
******************************************************************************/
@@ -414,27 +414,14 @@ AeLocalLoadTable (
}
-/*******************************************************************************
- *
- * FUNCTION: AcpiDbLoadAcpiTable
- *
- * PARAMETERS: Filname - File where table is located
- *
- * RETURN: Status
- *
- * DESCRIPTION: Load an ACPI table from a file
- *
- ******************************************************************************/
-
+#ifdef ACPI_APPLICATION
ACPI_STATUS
-AcpiDbLoadAcpiTable (
+AcpiDbGetAcpiTable (
NATIVE_CHAR *Filename)
{
-#ifdef ACPI_APPLICATION
FILE *fp;
- ACPI_STATUS Status;
UINT32 TableLength;
-
+ ACPI_STATUS Status;
/* Open the file */
@@ -458,7 +445,37 @@ AcpiDbLoadAcpiTable (
return (Status);
}
- /* Attempt to recognize and install the table */
+ return (AE_OK);
+ }
+#endif
+
+/*******************************************************************************
+ *
+ * FUNCTION: AcpiDbLoadAcpiTable
+ *
+ * PARAMETERS: Filname - File where table is located
+ *
+ * RETURN: Status
+ *
+ * DESCRIPTION: Load an ACPI table from a file
+ *
+ ******************************************************************************/
+
+ACPI_STATUS
+AcpiDbLoadAcpiTable (
+ NATIVE_CHAR *Filename)
+{
+#ifdef ACPI_APPLICATION
+ ACPI_STATUS Status;
+
+
+ Status = AcpiDbGetAcpiTable (Filename);
+ if (ACPI_FAILURE (Status))
+ {
+ return (Status);
+ }
+
+ /* Attempt to recognize and install the table */
Status = AeLocalLoadTable (AcpiGbl_DbTablePtr);
if (ACPI_FAILURE (Status))
OpenPOWER on IntegriCloud