diff options
author | Bob Moore <robert.moore@intel.com> | 2008-06-10 01:42:13 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:03 -0400 |
commit | 67a119f990063f5662574f6d6414fe9bc5ece86a (patch) | |
tree | 96be8ffbbe56a0a2a85dba14b8c81f153ac218f2 /include/acpi | |
parent | 11f2a61ab418305167f9a3f3a31a50449222f64b (diff) |
ACPICA: Eliminate acpi_native_uint type v2
No longer needed; replaced mostly with u32, but also acpi_size
where a type that changes 32/64 bit on 32/64-bit platforms is
required.
v2: Fix a cast of a 32-bit int to a pointer in ACPI to avoid a compiler warning.
from David Howells
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acdispat.h | 2 | ||||
-rw-r--r-- | include/acpi/acglobal.h | 2 | ||||
-rw-r--r-- | include/acpi/acmacros.h | 24 | ||||
-rw-r--r-- | include/acpi/acnamesp.h | 10 | ||||
-rw-r--r-- | include/acpi/acpiosxf.h | 2 | ||||
-rw-r--r-- | include/acpi/acpixf.h | 8 | ||||
-rw-r--r-- | include/acpi/acstruct.h | 2 | ||||
-rw-r--r-- | include/acpi/actables.h | 27 | ||||
-rw-r--r-- | include/acpi/actypes.h | 16 | ||||
-rw-r--r-- | include/acpi/acutils.h | 4 |
10 files changed, 44 insertions, 53 deletions
diff --git a/include/acpi/acdispat.h b/include/acpi/acdispat.h index 910f018d92c7..21a73a105d0a 100644 --- a/include/acpi/acdispat.h +++ b/include/acpi/acdispat.h | |||
@@ -221,7 +221,7 @@ acpi_ds_method_error(acpi_status status, struct acpi_walk_state *walk_state); | |||
221 | * dsinit | 221 | * dsinit |
222 | */ | 222 | */ |
223 | acpi_status | 223 | acpi_status |
224 | acpi_ds_initialize_objects(acpi_native_uint table_index, | 224 | acpi_ds_initialize_objects(u32 table_index, |
225 | struct acpi_namespace_node *start_node); | 225 | struct acpi_namespace_node *start_node); |
226 | 226 | ||
227 | /* | 227 | /* |
diff --git a/include/acpi/acglobal.h b/include/acpi/acglobal.h index 74ad971241db..15dda46b70d1 100644 --- a/include/acpi/acglobal.h +++ b/include/acpi/acglobal.h | |||
@@ -140,7 +140,7 @@ ACPI_EXTERN u32 acpi_gbl_trace_flags; | |||
140 | */ | 140 | */ |
141 | ACPI_EXTERN struct acpi_internal_rsdt acpi_gbl_root_table_list; | 141 | ACPI_EXTERN struct acpi_internal_rsdt acpi_gbl_root_table_list; |
142 | ACPI_EXTERN struct acpi_table_fadt acpi_gbl_FADT; | 142 | ACPI_EXTERN struct acpi_table_fadt acpi_gbl_FADT; |
143 | extern acpi_native_uint acpi_gbl_permanent_mmap; | 143 | extern u8 acpi_gbl_permanent_mmap; |
144 | 144 | ||
145 | /* These addresses are calculated from FADT address values */ | 145 | /* These addresses are calculated from FADT address values */ |
146 | 146 | ||
diff --git a/include/acpi/acmacros.h b/include/acpi/acmacros.h index 5ad6e3992304..d0494ea74b22 100644 --- a/include/acpi/acmacros.h +++ b/include/acpi/acmacros.h | |||
@@ -80,12 +80,12 @@ | |||
80 | */ | 80 | */ |
81 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p)) | 81 | #define ACPI_CAST_PTR(t, p) ((t *) (acpi_uintptr_t) (p)) |
82 | #define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (acpi_uintptr_t) (p)) | 82 | #define ACPI_CAST_INDIRECT_PTR(t, p) ((t **) (acpi_uintptr_t) (p)) |
83 | #define ACPI_ADD_PTR(t,a,b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (u8,(a)) + (acpi_native_uint)(b))) | 83 | #define ACPI_ADD_PTR(t, a, b) ACPI_CAST_PTR (t, (ACPI_CAST_PTR (u8,(a)) + (acpi_size)(b))) |
84 | #define ACPI_PTR_DIFF(a,b) (acpi_native_uint) (ACPI_CAST_PTR (u8,(a)) - ACPI_CAST_PTR (u8,(b))) | 84 | #define ACPI_PTR_DIFF(a, b) (acpi_size) (ACPI_CAST_PTR (u8,(a)) - ACPI_CAST_PTR (u8,(b))) |
85 | 85 | ||
86 | /* Pointer/Integer type conversions */ | 86 | /* Pointer/Integer type conversions */ |
87 | 87 | ||
88 | #define ACPI_TO_POINTER(i) ACPI_ADD_PTR (void,(void *) NULL,(acpi_native_uint) i) | 88 | #define ACPI_TO_POINTER(i) ACPI_ADD_PTR (void, (void *) NULL, (acpi_size) i) |
89 | #define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p,(void *) NULL) | 89 | #define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p,(void *) NULL) |
90 | #define ACPI_OFFSET(d,f) (acpi_size) ACPI_PTR_DIFF (&(((d *)0)->f),(void *) NULL) | 90 | #define ACPI_OFFSET(d,f) (acpi_size) ACPI_PTR_DIFF (&(((d *)0)->f),(void *) NULL) |
91 | #define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_POINTER(i) | 91 | #define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_POINTER(i) |
@@ -296,22 +296,22 @@ struct acpi_integer_overlay { | |||
296 | /* | 296 | /* |
297 | * Rounding macros (Power of two boundaries only) | 297 | * Rounding macros (Power of two boundaries only) |
298 | */ | 298 | */ |
299 | #define ACPI_ROUND_DOWN(value,boundary) (((acpi_native_uint)(value)) & \ | 299 | #define ACPI_ROUND_DOWN(value, boundary) (((acpi_size)(value)) & \ |
300 | (~(((acpi_native_uint) boundary)-1))) | 300 | (~(((acpi_size) boundary)-1))) |
301 | 301 | ||
302 | #define ACPI_ROUND_UP(value,boundary) ((((acpi_native_uint)(value)) + \ | 302 | #define ACPI_ROUND_UP(value, boundary) ((((acpi_size)(value)) + \ |
303 | (((acpi_native_uint) boundary)-1)) & \ | 303 | (((acpi_size) boundary)-1)) & \ |
304 | (~(((acpi_native_uint) boundary)-1))) | 304 | (~(((acpi_size) boundary)-1))) |
305 | 305 | ||
306 | /* Note: sizeof(acpi_native_uint) evaluates to either 2, 4, or 8 */ | 306 | /* Note: sizeof(acpi_size) evaluates to either 4 or 8 (32- vs 64-bit mode) */ |
307 | 307 | ||
308 | #define ACPI_ROUND_DOWN_TO_32BIT(a) ACPI_ROUND_DOWN(a,4) | 308 | #define ACPI_ROUND_DOWN_TO_32BIT(a) ACPI_ROUND_DOWN(a,4) |
309 | #define ACPI_ROUND_DOWN_TO_64BIT(a) ACPI_ROUND_DOWN(a,8) | 309 | #define ACPI_ROUND_DOWN_TO_64BIT(a) ACPI_ROUND_DOWN(a,8) |
310 | #define ACPI_ROUND_DOWN_TO_NATIVE_WORD(a) ACPI_ROUND_DOWN(a,sizeof(acpi_native_uint)) | 310 | #define ACPI_ROUND_DOWN_TO_NATIVE_WORD(a) ACPI_ROUND_DOWN(a,sizeof(acpi_size)) |
311 | 311 | ||
312 | #define ACPI_ROUND_UP_TO_32BIT(a) ACPI_ROUND_UP(a,4) | 312 | #define ACPI_ROUND_UP_TO_32BIT(a) ACPI_ROUND_UP(a,4) |
313 | #define ACPI_ROUND_UP_TO_64BIT(a) ACPI_ROUND_UP(a,8) | 313 | #define ACPI_ROUND_UP_TO_64BIT(a) ACPI_ROUND_UP(a,8) |
314 | #define ACPI_ROUND_UP_TO_NATIVE_WORD(a) ACPI_ROUND_UP(a,sizeof(acpi_native_uint)) | 314 | #define ACPI_ROUND_UP_TO_NATIVE_WORD(a) ACPI_ROUND_UP(a,sizeof(acpi_size)) |
315 | 315 | ||
316 | #define ACPI_ROUND_BITS_UP_TO_BYTES(a) ACPI_DIV_8((a) + 7) | 316 | #define ACPI_ROUND_BITS_UP_TO_BYTES(a) ACPI_DIV_8((a) + 7) |
317 | #define ACPI_ROUND_BITS_DOWN_TO_BYTES(a) ACPI_DIV_8((a)) | 317 | #define ACPI_ROUND_BITS_DOWN_TO_BYTES(a) ACPI_DIV_8((a)) |
@@ -322,7 +322,7 @@ struct acpi_integer_overlay { | |||
322 | 322 | ||
323 | #define ACPI_ROUND_UP_TO(value,boundary) (((value) + ((boundary)-1)) / (boundary)) | 323 | #define ACPI_ROUND_UP_TO(value,boundary) (((value) + ((boundary)-1)) / (boundary)) |
324 | 324 | ||
325 | #define ACPI_IS_MISALIGNED(value) (((acpi_native_uint)value) & (sizeof(acpi_native_uint)-1)) | 325 | #define ACPI_IS_MISALIGNED(value) (((acpi_size)value) & (sizeof(acpi_size)-1)) |
326 | 326 | ||
327 | /* | 327 | /* |
328 | * Bitmask creation | 328 | * Bitmask creation |
diff --git a/include/acpi/acnamesp.h b/include/acpi/acnamesp.h index 713b30903fe5..d622c309002e 100644 --- a/include/acpi/acnamesp.h +++ b/include/acpi/acnamesp.h | |||
@@ -86,8 +86,7 @@ acpi_status acpi_ns_initialize_devices(void); | |||
86 | acpi_status acpi_ns_load_namespace(void); | 86 | acpi_status acpi_ns_load_namespace(void); |
87 | 87 | ||
88 | acpi_status | 88 | acpi_status |
89 | acpi_ns_load_table(acpi_native_uint table_index, | 89 | acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node); |
90 | struct acpi_namespace_node *node); | ||
91 | 90 | ||
92 | /* | 91 | /* |
93 | * nswalk - walk the namespace | 92 | * nswalk - walk the namespace |
@@ -108,12 +107,11 @@ struct acpi_namespace_node *acpi_ns_get_next_node(acpi_object_type type, struct | |||
108 | * nsparse - table parsing | 107 | * nsparse - table parsing |
109 | */ | 108 | */ |
110 | acpi_status | 109 | acpi_status |
111 | acpi_ns_parse_table(acpi_native_uint table_index, | 110 | acpi_ns_parse_table(u32 table_index, struct acpi_namespace_node *start_node); |
112 | struct acpi_namespace_node *start_node); | ||
113 | 111 | ||
114 | acpi_status | 112 | acpi_status |
115 | acpi_ns_one_complete_parse(acpi_native_uint pass_number, | 113 | acpi_ns_one_complete_parse(u32 pass_number, |
116 | acpi_native_uint table_index, | 114 | u32 table_index, |
117 | struct acpi_namespace_node *start_node); | 115 | struct acpi_namespace_node *start_node); |
118 | 116 | ||
119 | /* | 117 | /* |
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index d4a560d2deb6..3f93a6b4e17f 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
@@ -144,7 +144,7 @@ void acpi_os_release_mutex(acpi_mutex handle); | |||
144 | void *acpi_os_allocate(acpi_size size); | 144 | void *acpi_os_allocate(acpi_size size); |
145 | 145 | ||
146 | void __iomem *acpi_os_map_memory(acpi_physical_address where, | 146 | void __iomem *acpi_os_map_memory(acpi_physical_address where, |
147 | acpi_native_uint length); | 147 | acpi_size length); |
148 | 148 | ||
149 | void acpi_os_unmap_memory(void __iomem * logical_address, acpi_size size); | 149 | void acpi_os_unmap_memory(void __iomem * logical_address, acpi_size size); |
150 | 150 | ||
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 2c3806e6546f..bd95ecc6e0fa 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -98,7 +98,7 @@ void acpi_free(void *address); | |||
98 | */ | 98 | */ |
99 | acpi_status acpi_reallocate_root_table(void); | 99 | acpi_status acpi_reallocate_root_table(void); |
100 | 100 | ||
101 | acpi_status acpi_find_root_pointer(acpi_native_uint * rsdp_address); | 101 | acpi_status acpi_find_root_pointer(acpi_size *rsdp_address); |
102 | 102 | ||
103 | acpi_status acpi_load_tables(void); | 103 | acpi_status acpi_load_tables(void); |
104 | 104 | ||
@@ -108,15 +108,15 @@ acpi_status acpi_unload_table_id(acpi_owner_id id); | |||
108 | 108 | ||
109 | acpi_status | 109 | acpi_status |
110 | acpi_get_table_header(acpi_string signature, | 110 | acpi_get_table_header(acpi_string signature, |
111 | acpi_native_uint instance, | 111 | u32 instance, |
112 | struct acpi_table_header *out_table_header); | 112 | struct acpi_table_header *out_table_header); |
113 | 113 | ||
114 | acpi_status | 114 | acpi_status |
115 | acpi_get_table(acpi_string signature, | 115 | acpi_get_table(acpi_string signature, |
116 | acpi_native_uint instance, struct acpi_table_header **out_table); | 116 | u32 instance, struct acpi_table_header **out_table); |
117 | 117 | ||
118 | acpi_status | 118 | acpi_status |
119 | acpi_get_table_by_index(acpi_native_uint table_index, | 119 | acpi_get_table_by_index(u32 table_index, |
120 | struct acpi_table_header **out_table); | 120 | struct acpi_table_header **out_table); |
121 | 121 | ||
122 | acpi_status | 122 | acpi_status |
diff --git a/include/acpi/acstruct.h b/include/acpi/acstruct.h index 818c24d7d2d1..7980a26bad35 100644 --- a/include/acpi/acstruct.h +++ b/include/acpi/acstruct.h | |||
@@ -142,7 +142,7 @@ struct acpi_init_walk_info { | |||
142 | u16 package_init; | 142 | u16 package_init; |
143 | u16 object_count; | 143 | u16 object_count; |
144 | acpi_owner_id owner_id; | 144 | acpi_owner_id owner_id; |
145 | acpi_native_uint table_index; | 145 | u32 table_index; |
146 | }; | 146 | }; |
147 | 147 | ||
148 | struct acpi_get_devices_info { | 148 | struct acpi_get_devices_info { |
diff --git a/include/acpi/actables.h b/include/acpi/actables.h index 4b36a55b0b3b..0cbe1b9ab522 100644 --- a/include/acpi/actables.h +++ b/include/acpi/actables.h | |||
@@ -49,7 +49,7 @@ acpi_status acpi_allocate_root_table(u32 initial_table_count); | |||
49 | /* | 49 | /* |
50 | * tbfadt - FADT parse/convert/validate | 50 | * tbfadt - FADT parse/convert/validate |
51 | */ | 51 | */ |
52 | void acpi_tb_parse_fadt(acpi_native_uint table_index, u8 flags); | 52 | void acpi_tb_parse_fadt(u32 table_index, u8 flags); |
53 | 53 | ||
54 | void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); | 54 | void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); |
55 | 55 | ||
@@ -58,8 +58,7 @@ void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); | |||
58 | */ | 58 | */ |
59 | acpi_status | 59 | acpi_status |
60 | acpi_tb_find_table(char *signature, | 60 | acpi_tb_find_table(char *signature, |
61 | char *oem_id, | 61 | char *oem_id, char *oem_table_id, u32 *table_index); |
62 | char *oem_table_id, acpi_native_uint * table_index); | ||
63 | 62 | ||
64 | /* | 63 | /* |
65 | * tbinstal - Table removal and deletion | 64 | * tbinstal - Table removal and deletion |
@@ -69,30 +68,28 @@ acpi_status acpi_tb_resize_root_table_list(void); | |||
69 | acpi_status acpi_tb_verify_table(struct acpi_table_desc *table_desc); | 68 | acpi_status acpi_tb_verify_table(struct acpi_table_desc *table_desc); |
70 | 69 | ||
71 | acpi_status | 70 | acpi_status |
72 | acpi_tb_add_table(struct acpi_table_desc *table_desc, | 71 | acpi_tb_add_table(struct acpi_table_desc *table_desc, u32 *table_index); |
73 | acpi_native_uint * table_index); | ||
74 | 72 | ||
75 | acpi_status | 73 | acpi_status |
76 | acpi_tb_store_table(acpi_physical_address address, | 74 | acpi_tb_store_table(acpi_physical_address address, |
77 | struct acpi_table_header *table, | 75 | struct acpi_table_header *table, |
78 | u32 length, u8 flags, acpi_native_uint * table_index); | 76 | u32 length, u8 flags, u32 *table_index); |
79 | 77 | ||
80 | void acpi_tb_delete_table(struct acpi_table_desc *table_desc); | 78 | void acpi_tb_delete_table(struct acpi_table_desc *table_desc); |
81 | 79 | ||
82 | void acpi_tb_terminate(void); | 80 | void acpi_tb_terminate(void); |
83 | 81 | ||
84 | void acpi_tb_delete_namespace_by_owner(acpi_native_uint table_index); | 82 | void acpi_tb_delete_namespace_by_owner(u32 table_index); |
85 | 83 | ||
86 | acpi_status acpi_tb_allocate_owner_id(acpi_native_uint table_index); | 84 | acpi_status acpi_tb_allocate_owner_id(u32 table_index); |
87 | 85 | ||
88 | acpi_status acpi_tb_release_owner_id(acpi_native_uint table_index); | 86 | acpi_status acpi_tb_release_owner_id(u32 table_index); |
89 | 87 | ||
90 | acpi_status | 88 | acpi_status acpi_tb_get_owner_id(u32 table_index, acpi_owner_id *owner_id); |
91 | acpi_tb_get_owner_id(acpi_native_uint table_index, acpi_owner_id * owner_id); | ||
92 | 89 | ||
93 | u8 acpi_tb_is_table_loaded(acpi_native_uint table_index); | 90 | u8 acpi_tb_is_table_loaded(u32 table_index); |
94 | 91 | ||
95 | void acpi_tb_set_table_loaded_flag(acpi_native_uint table_index, u8 is_loaded); | 92 | void acpi_tb_set_table_loaded_flag(u32 table_index, u8 is_loaded); |
96 | 93 | ||
97 | /* | 94 | /* |
98 | * tbutils - table manager utilities | 95 | * tbutils - table manager utilities |
@@ -103,14 +100,14 @@ void | |||
103 | acpi_tb_print_table_header(acpi_physical_address address, | 100 | acpi_tb_print_table_header(acpi_physical_address address, |
104 | struct acpi_table_header *header); | 101 | struct acpi_table_header *header); |
105 | 102 | ||
106 | u8 acpi_tb_checksum(u8 * buffer, acpi_native_uint length); | 103 | u8 acpi_tb_checksum(u8 *buffer, u32 length); |
107 | 104 | ||
108 | acpi_status | 105 | acpi_status |
109 | acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length); | 106 | acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length); |
110 | 107 | ||
111 | void | 108 | void |
112 | acpi_tb_install_table(acpi_physical_address address, | 109 | acpi_tb_install_table(acpi_physical_address address, |
113 | u8 flags, char *signature, acpi_native_uint table_index); | 110 | u8 flags, char *signature, u32 table_index); |
114 | 111 | ||
115 | acpi_status | 112 | acpi_status |
116 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags); | 113 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags); |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index dfea2d440488..4ea4f40bf894 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -110,10 +110,10 @@ | |||
110 | * usually used for memory allocation, efficient loop counters, and array | 110 | * usually used for memory allocation, efficient loop counters, and array |
111 | * indexes. The types are similar to the size_t type in the C library and are | 111 | * indexes. The types are similar to the size_t type in the C library and are |
112 | * required because there is no C type that consistently represents the native | 112 | * required because there is no C type that consistently represents the native |
113 | * data width. | 113 | * data width. ACPI_SIZE is needed because there is no guarantee that a |
114 | * kernel-level C library is present. | ||
114 | * | 115 | * |
115 | * ACPI_SIZE 16/32/64-bit unsigned value | 116 | * ACPI_SIZE 16/32/64-bit unsigned value |
116 | * ACPI_NATIVE_UINT 16/32/64-bit unsigned value | ||
117 | * ACPI_NATIVE_INT 16/32/64-bit signed value | 117 | * ACPI_NATIVE_INT 16/32/64-bit signed value |
118 | * | 118 | * |
119 | */ | 119 | */ |
@@ -147,9 +147,9 @@ typedef int INT32; | |||
147 | 147 | ||
148 | /*! [End] no source code translation !*/ | 148 | /*! [End] no source code translation !*/ |
149 | 149 | ||
150 | typedef u64 acpi_native_uint; | ||
151 | typedef s64 acpi_native_int; | 150 | typedef s64 acpi_native_int; |
152 | 151 | ||
152 | typedef u64 acpi_size; | ||
153 | typedef u64 acpi_io_address; | 153 | typedef u64 acpi_io_address; |
154 | typedef u64 acpi_physical_address; | 154 | typedef u64 acpi_physical_address; |
155 | 155 | ||
@@ -186,9 +186,9 @@ typedef int INT32; | |||
186 | 186 | ||
187 | /*! [End] no source code translation !*/ | 187 | /*! [End] no source code translation !*/ |
188 | 188 | ||
189 | typedef u32 acpi_native_uint; | ||
190 | typedef s32 acpi_native_int; | 189 | typedef s32 acpi_native_int; |
191 | 190 | ||
191 | typedef u32 acpi_size; | ||
192 | typedef u32 acpi_io_address; | 192 | typedef u32 acpi_io_address; |
193 | typedef u32 acpi_physical_address; | 193 | typedef u32 acpi_physical_address; |
194 | 194 | ||
@@ -202,10 +202,6 @@ typedef u32 acpi_physical_address; | |||
202 | #error unknown ACPI_MACHINE_WIDTH | 202 | #error unknown ACPI_MACHINE_WIDTH |
203 | #endif | 203 | #endif |
204 | 204 | ||
205 | /* Variable-width type, used instead of clib size_t */ | ||
206 | |||
207 | typedef acpi_native_uint acpi_size; | ||
208 | |||
209 | /******************************************************************************* | 205 | /******************************************************************************* |
210 | * | 206 | * |
211 | * OS-dependent and compiler-dependent types | 207 | * OS-dependent and compiler-dependent types |
@@ -219,7 +215,7 @@ typedef acpi_native_uint acpi_size; | |||
219 | /* Value returned by acpi_os_get_thread_id */ | 215 | /* Value returned by acpi_os_get_thread_id */ |
220 | 216 | ||
221 | #ifndef acpi_thread_id | 217 | #ifndef acpi_thread_id |
222 | #define acpi_thread_id acpi_native_uint | 218 | #define acpi_thread_id acpi_size |
223 | #endif | 219 | #endif |
224 | 220 | ||
225 | /* Object returned from acpi_os_create_lock */ | 221 | /* Object returned from acpi_os_create_lock */ |
@@ -231,7 +227,7 @@ typedef acpi_native_uint acpi_size; | |||
231 | /* Flags for acpi_os_acquire_lock/acpi_os_release_lock */ | 227 | /* Flags for acpi_os_acquire_lock/acpi_os_release_lock */ |
232 | 228 | ||
233 | #ifndef acpi_cpu_flags | 229 | #ifndef acpi_cpu_flags |
234 | #define acpi_cpu_flags acpi_native_uint | 230 | #define acpi_cpu_flags acpi_size |
235 | #endif | 231 | #endif |
236 | 232 | ||
237 | /* Object returned from acpi_os_create_cache */ | 233 | /* Object returned from acpi_os_create_cache */ |
diff --git a/include/acpi/acutils.h b/include/acpi/acutils.h index b42cadf07302..3f663a0077be 100644 --- a/include/acpi/acutils.h +++ b/include/acpi/acutils.h | |||
@@ -172,7 +172,7 @@ char *acpi_ut_strstr(char *string1, char *string2); | |||
172 | 172 | ||
173 | void *acpi_ut_memcpy(void *dest, const void *src, acpi_size count); | 173 | void *acpi_ut_memcpy(void *dest, const void *src, acpi_size count); |
174 | 174 | ||
175 | void *acpi_ut_memset(void *dest, acpi_native_uint value, acpi_size count); | 175 | void *acpi_ut_memset(void *dest, u8 value, acpi_size count); |
176 | 176 | ||
177 | int acpi_ut_to_upper(int c); | 177 | int acpi_ut_to_upper(int c); |
178 | 178 | ||
@@ -476,7 +476,7 @@ u8 acpi_ut_valid_acpi_name(u32 name); | |||
476 | 476 | ||
477 | acpi_name acpi_ut_repair_name(char *name); | 477 | acpi_name acpi_ut_repair_name(char *name); |
478 | 478 | ||
479 | u8 acpi_ut_valid_acpi_char(char character, acpi_native_uint position); | 479 | u8 acpi_ut_valid_acpi_char(char character, u32 position); |
480 | 480 | ||
481 | acpi_status | 481 | acpi_status |
482 | acpi_ut_strtoul64(char *string, u32 base, acpi_integer * ret_integer); | 482 | acpi_ut_strtoul64(char *string, u32 base, acpi_integer * ret_integer); |