Go to the documentation of this file.
11 #ifndef __ASM_AVR32_SETUP_H__
12 #define __ASM_AVR32_SETUP_H__
14 #include <uapi/asm/setup.h>
18 #define ATAG_MAGIC 0xa2a25441
37 #define ATAG_NONE 0x00000000
45 #define ATAG_CORE 0x54410001
54 #define ATAG_MEM 0x54410002
58 #define ATAG_CMDLINE 0x54410003
65 #define ATAG_RDIMG 0x54410004
69 #define ATAG_CLOCK 0x54410005
78 #define CLOCK_BOOTCPU 0
81 #define ATAG_RSVD_MEM 0x54410006
86 #define ATAG_ETHERNET 0x54410007
94 #define ETH_INVALID_PHY 0xff
97 #define ATAG_BOARDINFO 0x54410008
120 #define __tag __used __attribute__((__section__(".taglist.init")))
121 #define __tagtable(tag, fn) \
122 static struct tagtable __tagtable_##fn __tag = { tag, fn }
124 #define tag_member_present(tag,member) \
125 ((unsigned long)(&((struct tag *)0L)->member + 1) \
126 <= (tag)->hdr.size * 4)
128 #define tag_next(t) ((struct tag *)((u32 *)(t) + (t)->hdr.size))
129 #define tag_size(type) ((sizeof(struct tag_header) + sizeof(struct type)) >> 2)
131 #define for_each_tag(t,base) \
132 for (t = base; t->hdr.size; t = tag_next(t))