2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* Just a place holder. We don't want to have to test x86 before
|
|
|
|
* we include stuff
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _i386_SETUP_H
|
|
|
|
#define _i386_SETUP_H
|
|
|
|
|
2007-02-12 09:54:27 +01:00
|
|
|
#define COMMAND_LINE_SIZE 2048
|
2006-12-07 05:40:38 +01:00
|
|
|
|
2006-09-13 05:36:05 +02:00
|
|
|
#ifdef __KERNEL__
|
2006-03-27 11:16:04 +02:00
|
|
|
#include <linux/pfn.h>
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Reserved space for vmalloc and iomap - defined in asm/page.h
|
|
|
|
*/
|
|
|
|
#define MAXMEM_PFN PFN_DOWN(MAXMEM)
|
|
|
|
#define MAX_NONPAE_PFN (1 << 20)
|
|
|
|
|
2005-05-01 17:58:51 +02:00
|
|
|
#define PARAM_SIZE 4096
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
#define OLD_CL_MAGIC_ADDR 0x90020
|
|
|
|
#define OLD_CL_MAGIC 0xA33F
|
|
|
|
#define OLD_CL_BASE_ADDR 0x90000
|
|
|
|
#define OLD_CL_OFFSET 0x90022
|
|
|
|
#define NEW_CL_POINTER 0x228 /* Relative to real mode data */
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
2007-07-11 21:18:35 +02:00
|
|
|
|
|
|
|
#include <asm/bootparam.h>
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* This is set up by the setup-routine at boot-time
|
|
|
|
*/
|
2007-07-11 21:18:35 +02:00
|
|
|
extern struct boot_params boot_params;
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2006-06-25 14:46:50 +02:00
|
|
|
/*
|
|
|
|
* Do NOT EVER look at the BIOS memory size location.
|
|
|
|
* It does not work on many machines.
|
|
|
|
*/
|
|
|
|
#define LOWMEMSIZE() (0x9f000)
|
|
|
|
|
|
|
|
struct e820entry;
|
|
|
|
|
|
|
|
char * __init machine_specific_memory_setup(void);
|
2006-12-07 02:14:07 +01:00
|
|
|
char *memory_setup(void);
|
2006-06-25 14:46:50 +02:00
|
|
|
|
|
|
|
int __init copy_e820_map(struct e820entry * biosmap, int nr_map);
|
|
|
|
int __init sanitize_e820_map(struct e820entry * biosmap, char * pnr_map);
|
|
|
|
void __init add_memory_region(unsigned long long start,
|
|
|
|
unsigned long long size, int type);
|
|
|
|
|
2007-02-13 13:26:26 +01:00
|
|
|
extern unsigned long init_pg_tables_end;
|
|
|
|
|
2007-07-18 03:37:03 +02:00
|
|
|
#ifndef CONFIG_PARAVIRT
|
|
|
|
#define paravirt_post_allocator_init() do {} while (0)
|
|
|
|
#endif
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
2006-12-07 05:40:38 +01:00
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
#endif /* _i386_SETUP_H */
|