• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SH_SETUP_H
2 #define _SH_SETUP_H
3 
4 #include <uapi/asm/setup.h>
5 
6 /*
7  * This is set up by the setup-routine at boot-time
8  */
9 #define PARAM	((unsigned char *)empty_zero_page)
10 
11 #define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))
12 #define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004))
13 #define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008))
14 #define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c))
15 #define INITRD_START (*(unsigned long *) (PARAM+0x010))
16 #define INITRD_SIZE (*(unsigned long *) (PARAM+0x014))
17 /* ... */
18 #define COMMAND_LINE ((char *) (PARAM+0x100))
19 
20 void sh_mv_setup(void);
21 void check_for_initrd(void);
22 void per_cpu_trap_init(void);
23 
24 #endif /* _SH_SETUP_H */
25