1 #ifndef _ASM_X86_PLATFORM_H
2 #define _ASM_X86_PLATFORM_H
9 * struct x86_init_mpparse - platform specific mpparse ops
10 * @mpc_record: platform specific mpc record accounting
11 * @setup_ioapic_ids: platform specific ioapic id override
12 * @mpc_apic_id: platform specific mpc apic id assignment
13 * @smp_read_mpc_oem: platform specific oem mpc table setup
14 * @mpc_oem_pci_bus: platform specific pci bus setup (default NULL)
15 * @mpc_oem_bus_info: platform specific mpc bus info
16 * @find_smp_config: find the smp configuration
17 * @get_smp_config: get the smp configuration
19 struct x86_init_mpparse
{
20 void (*mpc_record
)(unsigned int mode
);
21 void (*setup_ioapic_ids
)(void);
22 int (*mpc_apic_id
)(struct mpc_cpu
*m
);
23 void (*smp_read_mpc_oem
)(struct mpc_table
*mpc
);
24 void (*mpc_oem_pci_bus
)(struct mpc_bus
*m
);
25 void (*mpc_oem_bus_info
)(struct mpc_bus
*m
, char *name
);
26 void (*find_smp_config
)(unsigned int reserve
);
27 void (*get_smp_config
)(unsigned int early
);
31 * struct x86_init_resources - platform specific resource related ops
32 * @probe_roms: probe BIOS roms
33 * @reserve_resources: reserve the standard resources for the
35 * @reserve_ebda_region: reserve the extended bios data area
36 * @memory_setup: platform specific memory setup
39 struct x86_init_resources
{
40 void (*probe_roms
)(void);
41 void (*reserve_resources
)(void);
42 void (*reserve_ebda_region
)(void);
43 char *(*memory_setup
)(void);
47 * struct x86_init_irqs - platform specific interrupt setup
48 * @pre_vector_init: init code to run before interrupt vectors
50 * @intr_init: interrupt init code
51 * @trap_init: platform specific trap setup
53 struct x86_init_irqs
{
54 void (*pre_vector_init
)(void);
55 void (*intr_init
)(void);
56 void (*trap_init
)(void);
60 * struct x86_init_oem - oem platform specific customizing functions
61 * @arch_setup: platform specific architecure setup
62 * @banner: print a platform specific banner
65 void (*arch_setup
)(void);
70 * struct x86_init_ops - functions for platform specific setup
74 struct x86_init_resources resources
;
75 struct x86_init_mpparse mpparse
;
76 struct x86_init_irqs irqs
;
77 struct x86_init_oem oem
;
80 extern struct x86_init_ops x86_init
;
82 extern void x86_init_noop(void);
83 extern void x86_init_uint_noop(unsigned int unused
);