blob: c637ab99239452f01ecd0ba853f7935f7299229a [file] [log] [blame]
Hirokazu Takatafabb6262007-02-10 01:43:40 -08001#ifndef _ASM_M32R_SETUP_H
2#define _ASM_M32R_SETUP_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004/*
5 * This is set up by the setup-routine at boot-time
6 */
Adrian Bunk7d1362c2006-12-06 20:40:38 -08007
8#define COMMAND_LINE_SIZE 512
9
10#ifdef __KERNEL__
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#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
Linus Torvalds1da177e2005-04-16 15:20:36 -070029#define RAMDISK_IMAGE_START_MASK (0x07FF)
30#define RAMDISK_PROMPT_FLAG (0x8000)
31#define RAMDISK_LOAD_FLAG (0x4000)
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033extern unsigned long memory_start;
34extern unsigned long memory_end;
35
Adrian Bunk7d1362c2006-12-06 20:40:38 -080036#endif /* __KERNEL__ */
37
Hirokazu Takatafabb6262007-02-10 01:43:40 -080038#endif /* _ASM_M32R_SETUP_H */