aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/exdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/exdump.c')
-rw-r--r--drivers/acpi/acpica/exdump.c51
1 files changed, 27 insertions, 24 deletions
diff --git a/drivers/acpi/acpica/exdump.c b/drivers/acpi/acpica/exdump.c
index 2a6ac0a3bc1e..213c081776fc 100644
--- a/drivers/acpi/acpica/exdump.c
+++ b/drivers/acpi/acpica/exdump.c
@@ -109,9 +109,9 @@ static struct acpi_exdump_info acpi_ex_dump_package[5] = {
109static struct acpi_exdump_info acpi_ex_dump_device[4] = { 109static struct acpi_exdump_info acpi_ex_dump_device[4] = {
110 {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_device), NULL}, 110 {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_device), NULL},
111 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.handler), "Handler"}, 111 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.handler), "Handler"},
112 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.system_notify), 112 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.notify_list[0]),
113 "System Notify"}, 113 "System Notify"},
114 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.device_notify), 114 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(device.notify_list[1]),
115 "Device Notify"} 115 "Device Notify"}
116}; 116};
117 117
@@ -158,9 +158,9 @@ static struct acpi_exdump_info acpi_ex_dump_power[5] = {
158 "System Level"}, 158 "System Level"},
159 {ACPI_EXD_UINT32, ACPI_EXD_OFFSET(power_resource.resource_order), 159 {ACPI_EXD_UINT32, ACPI_EXD_OFFSET(power_resource.resource_order),
160 "Resource Order"}, 160 "Resource Order"},
161 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(power_resource.system_notify), 161 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(power_resource.notify_list[0]),
162 "System Notify"}, 162 "System Notify"},
163 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(power_resource.device_notify), 163 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(power_resource.notify_list[1]),
164 "Device Notify"} 164 "Device Notify"}
165}; 165};
166 166
@@ -169,18 +169,18 @@ static struct acpi_exdump_info acpi_ex_dump_processor[7] = {
169 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET(processor.proc_id), "Processor ID"}, 169 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET(processor.proc_id), "Processor ID"},
170 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET(processor.length), "Length"}, 170 {ACPI_EXD_UINT8, ACPI_EXD_OFFSET(processor.length), "Length"},
171 {ACPI_EXD_ADDRESS, ACPI_EXD_OFFSET(processor.address), "Address"}, 171 {ACPI_EXD_ADDRESS, ACPI_EXD_OFFSET(processor.address), "Address"},
172 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.system_notify), 172 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.notify_list[0]),
173 "System Notify"}, 173 "System Notify"},
174 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.device_notify), 174 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.notify_list[1]),
175 "Device Notify"}, 175 "Device Notify"},
176 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.handler), "Handler"} 176 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(processor.handler), "Handler"}
177}; 177};
178 178
179static struct acpi_exdump_info acpi_ex_dump_thermal[4] = { 179static struct acpi_exdump_info acpi_ex_dump_thermal[4] = {
180 {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_thermal), NULL}, 180 {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_thermal), NULL},
181 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.system_notify), 181 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[0]),
182 "System Notify"}, 182 "System Notify"},
183 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.device_notify), 183 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.notify_list[1]),
184 "Device Notify"}, 184 "Device Notify"},
185 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.handler), "Handler"} 185 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(thermal_zone.handler), "Handler"}
186}; 186};
@@ -241,10 +241,15 @@ static struct acpi_exdump_info acpi_ex_dump_address_handler[6] = {
241 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(address_space.context), "Context"} 241 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(address_space.context), "Context"}
242}; 242};
243 243
244static struct acpi_exdump_info acpi_ex_dump_notify[3] = { 244static struct acpi_exdump_info acpi_ex_dump_notify[7] = {
245 {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_notify), NULL}, 245 {ACPI_EXD_INIT, ACPI_EXD_TABLE_SIZE(acpi_ex_dump_notify), NULL},
246 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.node), "Node"}, 246 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.node), "Node"},
247 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.context), "Context"} 247 {ACPI_EXD_UINT32, ACPI_EXD_OFFSET(notify.handler_type), "Handler Type"},
248 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.handler), "Handler"},
249 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.context), "Context"},
250 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.next[0]),
251 "Next System Notify"},
252 {ACPI_EXD_POINTER, ACPI_EXD_OFFSET(notify.next[1]), "Next Device Notify"}
248}; 253};
249 254
250/* Miscellaneous tables */ 255/* Miscellaneous tables */
@@ -318,7 +323,7 @@ static struct acpi_exdump_info *acpi_ex_dump_info[] = {
318 * FUNCTION: acpi_ex_dump_object 323 * FUNCTION: acpi_ex_dump_object
319 * 324 *
320 * PARAMETERS: obj_desc - Descriptor to dump 325 * PARAMETERS: obj_desc - Descriptor to dump
321 * Info - Info table corresponding to this object 326 * info - Info table corresponding to this object
322 * type 327 * type
323 * 328 *
324 * RETURN: None 329 * RETURN: None
@@ -444,7 +449,7 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc,
444 * FUNCTION: acpi_ex_dump_operand 449 * FUNCTION: acpi_ex_dump_operand
445 * 450 *
446 * PARAMETERS: *obj_desc - Pointer to entry to be dumped 451 * PARAMETERS: *obj_desc - Pointer to entry to be dumped
447 * Depth - Current nesting depth 452 * depth - Current nesting depth
448 * 453 *
449 * RETURN: None 454 * RETURN: None
450 * 455 *
@@ -726,7 +731,7 @@ void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth)
726 * 731 *
727 * FUNCTION: acpi_ex_dump_operands 732 * FUNCTION: acpi_ex_dump_operands
728 * 733 *
729 * PARAMETERS: Operands - A list of Operand objects 734 * PARAMETERS: operands - A list of Operand objects
730 * opcode_name - AML opcode name 735 * opcode_name - AML opcode name
731 * num_operands - Operand count for this opcode 736 * num_operands - Operand count for this opcode
732 * 737 *
@@ -769,8 +774,8 @@ acpi_ex_dump_operands(union acpi_operand_object **operands,
769 * 774 *
770 * FUNCTION: acpi_ex_out* functions 775 * FUNCTION: acpi_ex_out* functions
771 * 776 *
772 * PARAMETERS: Title - Descriptive text 777 * PARAMETERS: title - Descriptive text
773 * Value - Value to be displayed 778 * value - Value to be displayed
774 * 779 *
775 * DESCRIPTION: Object dump output formatting functions. These functions 780 * DESCRIPTION: Object dump output formatting functions. These functions
776 * reduce the number of format strings required and keeps them 781 * reduce the number of format strings required and keeps them
@@ -792,8 +797,8 @@ static void acpi_ex_out_pointer(char *title, void *value)
792 * 797 *
793 * FUNCTION: acpi_ex_dump_namespace_node 798 * FUNCTION: acpi_ex_dump_namespace_node
794 * 799 *
795 * PARAMETERS: Node - Descriptor to dump 800 * PARAMETERS: node - Descriptor to dump
796 * Flags - Force display if TRUE 801 * flags - Force display if TRUE
797 * 802 *
798 * DESCRIPTION: Dumps the members of the given.Node 803 * DESCRIPTION: Dumps the members of the given.Node
799 * 804 *
@@ -825,7 +830,7 @@ void acpi_ex_dump_namespace_node(struct acpi_namespace_node *node, u32 flags)
825 * 830 *
826 * FUNCTION: acpi_ex_dump_reference_obj 831 * FUNCTION: acpi_ex_dump_reference_obj
827 * 832 *
828 * PARAMETERS: Object - Descriptor to dump 833 * PARAMETERS: object - Descriptor to dump
829 * 834 *
830 * DESCRIPTION: Dumps a reference object 835 * DESCRIPTION: Dumps a reference object
831 * 836 *
@@ -882,8 +887,8 @@ static void acpi_ex_dump_reference_obj(union acpi_operand_object *obj_desc)
882 * FUNCTION: acpi_ex_dump_package_obj 887 * FUNCTION: acpi_ex_dump_package_obj
883 * 888 *
884 * PARAMETERS: obj_desc - Descriptor to dump 889 * PARAMETERS: obj_desc - Descriptor to dump
885 * Level - Indentation Level 890 * level - Indentation Level
886 * Index - Package index for this object 891 * index - Package index for this object
887 * 892 *
888 * DESCRIPTION: Dumps the elements of the package 893 * DESCRIPTION: Dumps the elements of the package
889 * 894 *
@@ -926,9 +931,7 @@ acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
926 case ACPI_TYPE_STRING: 931 case ACPI_TYPE_STRING:
927 932
928 acpi_os_printf("[String] Value: "); 933 acpi_os_printf("[String] Value: ");
929 for (i = 0; i < obj_desc->string.length; i++) { 934 acpi_ut_print_string(obj_desc->string.pointer, ACPI_UINT8_MAX);
930 acpi_os_printf("%c", obj_desc->string.pointer[i]);
931 }
932 acpi_os_printf("\n"); 935 acpi_os_printf("\n");
933 break; 936 break;
934 937
@@ -977,7 +980,7 @@ acpi_ex_dump_package_obj(union acpi_operand_object *obj_desc,
977 * FUNCTION: acpi_ex_dump_object_descriptor 980 * FUNCTION: acpi_ex_dump_object_descriptor
978 * 981 *
979 * PARAMETERS: obj_desc - Descriptor to dump 982 * PARAMETERS: obj_desc - Descriptor to dump
980 * Flags - Force display if TRUE 983 * flags - Force display if TRUE
981 * 984 *
982 * DESCRIPTION: Dumps the members of the object descriptor given. 985 * DESCRIPTION: Dumps the members of the object descriptor given.
983 * 986 *