mach_mpparse.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __ASM_MACH_MPPARSE_H
  2. #define __ASM_MACH_MPPARSE_H
  3. static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name,
  4. struct mpc_config_translation *translation)
  5. {
  6. Dprintk("Bus #%d is %s\n", m->mpc_busid, name);
  7. }
  8. static inline void mpc_oem_pci_bus(struct mpc_config_bus *m,
  9. struct mpc_config_translation *translation)
  10. {
  11. }
  12. extern int parse_unisys_oem (char *oemptr, int oem_entries);
  13. extern int find_unisys_acpi_oem_table(unsigned long *oem_addr, int *length);
  14. static inline int mps_oem_check(struct mp_config_table *mpc, char *oem,
  15. char *productid)
  16. {
  17. if (mpc->mpc_oemptr) {
  18. struct mp_config_oemtable *oem_table =
  19. (struct mp_config_oemtable *)mpc->mpc_oemptr;
  20. if (!strncmp(oem, "UNISYS", 6))
  21. return parse_unisys_oem((char *)oem_table, oem_table->oem_length);
  22. }
  23. return 0;
  24. }
  25. /* Hook from generic ACPI tables.c */
  26. static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
  27. {
  28. unsigned long oem_addr;
  29. int oem_entries;
  30. if (!find_unisys_acpi_oem_table(&oem_addr, &oem_entries))
  31. return parse_unisys_oem((char *)oem_addr, oem_entries);
  32. return 0;
  33. }
  34. #endif /* __ASM_MACH_MPPARSE_H */