diff options
Diffstat (limited to 'arch/xtensa/include/asm/bootparam.h')
| -rw-r--r-- | arch/xtensa/include/asm/bootparam.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/arch/xtensa/include/asm/bootparam.h b/arch/xtensa/include/asm/bootparam.h index 9983f2c1b7ee..0c25799facab 100644 --- a/arch/xtensa/include/asm/bootparam.h +++ b/arch/xtensa/include/asm/bootparam.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #define BP_TAG_MEMORY 0x1003 /* memory addr and size (bp_meminfo) */ | 22 | #define BP_TAG_MEMORY 0x1003 /* memory addr and size (bp_meminfo) */ |
| 23 | #define BP_TAG_SERIAL_BAUSRATE 0x1004 /* baud rate of current console. */ | 23 | #define BP_TAG_SERIAL_BAUSRATE 0x1004 /* baud rate of current console. */ |
| 24 | #define BP_TAG_SERIAL_PORT 0x1005 /* serial device of current console */ | 24 | #define BP_TAG_SERIAL_PORT 0x1005 /* serial device of current console */ |
| 25 | #define BP_TAG_FDT 0x1006 /* flat device tree addr */ | ||
| 25 | 26 | ||
| 26 | #define BP_TAG_FIRST 0x7B0B /* first tag with a version number */ | 27 | #define BP_TAG_FIRST 0x7B0B /* first tag with a version number */ |
| 27 | #define BP_TAG_LAST 0x7E0B /* last tag */ | 28 | #define BP_TAG_LAST 0x7E0B /* last tag */ |
| @@ -31,15 +32,15 @@ | |||
| 31 | /* All records are aligned to 4 bytes */ | 32 | /* All records are aligned to 4 bytes */ |
| 32 | 33 | ||
| 33 | typedef struct bp_tag { | 34 | typedef struct bp_tag { |
| 34 | unsigned short id; /* tag id */ | 35 | unsigned short id; /* tag id */ |
| 35 | unsigned short size; /* size of this record excluding the structure*/ | 36 | unsigned short size; /* size of this record excluding the structure*/ |
| 36 | unsigned long data[0]; /* data */ | 37 | unsigned long data[0]; /* data */ |
| 37 | } bp_tag_t; | 38 | } bp_tag_t; |
| 38 | 39 | ||
| 39 | typedef struct meminfo { | 40 | typedef struct meminfo { |
| 40 | unsigned long type; | 41 | unsigned long type; |
| 41 | unsigned long start; | 42 | unsigned long start; |
| 42 | unsigned long end; | 43 | unsigned long end; |
| 43 | } meminfo_t; | 44 | } meminfo_t; |
| 44 | 45 | ||
| 45 | #define SYSMEM_BANKS_MAX 5 | 46 | #define SYSMEM_BANKS_MAX 5 |
| @@ -48,14 +49,11 @@ typedef struct meminfo { | |||
| 48 | #define MEMORY_TYPE_NONE 0x2000 | 49 | #define MEMORY_TYPE_NONE 0x2000 |
| 49 | 50 | ||
| 50 | typedef struct sysmem_info { | 51 | typedef struct sysmem_info { |
| 51 | int nr_banks; | 52 | int nr_banks; |
| 52 | meminfo_t bank[SYSMEM_BANKS_MAX]; | 53 | meminfo_t bank[SYSMEM_BANKS_MAX]; |
| 53 | } sysmem_info_t; | 54 | } sysmem_info_t; |
| 54 | 55 | ||
| 55 | extern sysmem_info_t sysmem; | 56 | extern sysmem_info_t sysmem; |
| 56 | 57 | ||
| 57 | #endif | 58 | #endif |
| 58 | #endif | 59 | #endif |
| 59 | |||
| 60 | |||
| 61 | |||
