Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _SH_SETUP_H |
| 2 | #define _SH_SETUP_H |
| 3 | |
Paul Mundt | 2b74b85 | 2009-06-14 23:27:41 +0900 | [diff] [blame] | 4 | #include <asm-generic/setup.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 6 | #ifdef __KERNEL__ |
Paul Mundt | 69d1ef4 | 2007-10-30 17:32:08 +0900 | [diff] [blame] | 7 | /* |
| 8 | * This is set up by the setup-routine at boot-time |
| 9 | */ |
| 10 | #define PARAM ((unsigned char *)empty_zero_page) |
| 11 | |
| 12 | #define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000)) |
| 13 | #define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004)) |
| 14 | #define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008)) |
| 15 | #define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c)) |
| 16 | #define INITRD_START (*(unsigned long *) (PARAM+0x010)) |
| 17 | #define INITRD_SIZE (*(unsigned long *) (PARAM+0x014)) |
| 18 | /* ... */ |
| 19 | #define COMMAND_LINE ((char *) (PARAM+0x100)) |
| 20 | |
Paul Mundt | a80fd21 | 2006-09-27 14:26:53 +0900 | [diff] [blame] | 21 | int setup_early_printk(char *); |
Paul Mundt | 9655ad0 | 2007-05-14 15:59:09 +0900 | [diff] [blame] | 22 | void sh_mv_setup(void); |
Paul Mundt | a80fd21 | 2006-09-27 14:26:53 +0900 | [diff] [blame] | 23 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | #endif /* __KERNEL__ */ |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 25 | |
| 26 | #endif /* _SH_SETUP_H */ |