38#ifndef __ARCH_ARM_LINUX_ATAG_HH__
39#define __ARCH_ARM_LINUX_ATAG_HH__
67 virtual uint32_t
tag() = 0;
69 virtual bool null() {
return false; }
96 static const uint32_t
Size = 5;
110 static const uint32_t
Size = 4;
123 static const uint32_t
Size = 3;
136 static const uint32_t
Size = 4;
148 static const uint32_t
Size = 3;
154 int len =
s.length() + 1;
165 strcpy((
char*)&
storage[2] ,
s.c_str());
175 static const uint32_t
Size = 2;
176 virtual bool null() {
return true; }
189// list of possible tags
190#define ATAG_NONE 0x00000000
191#define ATAG_CORE 0x54410001
192#define ATAG_MEM 0x54410002
193#define ATAG_VIDEOTEXT 0x54410003
194#define ATAG_RAMDISK 0x54410004
195#define ATAG_INITRD2 0x54420005
196#define ATAG_SERIAL 0x54410006
197#define ATAG_REVISION 0x54410007
198#define ATAG_VIDEOLFB 0x54410008
199#define ATAG_CMDLINE 0x54410009
201// structures for each atag
204 u32 size; // length of tag in words including this header
283 struct atag_header hdr;
286 struct atag_core core;
288 struct atag_videotext videotext;
289 struct atag_ramdisk ramdisk;
290 struct atag_initrd2 initrd2;
291 struct atag_serialnr serialnr;
292 struct atag_revision revision;
293 struct atag_videolfb videolfb;
294 struct atag_cmdline cmdline;
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
uint32_t tag()
Tag (normally starts with 'T''A' and 16 bits of number.
void cmdline(const std::string &s)
static const uint32_t Size
void pagesize(uint32_t i)
static const uint32_t Size
uint32_t tag()
Tag (normally starts with 'T''A' and 16 bits of number.
void memStart(uint32_t i)
uint32_t tag()
Tag (normally starts with 'T''A' and 16 bits of number.
static const uint32_t Size
static const uint32_t Size
virtual bool null()
If the header should be 0 size.
uint32_t tag()
Tag (normally starts with 'T''A' and 16 bits of number.
static const uint32_t Size
uint32_t tag()
Tag (normally starts with 'T''A' and 16 bits of number.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.