mpparse.h 766 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __ASM_ES7000_MPPARSE_H
  2. #define __ASM_ES7000_MPPARSE_H
  3. #include <linux/acpi.h>
  4. extern int parse_unisys_oem (char *oemptr);
  5. extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
  6. extern void unmap_unisys_acpi_oem_table(unsigned long oem_addr);
  7. extern void setup_unisys(void);
  8. #ifndef CONFIG_X86_GENERICARCH
  9. extern int acpi_madt_oem_check(char *oem_id, char *oem_table_id);
  10. extern int mps_oem_check(struct mp_config_table *mpc, char *oem,
  11. char *productid);
  12. #endif
  13. #ifdef CONFIG_ACPI
  14. static inline int es7000_check_dsdt(void)
  15. {
  16. struct acpi_table_header header;
  17. if (ACPI_SUCCESS(acpi_get_table_header(ACPI_SIG_DSDT, 0, &header)) &&
  18. !strncmp(header.oem_id, "UNISYS", 6))
  19. return 1;
  20. return 0;
  21. }
  22. #endif
  23. #endif /* __ASM_MACH_MPPARSE_H */