2 * Definition of the Linux/Xtensa boot parameter structure
4 * Copyright (C) 2001 - 2009 Tensilica Inc.
6 * (Concept borrowed from the 68K port)
8 * SPDX-License-Identifier: GPL-2.0+
11 #ifndef _XTENSA_BOOTPARAM_H
12 #define _XTENSA_BOOTPARAM_H
14 #define BP_VERSION 0x0001
16 #define BP_TAG_COMMAND_LINE 0x1001 /* command line (0-terminated string)*/
17 #define BP_TAG_INITRD 0x1002 /* ramdisk addr and size (bp_meminfo) */
18 #define BP_TAG_MEMORY 0x1003 /* memory addr and size (bp_meminfo) */
19 #define BP_TAG_SERIAL_BAUDRATE 0x1004 /* baud rate of current console */
20 #define BP_TAG_SERIAL_PORT 0x1005 /* serial device of current console */
21 #define BP_TAG_FDT 0x1006 /* flat device tree */
23 #define BP_TAG_FIRST 0x7B0B /* first tag with a version number */
24 #define BP_TAG_LAST 0x7E0B /* last tag */
28 /* All records are aligned to 4 bytes */
31 unsigned short id; /* tag id */
32 unsigned short size; /* size of this record excluding the structure*/
33 unsigned long data[0]; /* data */
36 #define bp_tag_next(tag) \
37 ((struct bp_tag *)((unsigned long)((tag) + 1) + (tag)->size))
45 #define MEMORY_TYPE_CONVENTIONAL 0x1000
46 #define MEMORY_TYPE_NONE 0x2000
50 struct meminfo bank[0];