diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/acpi.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 6001b4da39dd..26b75442ff7a 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -306,6 +306,11 @@ extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, | |||
306 | u32 *mask, u32 req); | 306 | u32 *mask, u32 req); |
307 | extern void acpi_early_init(void); | 307 | extern void acpi_early_init(void); |
308 | 308 | ||
309 | extern int acpi_nvs_register(__u64 start, __u64 size); | ||
310 | |||
311 | extern int acpi_nvs_for_each_region(int (*func)(__u64, __u64, void *), | ||
312 | void *data); | ||
313 | |||
309 | #else /* !CONFIG_ACPI */ | 314 | #else /* !CONFIG_ACPI */ |
310 | 315 | ||
311 | #define acpi_disabled 1 | 316 | #define acpi_disabled 1 |
@@ -348,15 +353,18 @@ static inline int acpi_table_parse(char *id, | |||
348 | { | 353 | { |
349 | return -1; | 354 | return -1; |
350 | } | 355 | } |
351 | #endif /* !CONFIG_ACPI */ | ||
352 | 356 | ||
353 | #ifdef CONFIG_ACPI_SLEEP | 357 | static inline int acpi_nvs_register(__u64 start, __u64 size) |
354 | int suspend_nvs_register(unsigned long start, unsigned long size); | ||
355 | #else | ||
356 | static inline int suspend_nvs_register(unsigned long a, unsigned long b) | ||
357 | { | 358 | { |
358 | return 0; | 359 | return 0; |
359 | } | 360 | } |
360 | #endif | 361 | |
362 | static inline int acpi_nvs_for_each_region(int (*func)(__u64, __u64, void *), | ||
363 | void *data) | ||
364 | { | ||
365 | return 0; | ||
366 | } | ||
367 | |||
368 | #endif /* !CONFIG_ACPI */ | ||
361 | 369 | ||
362 | #endif /*_LINUX_ACPI_H*/ | 370 | #endif /*_LINUX_ACPI_H*/ |