diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 |
| commit | 59ce063597ddbda74269a45aba8187dece2fe00a (patch) | |
| tree | 89234dd9f502de2faaf4a280ccd0d3785a7ae96f /source/tools/acpidump/apmain.c | |
| parent | dbded195f9840f9044a6828c8877c6bf0a956482 (diff) | |
Import ACPICA 20130823.vendor/acpica/20130823
Notes
svn path=/vendor-sys/acpica/dist/; revision=254724
svn path=/vendor-sys/acpica/20130823/; revision=254726; tag=vendor/acpica/20130823
Diffstat (limited to 'source/tools/acpidump/apmain.c')
| -rw-r--r-- | source/tools/acpidump/apmain.c | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/source/tools/acpidump/apmain.c b/source/tools/acpidump/apmain.c index 4c90cb7dcc85..b9e62eb17e8f 100644 --- a/source/tools/acpidump/apmain.c +++ b/source/tools/acpidump/apmain.c @@ -92,7 +92,7 @@ UINT32 CurrentAction = 0; #define AP_UTILITY_NAME "ACPI Binary Table Dump Utility" -#define AP_SUPPORTED_OPTIONS "?a:bf:hn:o:svz" +#define AP_SUPPORTED_OPTIONS "?a:bcf:hn:o:r:svz" /****************************************************************************** @@ -111,10 +111,12 @@ ApDisplayUsage ( ACPI_USAGE_HEADER ("acpidump [options]"); ACPI_OPTION ("-b", "Dump tables to binary files"); + ACPI_OPTION ("-c", "Dump customized tables"); ACPI_OPTION ("-h -?", "This help message"); ACPI_OPTION ("-o <File>", "Redirect output to file"); + ACPI_OPTION ("-r <Address>", "Dump tables from specified RSDP"); ACPI_OPTION ("-s", "Print table summaries only"); - ACPI_OPTION ("-v", "Version of this utility"); + ACPI_OPTION ("-v", "Display version information"); ACPI_OPTION ("-z", "Verbose mode"); printf ("\nTable Options:\n"); @@ -182,6 +184,7 @@ ApDoOptions ( char **argv) { int j; + ACPI_STATUS Status; /* Command line options */ @@ -196,6 +199,11 @@ ApDoOptions ( Gbl_BinaryMode = TRUE; continue; + case 'c': /* Dump customized tables */ + + Gbl_DumpCustomizedTables = TRUE; + continue; + case 'h': case '?': @@ -210,6 +218,17 @@ ApDoOptions ( } continue; + case 'r': /* Dump tables from specified RSDP */ + + Status = AcpiUtStrtoul64 (AcpiGbl_Optarg, 0, &Gbl_RsdpBase); + if (ACPI_FAILURE (Status)) + { + fprintf (stderr, "%s: Could not convert to a physical address\n", + AcpiGbl_Optarg); + exit (-1); + } + continue; + case 's': /* Print table summaries only */ Gbl_SummaryMode = TRUE; |
