diff options
Diffstat (limited to 'include/acpi/platform/aclinux.h')
-rw-r--r-- | include/acpi/platform/aclinux.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 93b61b1f2beb..a5d98d171866 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
@@ -92,6 +92,8 @@ | |||
92 | #include <asm/acenv.h> | 92 | #include <asm/acenv.h> |
93 | #endif | 93 | #endif |
94 | 94 | ||
95 | #define ACPI_INIT_FUNCTION __init | ||
96 | |||
95 | #ifndef CONFIG_ACPI | 97 | #ifndef CONFIG_ACPI |
96 | 98 | ||
97 | /* External globals for __KERNEL__, stubs is needed */ | 99 | /* External globals for __KERNEL__, stubs is needed */ |
@@ -168,13 +170,21 @@ | |||
168 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_next_filename | 170 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_next_filename |
169 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_close_directory | 171 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_close_directory |
170 | 172 | ||
173 | #define ACPI_MSG_ERROR KERN_ERR "ACPI Error: " | ||
174 | #define ACPI_MSG_EXCEPTION KERN_ERR "ACPI Exception: " | ||
175 | #define ACPI_MSG_WARNING KERN_WARNING "ACPI Warning: " | ||
176 | #define ACPI_MSG_INFO KERN_INFO "ACPI: " | ||
177 | |||
178 | #define ACPI_MSG_BIOS_ERROR KERN_ERR "ACPI BIOS Error (bug): " | ||
179 | #define ACPI_MSG_BIOS_WARNING KERN_WARNING "ACPI BIOS Warning (bug): " | ||
180 | |||
171 | #else /* !__KERNEL__ */ | 181 | #else /* !__KERNEL__ */ |
172 | 182 | ||
173 | #include <stdarg.h> | 183 | #define ACPI_USE_STANDARD_HEADERS |
174 | #include <string.h> | 184 | |
175 | #include <stdlib.h> | 185 | #ifdef ACPI_USE_STANDARD_HEADERS |
176 | #include <ctype.h> | ||
177 | #include <unistd.h> | 186 | #include <unistd.h> |
187 | #endif | ||
178 | 188 | ||
179 | /* Define/disable kernel-specific declarators */ | 189 | /* Define/disable kernel-specific declarators */ |
180 | 190 | ||
@@ -205,8 +215,4 @@ | |||
205 | 215 | ||
206 | #endif /* __KERNEL__ */ | 216 | #endif /* __KERNEL__ */ |
207 | 217 | ||
208 | /* Linux uses GCC */ | ||
209 | |||
210 | #include <acpi/platform/acgcc.h> | ||
211 | |||
212 | #endif /* __ACLINUX_H__ */ | 218 | #endif /* __ACLINUX_H__ */ |