Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
setup.h File Reference
#include <uapi/asm/setup.h>

Go to the source code of this file.

Data Structures

struct  tag_mem_range
 
struct  tag_header
 
struct  tag_core
 
struct  tag_cmdline
 
struct  tag_clock
 
struct  tag_ethernet
 
struct  tag_boardinfo
 
struct  tag
 
struct  tagtable
 

Macros

#define ATAG_MAGIC   0xa2a25441
 
#define ATAG_NONE   0x00000000
 
#define ATAG_CORE   0x54410001
 
#define ATAG_MEM   0x54410002
 
#define ATAG_CMDLINE   0x54410003
 
#define ATAG_RDIMG   0x54410004
 
#define ATAG_CLOCK   0x54410005
 
#define CLOCK_BOOTCPU   0
 
#define ATAG_RSVD_MEM   0x54410006
 
#define ATAG_ETHERNET   0x54410007
 
#define ETH_INVALID_PHY   0xff
 
#define ATAG_BOARDINFO   0x54410008
 
#define __tag   __used __attribute__((__section__(".taglist.init")))
 
#define __tagtable(tag, fn)   static struct tagtable __tagtable_##fn __tag = { tag, fn }
 
#define tag_member_present(tag, member)
 
#define tag_next(t)   ((struct tag *)((u32 *)(t) + (t)->hdr.size))
 
#define tag_size(type)   ((sizeof(struct tag_header) + sizeof(struct type)) >> 2)
 
#define for_each_tag(t, base)   for (t = base; t->hdr.size; t = tag_next(t))
 

Functions

void setup_processor (void)
 

Variables

struct tagbootloader_tags
 
resource_size_t fbmem_start
 
resource_size_t fbmem_size
 
u32 board_number
 

Macro Definition Documentation

#define __tag   __used __attribute__((__section__(".taglist.init")))

Definition at line 120 of file setup.h.

#define __tagtable (   tag,
  fn 
)    static struct tagtable __tagtable_##fn __tag = { tag, fn }

Definition at line 121 of file setup.h.

#define ATAG_BOARDINFO   0x54410008

Definition at line 97 of file setup.h.

#define ATAG_CLOCK   0x54410005

Definition at line 69 of file setup.h.

#define ATAG_CMDLINE   0x54410003

Definition at line 58 of file setup.h.

#define ATAG_CORE   0x54410001

Definition at line 45 of file setup.h.

#define ATAG_ETHERNET   0x54410007

Definition at line 86 of file setup.h.

#define ATAG_MAGIC   0xa2a25441

Definition at line 18 of file setup.h.

#define ATAG_MEM   0x54410002

Definition at line 54 of file setup.h.

#define ATAG_NONE   0x00000000

Definition at line 37 of file setup.h.

#define ATAG_RDIMG   0x54410004

Definition at line 65 of file setup.h.

#define ATAG_RSVD_MEM   0x54410006

Definition at line 81 of file setup.h.

#define CLOCK_BOOTCPU   0

Definition at line 78 of file setup.h.

#define ETH_INVALID_PHY   0xff

Definition at line 94 of file setup.h.

#define for_each_tag (   t,
  base 
)    for (t = base; t->hdr.size; t = tag_next(t))

Definition at line 131 of file setup.h.

#define tag_member_present (   tag,
  member 
)
Value:
((unsigned long)(&((struct tag *)0L)->member + 1) \
<= (tag)->hdr.size * 4)

Definition at line 124 of file setup.h.

#define tag_next (   t)    ((struct tag *)((u32 *)(t) + (t)->hdr.size))

Definition at line 128 of file setup.h.

#define tag_size (   type)    ((sizeof(struct tag_header) + sizeof(struct type)) >> 2)

Definition at line 129 of file setup.h.

Function Documentation

void setup_processor ( void  )

Definition at line 251 of file cpu.c.

Variable Documentation

u32 board_number

Definition at line 398 of file setup.c.

struct tag* bootloader_tags
resource_size_t fbmem_size

Definition at line 233 of file setup.c.

resource_size_t fbmem_start

Definition at line 232 of file setup.c.