Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 1 | #ifndef _ASM_M32R_SETUP_H |
| 2 | #define _ASM_M32R_SETUP_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | /* |
| 5 | * This is set up by the setup-routine at boot-time |
| 6 | */ |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 7 | |
| 8 | #define COMMAND_LINE_SIZE 512 |
| 9 | |
| 10 | #ifdef __KERNEL__ |
| 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | #define RAMDISK_IMAGE_START_MASK (0x07FF) |
| 30 | #define RAMDISK_PROMPT_FLAG (0x8000) |
| 31 | #define RAMDISK_LOAD_FLAG (0x4000) |
| 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | extern unsigned long memory_start; |
| 34 | extern unsigned long memory_end; |
| 35 | |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 36 | #endif /* __KERNEL__ */ |
| 37 | |
Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 38 | #endif /* _ASM_M32R_SETUP_H */ |