2005-06-23 22:01:26 -07:00
/*
* include / asm - xtensa / bootparam . h
*
* Definition of the Linux / Xtensa boot parameter structure
*
* This file is subject to the terms and conditions of the GNU General Public
* License . See the file " COPYING " in the main directory of this archive
* for more details .
*
* Copyright ( C ) 2001 - 2005 Tensilica Inc .
*
* ( Concept borrowed from the 68 K port )
*/
# ifndef _XTENSA_BOOTPARAM_H
# define _XTENSA_BOOTPARAM_H
# define BP_VERSION 0x0001
# define BP_TAG_COMMAND_LINE 0x1001 /* command line (0-terminated string)*/
# define BP_TAG_INITRD 0x1002 /* ramdisk addr and size (bp_meminfo) */
# define BP_TAG_MEMORY 0x1003 /* memory addr and size (bp_meminfo) */
2013-06-06 14:23:37 +03:00
# define BP_TAG_SERIAL_BAUDRATE 0x1004 /* baud rate of current console. */
2005-06-23 22:01:26 -07:00
# define BP_TAG_SERIAL_PORT 0x1005 /* serial device of current console */
2012-11-04 00:30:13 +04:00
# define BP_TAG_FDT 0x1006 /* flat device tree addr */
2005-06-23 22:01:26 -07:00
# define BP_TAG_FIRST 0x7B0B /* first tag with a version number */
# define BP_TAG_LAST 0x7E0B /* last tag */
# ifndef __ASSEMBLY__
/* All records are aligned to 4 bytes */
typedef struct bp_tag {
2012-11-28 16:53:51 -08:00
unsigned short id ; /* tag id */
unsigned short size ; /* size of this record excluding the structure*/
2022-02-14 19:11:44 -06:00
unsigned long data [ ] ; /* data */
2005-06-23 22:01:26 -07:00
} bp_tag_t ;
2014-03-23 03:17:43 +04:00
struct bp_meminfo {
2012-11-28 16:53:51 -08:00
unsigned long type ;
unsigned long start ;
unsigned long end ;
2014-03-23 03:17:43 +04:00
} ;
2005-06-23 22:01:26 -07:00
# define MEMORY_TYPE_CONVENTIONAL 0x1000
# define MEMORY_TYPE_NONE 0x2000
# endif
# endif