~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-s390/setup.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *  include/asm-s390/setup.h
  3  *
  4  *  S390 version
  5  *    Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
  6  */
  7 
  8 #ifndef _ASM_S390_SETUP_H
  9 #define _ASM_S390_SETUP_H
 10 
 11 #define PARMAREA 0x10400
 12 
 13 #ifndef __ASSEMBLER__
 14 
 15 #define ORIG_ROOT_DEV     (*(unsigned long *) (0x10400))
 16 #define MOUNT_ROOT_RDONLY (*(unsigned short *) (0x10404))
 17 #define MEMORY_SIZE       (*(unsigned long *)  (0x10406))
 18 #define MACHINE_FLAGS     (*(unsigned long *)  (0x1040a))
 19 #define INITRD_START      (*(unsigned long *)  (0x1040e))
 20 #define INITRD_SIZE       (*(unsigned long *)  (0x10412))
 21 #define RAMDISK_FLAGS     (*(unsigned short *) (0x10416))
 22 #define COMMAND_LINE      ((char *)            (0x10480))
 23 
 24 #else 
 25 
 26 #define ORIG_ROOT_DEV     0x10400
 27 #define MOUNT_ROOT_RDONLY 0x10404
 28 #define MEMORY_SIZE       0x10406
 29 #define MACHINE_FLAGS     0x1040a
 30 #define INITRD_START      0x1040e
 31 #define INITRD_SIZE       0x10412
 32 #define RAMDISK_FLAGS     0x10416
 33 #define COMMAND_LINE      0x10480
 34 
 35 #endif
 36 
 37 #define COMMAND_LINE_SIZE 896
 38 /*
 39  * Machine features detected in head.S
 40  */
 41 #define MACHINE_IS_VM    (MACHINE_FLAGS & 1)
 42 #define MACHINE_HAS_IEEE (MACHINE_FLAGS & 2)
 43 #define MACHINE_IS_P390  (MACHINE_FLAGS & 4)
 44 
 45 #define RAMDISK_ORIGIN            0x800000
 46 #define RAMDISK_BLKSIZE           0x1000
 47 #define RAMDISK_IMAGE_START_MASK  0x07FF
 48 #define RAMDISK_PROMPT_FLAG       0x8000
 49 #define RAMDISK_LOAD_FLAG         0x4000
 50 
 51 
 52 #endif
 53 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.