diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/acpi.h | 16 | ||||
| -rw-r--r-- | include/linux/earlycpio.h | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index c33fa3ce9b7c..3994d7790b23 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -78,6 +78,14 @@ typedef int (*acpi_table_handler) (struct acpi_table_header *table); | |||
| 78 | 78 | ||
| 79 | typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end); | 79 | typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end); |
| 80 | 80 | ||
| 81 | #ifdef CONFIG_ACPI_INITRD_TABLE_OVERRIDE | ||
| 82 | void acpi_initrd_override(void *data, size_t size); | ||
| 83 | #else | ||
| 84 | static inline void acpi_initrd_override(void *data, size_t size) | ||
| 85 | { | ||
| 86 | } | ||
| 87 | #endif | ||
| 88 | |||
| 81 | char * __acpi_map_table (unsigned long phys_addr, unsigned long size); | 89 | char * __acpi_map_table (unsigned long phys_addr, unsigned long size); |
| 82 | void __acpi_unmap_table(char *map, unsigned long size); | 90 | void __acpi_unmap_table(char *map, unsigned long size); |
| 83 | int early_acpi_boot_init(void); | 91 | int early_acpi_boot_init(void); |
| @@ -479,6 +487,14 @@ void acpi_os_set_prepare_sleep(int (*func)(u8 sleep_state, | |||
| 479 | 487 | ||
| 480 | acpi_status acpi_os_prepare_sleep(u8 sleep_state, | 488 | acpi_status acpi_os_prepare_sleep(u8 sleep_state, |
| 481 | u32 pm1a_control, u32 pm1b_control); | 489 | u32 pm1a_control, u32 pm1b_control); |
| 490 | #ifdef CONFIG_X86 | ||
| 491 | void arch_reserve_mem_area(acpi_physical_address addr, size_t size); | ||
| 492 | #else | ||
| 493 | static inline void arch_reserve_mem_area(acpi_physical_address addr, | ||
| 494 | size_t size) | ||
| 495 | { | ||
| 496 | } | ||
| 497 | #endif /* CONFIG_X86 */ | ||
| 482 | #else | 498 | #else |
| 483 | #define acpi_os_set_prepare_sleep(func, pm1a_ctrl, pm1b_ctrl) do { } while (0) | 499 | #define acpi_os_set_prepare_sleep(func, pm1a_ctrl, pm1b_ctrl) do { } while (0) |
| 484 | #endif | 500 | #endif |
diff --git a/include/linux/earlycpio.h b/include/linux/earlycpio.h new file mode 100644 index 000000000000..111f46d83d00 --- /dev/null +++ b/include/linux/earlycpio.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #ifndef _LINUX_EARLYCPIO_H | ||
| 2 | #define _LINUX_EARLYCPIO_H | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | |||
| 6 | #define MAX_CPIO_FILE_NAME 18 | ||
| 7 | |||
| 8 | struct cpio_data { | ||
| 9 | void *data; | ||
| 10 | size_t size; | ||
| 11 | char name[MAX_CPIO_FILE_NAME]; | ||
| 12 | }; | ||
| 13 | |||
| 14 | struct cpio_data find_cpio_data(const char *path, void *data, size_t len, | ||
| 15 | long *offset); | ||
| 16 | |||
| 17 | #endif /* _LINUX_EARLYCPIO_H */ | ||
