blob: 55a2bd328d990e24abc3e496641bddfd764eb3a7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _SH_SETUP_H
2#define _SH_SETUP_H
3
4#define COMMAND_LINE_SIZE 256
5
Adrian Bunk7d1362c2006-12-06 20:40:38 -08006#ifdef __KERNEL__
7
Paul Mundt69d1ef42007-10-30 17:32:08 +09008/*
9 * This is set up by the setup-routine at boot-time
10 */
11#define PARAM ((unsigned char *)empty_zero_page)
12
13#define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))
14#define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004))
15#define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008))
16#define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c))
17#define INITRD_START (*(unsigned long *) (PARAM+0x010))
18#define INITRD_SIZE (*(unsigned long *) (PARAM+0x014))
19/* ... */
20#define COMMAND_LINE ((char *) (PARAM+0x100))
21
Paul Mundta80fd212006-09-27 14:26:53 +090022int setup_early_printk(char *);
Paul Mundt9655ad02007-05-14 15:59:09 +090023void sh_mv_setup(void);
Paul Mundta80fd212006-09-27 14:26:53 +090024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#endif /* __KERNEL__ */
Adrian Bunk7d1362c2006-12-06 20:40:38 -080026
27#endif /* _SH_SETUP_H */