Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
flattree.c File Reference
#include "dtc.h"
#include "srcpos.h"

Go to the source code of this file.

Data Structures

struct  version_info
 
struct  emitter
 
struct  inbuf
 

Macros

#define FTF_FULLPATH   0x1
 
#define FTF_VARALIGN   0x2
 
#define FTF_NAMEPROPS   0x4
 
#define FTF_BOOTCPUID   0x8
 
#define FTF_STRTABSIZE   0x10
 
#define FTF_STRUCTSIZE   0x20
 
#define FTF_NOPS   0x40
 
#define ASM_EMIT_BELONG(f, fmt,...)
 

Functions

void dt_to_blob (FILE *f, struct boot_info *bi, int version)
 
void dt_to_asm (FILE *f, struct boot_info *bi, int version)
 
struct boot_infodt_from_blob (const char *fname)
 

Macro Definition Documentation

#define ASM_EMIT_BELONG (   f,
  fmt,
  ... 
)
Value:
{ \
fprintf((f), "\t.byte\t((" fmt ") >> 24) & 0xff\n", __VA_ARGS__); \
fprintf((f), "\t.byte\t((" fmt ") >> 16) & 0xff\n", __VA_ARGS__); \
fprintf((f), "\t.byte\t((" fmt ") >> 8) & 0xff\n", __VA_ARGS__); \
fprintf((f), "\t.byte\t(" fmt ") & 0xff\n", __VA_ARGS__); \
}

Definition at line 130 of file flattree.c.

#define FTF_BOOTCPUID   0x8

Definition at line 27 of file flattree.c.

#define FTF_FULLPATH   0x1

Definition at line 24 of file flattree.c.

#define FTF_NAMEPROPS   0x4

Definition at line 26 of file flattree.c.

#define FTF_NOPS   0x40

Definition at line 30 of file flattree.c.

#define FTF_STRTABSIZE   0x10

Definition at line 28 of file flattree.c.

#define FTF_STRUCTSIZE   0x20

Definition at line 29 of file flattree.c.

#define FTF_VARALIGN   0x2

Definition at line 25 of file flattree.c.

Function Documentation

struct boot_info* dt_from_blob ( const char fname)
read

Definition at line 804 of file flattree.c.

void dt_to_asm ( FILE *  f,
struct boot_info bi,
int  version 
)

Definition at line 463 of file flattree.c.

void dt_to_blob ( FILE *  f,
struct boot_info bi,
int  version 
)

Definition at line 369 of file flattree.c.