x86_init.h 737 字节
Newer Older
1 2 3
#ifndef _ASM_X86_PLATFORM_H
#define _ASM_X86_PLATFORM_H

4 5 6
/**
 * struct x86_init_resources - platform specific resource related ops
 * @probe_roms:			probe BIOS roms
7 8
 * @reserve_resources:		reserve the standard resources for the
 *				platform
9
 * @reserve_ebda_region:	reserve the extended bios data area
10
 * @memory_setup:		platform specific memory setup
11 12 13 14
 *
 */
struct x86_init_resources {
	void (*probe_roms)(void);
15
	void (*reserve_resources)(void);
16
	void (*reserve_ebda_region)(void);
17
	char *(*memory_setup)(void);
18 19
};

20 21 22 23 24
/**
 * struct x86_init_ops - functions for platform specific setup
 *
 */
struct x86_init_ops {
25
	struct x86_init_resources resources;
26 27 28 29 30 31 32
};

extern struct x86_init_ops x86_init;

extern void x86_init_noop(void);

#endif