xref: /openbmc/linux/arch/x86/include/asm/x86_init.h (revision f4848472)
1 #ifndef _ASM_X86_PLATFORM_H
2 #define _ASM_X86_PLATFORM_H
3 
4 /**
5  * struct x86_init_mpparse - platform specific mpparse ops
6  * @mpc_record:			platform specific mpc record accounting
7  */
8 struct x86_init_mpparse {
9 	void (*mpc_record)(unsigned int mode);
10 };
11 
12 /**
13  * struct x86_init_resources - platform specific resource related ops
14  * @probe_roms:			probe BIOS roms
15  * @reserve_resources:		reserve the standard resources for the
16  *				platform
17  * @reserve_ebda_region:	reserve the extended bios data area
18  * @memory_setup:		platform specific memory setup
19  *
20  */
21 struct x86_init_resources {
22 	void (*probe_roms)(void);
23 	void (*reserve_resources)(void);
24 	void (*reserve_ebda_region)(void);
25 	char *(*memory_setup)(void);
26 };
27 
28 /**
29  * struct x86_init_ops - functions for platform specific setup
30  *
31  */
32 struct x86_init_ops {
33 	struct x86_init_resources	resources;
34 	struct x86_init_mpparse		mpparse;
35 };
36 
37 extern struct x86_init_ops x86_init;
38 
39 extern void x86_init_noop(void);
40 extern void x86_init_uint_noop(unsigned int unused);
41 
42 #endif
43