Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
setup.h
Go to the documentation of this file.
1 #ifndef _ASM_M32R_SETUP_H
2 #define _ASM_M32R_SETUP_H
3 
4 /*
5  * This is set up by the setup-routine at boot-time
6  */
7 
8 #define COMMAND_LINE_SIZE 512
9 
10 #ifdef __KERNEL__
11 
12 #define PARAM ((unsigned char *)empty_zero_page)
13 
14 #define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))
15 #define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004))
16 #define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008))
17 #define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c))
18 #define INITRD_START (*(unsigned long *) (PARAM+0x010))
19 #define INITRD_SIZE (*(unsigned long *) (PARAM+0x014))
20 
21 #define M32R_CPUCLK (*(unsigned long *) (PARAM+0x018))
22 #define M32R_BUSCLK (*(unsigned long *) (PARAM+0x01c))
23 #define M32R_TIMER_DIVIDE (*(unsigned long *) (PARAM+0x020))
24 
25 #define COMMAND_LINE ((char *) (PARAM+0x100))
26 
27 #define SCREEN_INFO (*(struct screen_info *) (PARAM+0x200))
28 
29 #define RAMDISK_IMAGE_START_MASK (0x07FF)
30 #define RAMDISK_PROMPT_FLAG (0x8000)
31 #define RAMDISK_LOAD_FLAG (0x4000)
32 
33 extern unsigned long memory_start;
34 extern unsigned long memory_end;
35 
36 #endif /* __KERNEL__ */
37 
38 #endif /* _ASM_M32R_SETUP_H */