Yinghai Lu | c7e7964 | 2008-07-25 02:17:33 -0700 | [diff] [blame] | 1 | #ifndef __ASM_ES7000_MPPARSE_H |
| 2 | #define __ASM_ES7000_MPPARSE_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
Natalie.Protasevich@unisys.com | 56f1d5d | 2005-09-03 15:56:34 -0700 | [diff] [blame] | 4 | #include <linux/acpi.h> |
| 5 | |
Natalie.Protasevich@unisys.com | 56f1d5d | 2005-09-03 15:56:34 -0700 | [diff] [blame] | 6 | extern int parse_unisys_oem (char *oemptr); |
| 7 | extern int find_unisys_acpi_oem_table(unsigned long *oem_addr); |
Yinghai Lu | a73aaed | 2008-09-14 02:33:14 -0700 | [diff] [blame] | 8 | extern void unmap_unisys_acpi_oem_table(unsigned long oem_addr); |
Natalie.Protasevich@unisys.com | 9338316 | 2005-10-30 14:59:38 -0800 | [diff] [blame] | 9 | extern void setup_unisys(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
Vivek Goyal | 071922c | 2007-07-06 02:39:55 -0700 | [diff] [blame] | 11 | #ifndef CONFIG_X86_GENERICARCH |
| 12 | extern int acpi_madt_oem_check(char *oem_id, char *oem_table_id); |
Jaswinder Singh Rajput | f29521e | 2009-01-03 15:46:57 +0530 | [diff] [blame^] | 13 | extern int mps_oem_check(struct mpc_table *mpc, char *oem, char *productid); |
Vivek Goyal | 071922c | 2007-07-06 02:39:55 -0700 | [diff] [blame] | 14 | #endif |
| 15 | |
Natalie.Protasevich@unisys.com | e5428ed | 2006-03-23 02:59:36 -0800 | [diff] [blame] | 16 | #ifdef CONFIG_ACPI |
Alexey Starikovskiy | 15a58ed | 2007-02-02 19:48:22 +0300 | [diff] [blame] | 17 | |
Natalie.Protasevich@unisys.com | e5428ed | 2006-03-23 02:59:36 -0800 | [diff] [blame] | 18 | static inline int es7000_check_dsdt(void) |
Natalie.Protasevich@unisys.com | 56f1d5d | 2005-09-03 15:56:34 -0700 | [diff] [blame] | 19 | { |
Alexey Starikovskiy | 15a58ed | 2007-02-02 19:48:22 +0300 | [diff] [blame] | 20 | struct acpi_table_header header; |
Thomas Gleixner | 142d0a6 | 2007-11-14 13:20:48 +0100 | [diff] [blame] | 21 | |
| 22 | if (ACPI_SUCCESS(acpi_get_table_header(ACPI_SIG_DSDT, 0, &header)) && |
| 23 | !strncmp(header.oem_id, "UNISYS", 6)) |
Natalie.Protasevich@unisys.com | 56f1d5d | 2005-09-03 15:56:34 -0700 | [diff] [blame] | 24 | return 1; |
| 25 | return 0; |
| 26 | } |
Natalie.Protasevich@unisys.com | e5428ed | 2006-03-23 02:59:36 -0800 | [diff] [blame] | 27 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Yinghai Lu | c7e7964 | 2008-07-25 02:17:33 -0700 | [diff] [blame] | 29 | #endif /* __ASM_MACH_MPPARSE_H */ |