Path: blob/master/arch/xtensa/include/asm/bootparam.h
15126 views
/*1* include/asm-xtensa/bootparam.h2*3* Definition of the Linux/Xtensa boot parameter structure4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*9* Copyright (C) 2001 - 2005 Tensilica Inc.10*11* (Concept borrowed from the 68K port)12*/1314#ifndef _XTENSA_BOOTPARAM_H15#define _XTENSA_BOOTPARAM_H1617#define BP_VERSION 0x00011819#define BP_TAG_COMMAND_LINE 0x1001 /* command line (0-terminated string)*/20#define BP_TAG_INITRD 0x1002 /* ramdisk addr and size (bp_meminfo) */21#define BP_TAG_MEMORY 0x1003 /* memory addr and size (bp_meminfo) */22#define BP_TAG_SERIAL_BAUSRATE 0x1004 /* baud rate of current console. */23#define BP_TAG_SERIAL_PORT 0x1005 /* serial device of current console */2425#define BP_TAG_FIRST 0x7B0B /* first tag with a version number */26#define BP_TAG_LAST 0x7E0B /* last tag */2728#ifndef __ASSEMBLY__2930/* All records are aligned to 4 bytes */3132typedef struct bp_tag {33unsigned short id; /* tag id */34unsigned short size; /* size of this record excluding the structure*/35unsigned long data[0]; /* data */36} bp_tag_t;3738typedef struct meminfo {39unsigned long type;40unsigned long start;41unsigned long end;42} meminfo_t;4344#define SYSMEM_BANKS_MAX 54546#define MEMORY_TYPE_CONVENTIONAL 0x100047#define MEMORY_TYPE_NONE 0x20004849typedef struct sysmem_info {50int nr_banks;51meminfo_t bank[SYSMEM_BANKS_MAX];52} sysmem_info_t;5354extern sysmem_info_t sysmem;5556#endif57#endif585960616263