Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_MACH_MPPARSE_H |
| 2 | #define __ASM_MACH_MPPARSE_H |
| 3 | |
| 4 | static inline void mpc_oem_bus_info(struct mpc_config_bus *m, char *name, |
| 5 | struct mpc_config_translation *translation) |
| 6 | { |
| 7 | int quad = translation->trans_quad; |
| 8 | int local = translation->trans_local; |
| 9 | |
| 10 | mp_bus_id_to_node[m->mpc_busid] = quad; |
| 11 | mp_bus_id_to_local[m->mpc_busid] = local; |
| 12 | printk("Bus #%d is %s (node %d)\n", m->mpc_busid, name, quad); |
| 13 | } |
| 14 | |
Alexey Starikovskiy | 6079d2d | 2008-03-11 19:45:48 +0300 | [diff] [blame^] | 15 | extern int quad_local_to_mp_bus_id[NR_CPUS/4][4]; |
| 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | static inline void mpc_oem_pci_bus(struct mpc_config_bus *m, |
| 18 | struct mpc_config_translation *translation) |
| 19 | { |
| 20 | int quad = translation->trans_quad; |
| 21 | int local = translation->trans_local; |
| 22 | |
| 23 | quad_local_to_mp_bus_id[quad][local] = m->mpc_busid; |
| 24 | } |
| 25 | |
| 26 | /* Hook from generic ACPI tables.c */ |
| 27 | static inline void acpi_madt_oem_check(char *oem_id, char *oem_table_id) |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | #endif /* __ASM_MACH_MPPARSE_H */ |