blob: 65985730b376820d9868e6abedef754a64252b7c [file] [log] [blame]
Thomas Gleixner57844a82009-08-19 14:48:38 +02001#ifndef _ASM_X86_PLATFORM_H
2#define _ASM_X86_PLATFORM_H
3
4/**
Thomas Gleixnerf4848472009-08-20 12:05:01 +02005 * struct x86_init_mpparse - platform specific mpparse ops
6 * @mpc_record: platform specific mpc record accounting
Thomas Gleixnerde934102009-08-20 09:27:29 +02007 * @setup_ioapic_ids: platform specific ioapic id override
Thomas Gleixnerf4848472009-08-20 12:05:01 +02008 */
9struct x86_init_mpparse {
10 void (*mpc_record)(unsigned int mode);
Thomas Gleixnerde934102009-08-20 09:27:29 +020011 void (*setup_ioapic_ids)(void);
Thomas Gleixnerf4848472009-08-20 12:05:01 +020012};
13
14/**
Thomas Gleixnerf7cf5a52009-08-19 14:43:56 +020015 * struct x86_init_resources - platform specific resource related ops
16 * @probe_roms: probe BIOS roms
Thomas Gleixner8fee6972009-08-19 14:55:50 +020017 * @reserve_resources: reserve the standard resources for the
18 * platform
Thomas Gleixner816c25e2009-08-19 14:36:27 +020019 * @reserve_ebda_region: reserve the extended bios data area
Thomas Gleixner6b18ae32009-08-20 10:19:54 +020020 * @memory_setup: platform specific memory setup
Thomas Gleixnerf7cf5a52009-08-19 14:43:56 +020021 *
22 */
23struct x86_init_resources {
24 void (*probe_roms)(void);
Thomas Gleixner8fee6972009-08-19 14:55:50 +020025 void (*reserve_resources)(void);
Thomas Gleixner816c25e2009-08-19 14:36:27 +020026 void (*reserve_ebda_region)(void);
Thomas Gleixner6b18ae32009-08-20 10:19:54 +020027 char *(*memory_setup)(void);
Thomas Gleixnerf7cf5a52009-08-19 14:43:56 +020028};
29
30/**
Thomas Gleixner57844a82009-08-19 14:48:38 +020031 * struct x86_init_ops - functions for platform specific setup
32 *
33 */
34struct x86_init_ops {
Thomas Gleixnerf4848472009-08-20 12:05:01 +020035 struct x86_init_resources resources;
36 struct x86_init_mpparse mpparse;
Thomas Gleixner57844a82009-08-19 14:48:38 +020037};
38
39extern struct x86_init_ops x86_init;
40
41extern void x86_init_noop(void);
Thomas Gleixnerf4848472009-08-20 12:05:01 +020042extern void x86_init_uint_noop(unsigned int unused);
Thomas Gleixner57844a82009-08-19 14:48:38 +020043
44#endif