diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-11 19:09:14 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-11 19:09:14 -0500 |
commit | f3a1bca09a1f4ac445434b97ed2a43e5c6449cf4 (patch) | |
tree | 72479ab61a2df7095b00ea180c73e3f4ef85ba7a /tools | |
parent | 51834d6ae9ae290482bff1389c304f244c7109ee (diff) | |
parent | e3e9b577b477edbf50e6c1f93beee89f450f2b68 (diff) |
Merge branch 'acpica'
* acpica: (43 commits)
ACPICA: Drop Linux-specific waking vector functions
ACPICA: Update version to 20151218
ACPICA: Add per-table execution of module-level code
ACPICA: Add "root node" case to the ACPI name repair code
ACPICA: Events: Introduce ACPI_REG_DISCONNECT invocation to acpi_ev_execute_reg_methods()
ACPICA: Events: Enhance acpi_ev_execute_reg_method() to ensure no _REG evaluations can happen during OS early boot stages
ACPICA: Events: Split acpi_ev_associate_reg_method() from region initialization code
ACPICA: Events: Fix an issue that region object is re-attached to another scope when it is already attached
ACPICA: Utilities: Reorder initialization code
ACPICA: Events: Uses common_notify for address space handlers
ACPICA: Events: Deploys acpi_ev_find_region_handler()
ACPICA: Cleanup code related to the per-table module level improvement
ACPICA: Update for CondRefOf and RefOf operators
ACPICA: Update internal #defines for ObjectType operator. No functional change
ACPICA: Update parameter type for ObjectType operator
ACPICA: Parser: Fix for SuperName method invocation
ACPICA: Parser: Add constants for internal namepath function
ACPICA: iasl/Disassembler: Support ASL ElseIf operator
ACPICA: Add new exception code, AE_IO_ERROR
ACPICA: Tools: Add spacing and missing options in acpibin tool
...
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/acpi/common/getopt.c | 2 | ||||
-rw-r--r-- | tools/power/acpi/os_specific/service_layers/oslibcfs.c | 3 | ||||
-rw-r--r-- | tools/power/acpi/tools/acpidump/apfiles.c | 13 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tools/power/acpi/common/getopt.c b/tools/power/acpi/common/getopt.c index 326e826a5d20..efefe309367a 100644 --- a/tools/power/acpi/common/getopt.c +++ b/tools/power/acpi/common/getopt.c | |||
@@ -47,6 +47,7 @@ | |||
47 | * Option strings: | 47 | * Option strings: |
48 | * "f" - Option has no arguments | 48 | * "f" - Option has no arguments |
49 | * "f:" - Option requires an argument | 49 | * "f:" - Option requires an argument |
50 | * "f+" - Option has an optional argument | ||
50 | * "f^" - Option has optional single-char sub-options | 51 | * "f^" - Option has optional single-char sub-options |
51 | * "f|" - Option has required single-char sub-options | 52 | * "f|" - Option has required single-char sub-options |
52 | */ | 53 | */ |
@@ -85,6 +86,7 @@ static int current_char_ptr = 1; | |||
85 | 86 | ||
86 | int acpi_getopt_argument(int argc, char **argv) | 87 | int acpi_getopt_argument(int argc, char **argv) |
87 | { | 88 | { |
89 | |||
88 | acpi_gbl_optind--; | 90 | acpi_gbl_optind--; |
89 | current_char_ptr++; | 91 | current_char_ptr++; |
90 | 92 | ||
diff --git a/tools/power/acpi/os_specific/service_layers/oslibcfs.c b/tools/power/acpi/os_specific/service_layers/oslibcfs.c index b51e40a9a120..6df758302604 100644 --- a/tools/power/acpi/os_specific/service_layers/oslibcfs.c +++ b/tools/power/acpi/os_specific/service_layers/oslibcfs.c | |||
@@ -73,6 +73,7 @@ ACPI_FILE acpi_os_open_file(const char *path, u8 modes) | |||
73 | if (modes & ACPI_FILE_WRITING) { | 73 | if (modes & ACPI_FILE_WRITING) { |
74 | modes_str[i++] = 'w'; | 74 | modes_str[i++] = 'w'; |
75 | } | 75 | } |
76 | |||
76 | if (modes & ACPI_FILE_BINARY) { | 77 | if (modes & ACPI_FILE_BINARY) { |
77 | modes_str[i++] = 'b'; | 78 | modes_str[i++] = 'b'; |
78 | } | 79 | } |
@@ -101,6 +102,7 @@ ACPI_FILE acpi_os_open_file(const char *path, u8 modes) | |||
101 | 102 | ||
102 | void acpi_os_close_file(ACPI_FILE file) | 103 | void acpi_os_close_file(ACPI_FILE file) |
103 | { | 104 | { |
105 | |||
104 | fclose(file); | 106 | fclose(file); |
105 | } | 107 | } |
106 | 108 | ||
@@ -202,6 +204,7 @@ acpi_status acpi_os_set_file_offset(ACPI_FILE file, long offset, u8 from) | |||
202 | if (from == ACPI_FILE_BEGIN) { | 204 | if (from == ACPI_FILE_BEGIN) { |
203 | ret = fseek(file, offset, SEEK_SET); | 205 | ret = fseek(file, offset, SEEK_SET); |
204 | } | 206 | } |
207 | |||
205 | if (from == ACPI_FILE_END) { | 208 | if (from == ACPI_FILE_END) { |
206 | ret = fseek(file, offset, SEEK_END); | 209 | ret = fseek(file, offset, SEEK_END); |
207 | } | 210 | } |
diff --git a/tools/power/acpi/tools/acpidump/apfiles.c b/tools/power/acpi/tools/acpidump/apfiles.c index a1c62de42a3b..bbdf9e8e25bc 100644 --- a/tools/power/acpi/tools/acpidump/apfiles.c +++ b/tools/power/acpi/tools/acpidump/apfiles.c | |||
@@ -48,6 +48,18 @@ | |||
48 | 48 | ||
49 | static int ap_is_existing_file(char *pathname); | 49 | static int ap_is_existing_file(char *pathname); |
50 | 50 | ||
51 | /****************************************************************************** | ||
52 | * | ||
53 | * FUNCTION: ap_is_existing_file | ||
54 | * | ||
55 | * PARAMETERS: pathname - Output filename | ||
56 | * | ||
57 | * RETURN: 0 on success | ||
58 | * | ||
59 | * DESCRIPTION: Query for file overwrite if it already exists. | ||
60 | * | ||
61 | ******************************************************************************/ | ||
62 | |||
51 | static int ap_is_existing_file(char *pathname) | 63 | static int ap_is_existing_file(char *pathname) |
52 | { | 64 | { |
53 | #ifndef _GNU_EFI | 65 | #ifndef _GNU_EFI |
@@ -136,6 +148,7 @@ int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance) | |||
136 | } else { | 148 | } else { |
137 | ACPI_MOVE_NAME(filename, table->signature); | 149 | ACPI_MOVE_NAME(filename, table->signature); |
138 | } | 150 | } |
151 | |||
139 | filename[0] = (char)tolower((int)filename[0]); | 152 | filename[0] = (char)tolower((int)filename[0]); |
140 | filename[1] = (char)tolower((int)filename[1]); | 153 | filename[1] = (char)tolower((int)filename[1]); |
141 | filename[2] = (char)tolower((int)filename[2]); | 154 | filename[2] = (char)tolower((int)filename[2]); |