diff options
author | Bob Moore <robert.moore@intel.com> | 2010-01-20 21:06:32 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-01-22 12:30:06 -0500 |
commit | 5df7e6cb42da36c7d878239bebc81907b15f3943 (patch) | |
tree | 44b6829f90f8a31d18e43c0211ee41f0217ac7b1 /include/acpi | |
parent | 091f4d718620a79698e1c8ca3e9acbf78eb62da3 (diff) |
ACPICA: Remove obsolete ACPI_INTEGER (acpi_integer) type
This type was introduced as the code was migrated from ACPI 1.0
(with 32-bit AML integers) to ACPI 2.0 (with 64-bit integers). It
is now obsolete and this change removes it from the ACPICA code
base, replaced by u64. The original typedef has been retained
for now for compatibility with existing device driver code.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpiosxf.h | 4 | ||||
-rw-r--r-- | include/acpi/acrestyp.h | 2 | ||||
-rw-r--r-- | include/acpi/actypes.h | 27 |
3 files changed, 19 insertions, 14 deletions
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index c7e9431e16f1..b396854b83b0 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
@@ -196,7 +196,7 @@ acpi_os_hotplug_execute(acpi_osd_exec_callback function, void *context); | |||
196 | 196 | ||
197 | void acpi_os_wait_events_complete(void *context); | 197 | void acpi_os_wait_events_complete(void *context); |
198 | 198 | ||
199 | void acpi_os_sleep(acpi_integer milliseconds); | 199 | void acpi_os_sleep(u64 milliseconds); |
200 | 200 | ||
201 | void acpi_os_stall(u32 microseconds); | 201 | void acpi_os_stall(u32 microseconds); |
202 | 202 | ||
@@ -227,7 +227,7 @@ acpi_os_read_pci_configuration(struct acpi_pci_id *pci_id, | |||
227 | 227 | ||
228 | acpi_status | 228 | acpi_status |
229 | acpi_os_write_pci_configuration(struct acpi_pci_id *pci_id, | 229 | acpi_os_write_pci_configuration(struct acpi_pci_id *pci_id, |
230 | u32 reg, acpi_integer value, u32 width); | 230 | u32 reg, u64 value, u32 width); |
231 | 231 | ||
232 | /* | 232 | /* |
233 | * Interim function needed for PCI IRQ routing | 233 | * Interim function needed for PCI IRQ routing |
diff --git a/include/acpi/acrestyp.h b/include/acpi/acrestyp.h index dc6302e94793..e5526354ba5e 100644 --- a/include/acpi/acrestyp.h +++ b/include/acpi/acrestyp.h | |||
@@ -397,7 +397,7 @@ struct acpi_resource { | |||
397 | struct acpi_pci_routing_table { | 397 | struct acpi_pci_routing_table { |
398 | u32 length; | 398 | u32 length; |
399 | u32 pin; | 399 | u32 pin; |
400 | acpi_integer address; /* here for 64-bit alignment */ | 400 | u64 address; /* here for 64-bit alignment */ |
401 | u32 source_index; | 401 | u32 source_index; |
402 | char source[4]; /* pad to 64 bits so sizeof() works in all cases */ | 402 | char source[4]; /* pad to 64 bits so sizeof() works in all cases */ |
403 | }; | 403 | }; |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 4e65c201dcd4..07f2cdcc5eb1 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -390,14 +390,6 @@ struct uint32_struct { | |||
390 | u32 hi; | 390 | u32 hi; |
391 | }; | 391 | }; |
392 | 392 | ||
393 | /* | ||
394 | * Acpi integer width. In ACPI version 1, integers are 32 bits. In ACPI | ||
395 | * version 2, integers are 64 bits. Note that this pertains to the ACPI integer | ||
396 | * type only, not other integers used in the implementation of the ACPI CA | ||
397 | * subsystem. | ||
398 | */ | ||
399 | typedef unsigned long long acpi_integer; | ||
400 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX | ||
401 | #define ACPI_INTEGER_BIT_SIZE 64 | 393 | #define ACPI_INTEGER_BIT_SIZE 64 |
402 | #define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */ | 394 | #define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */ |
403 | 395 | ||
@@ -421,6 +413,19 @@ typedef unsigned long long acpi_integer; | |||
421 | #define ACPI_WAIT_FOREVER 0xFFFF /* u16, as per ACPI spec */ | 413 | #define ACPI_WAIT_FOREVER 0xFFFF /* u16, as per ACPI spec */ |
422 | #define ACPI_DO_NOT_WAIT 0 | 414 | #define ACPI_DO_NOT_WAIT 0 |
423 | 415 | ||
416 | /* | ||
417 | * Obsolete: Acpi integer width. In ACPI version 1 (1996), integers are 32 bits. | ||
418 | * In ACPI version 2 (2000) and later, integers are 64 bits. Note that this | ||
419 | * pertains to the ACPI integer type only, not to other integers used in the | ||
420 | * implementation of the ACPICA subsystem. | ||
421 | * | ||
422 | * 01/2010: This type is obsolete and has been removed from the entire ACPICA | ||
423 | * code base. It remains here for compatibility with device drivers that use | ||
424 | * the type. However, it will be removed in the future. | ||
425 | */ | ||
426 | typedef u64 acpi_integer; | ||
427 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX | ||
428 | |||
424 | /******************************************************************************* | 429 | /******************************************************************************* |
425 | * | 430 | * |
426 | * Commonly used macros | 431 | * Commonly used macros |
@@ -801,7 +806,7 @@ union acpi_object { | |||
801 | acpi_object_type type; /* See definition of acpi_ns_type for values */ | 806 | acpi_object_type type; /* See definition of acpi_ns_type for values */ |
802 | struct { | 807 | struct { |
803 | acpi_object_type type; /* ACPI_TYPE_INTEGER */ | 808 | acpi_object_type type; /* ACPI_TYPE_INTEGER */ |
804 | acpi_integer value; /* The actual number */ | 809 | u64 value; /* The actual number */ |
805 | } integer; | 810 | } integer; |
806 | 811 | ||
807 | struct { | 812 | struct { |
@@ -945,7 +950,7 @@ typedef | |||
945 | acpi_status(*acpi_adr_space_handler) (u32 function, | 950 | acpi_status(*acpi_adr_space_handler) (u32 function, |
946 | acpi_physical_address address, | 951 | acpi_physical_address address, |
947 | u32 bit_width, | 952 | u32 bit_width, |
948 | acpi_integer * value, | 953 | u64 *value, |
949 | void *handler_context, | 954 | void *handler_context, |
950 | void *region_context); | 955 | void *region_context); |
951 | 956 | ||
@@ -1005,7 +1010,7 @@ struct acpi_device_info { | |||
1005 | u8 highest_dstates[4]; /* _sx_d values: 0xFF indicates not valid */ | 1010 | u8 highest_dstates[4]; /* _sx_d values: 0xFF indicates not valid */ |
1006 | u8 lowest_dstates[5]; /* _sx_w values: 0xFF indicates not valid */ | 1011 | u8 lowest_dstates[5]; /* _sx_w values: 0xFF indicates not valid */ |
1007 | u32 current_status; /* _STA value */ | 1012 | u32 current_status; /* _STA value */ |
1008 | acpi_integer address; /* _ADR value */ | 1013 | u64 address; /* _ADR value */ |
1009 | struct acpica_device_id hardware_id; /* _HID value */ | 1014 | struct acpica_device_id hardware_id; /* _HID value */ |
1010 | struct acpica_device_id unique_id; /* _UID value */ | 1015 | struct acpica_device_id unique_id; /* _UID value */ |
1011 | struct acpica_device_id_list compatible_id_list; /* _CID list <must be last> */ | 1016 | struct acpica_device_id_list compatible_id_list; /* _CID list <must be last> */ |