• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifdef __ASSEMBLY__
2 #define ASM_CONST_LL(x)	(x)
3 #else
4 #define ASM_CONST_LL(x)	(x##ULL)
5 #endif
6 
7 #define TEST_ADDR_1H	ASM_CONST_LL(0xdeadbeef)
8 #define TEST_ADDR_1L	ASM_CONST_LL(0x00000000)
9 #define TEST_ADDR_1	((TEST_ADDR_1H << 32) | TEST_ADDR_1L)
10 #define TEST_SIZE_1H	ASM_CONST_LL(0x00000000)
11 #define TEST_SIZE_1L	ASM_CONST_LL(0x00100000)
12 #define TEST_SIZE_1	((TEST_SIZE_1H << 32) | TEST_SIZE_1L)
13 #define TEST_ADDR_2H	ASM_CONST_LL(0)
14 #define TEST_ADDR_2L	ASM_CONST_LL(123456789)
15 #define TEST_ADDR_2	((TEST_ADDR_2H << 32) | TEST_ADDR_2L)
16 #define TEST_SIZE_2H	ASM_CONST_LL(0)
17 #define TEST_SIZE_2L	ASM_CONST_LL(010000)
18 #define TEST_SIZE_2	((TEST_SIZE_2H << 32) | TEST_SIZE_2L)
19 
20 #define TEST_VALUE_1	0xdeadbeef
21 #define TEST_VALUE_2	123456789
22 
23 #define TEST_VALUE64_1H	ASM_CONST_LL(0xdeadbeef)
24 #define TEST_VALUE64_1L	ASM_CONST_LL(0x01abcdef)
25 #define TEST_VALUE64_1	((TEST_VALUE64_1H << 32) | TEST_VALUE64_1L)
26 
27 #define PHANDLE_1	0x2000
28 #define PHANDLE_2	0x2001
29 
30 #define TEST_STRING_1	"hello world"
31 #define TEST_STRING_2	"nastystring: \a\b\t\n\v\f\r\\\""
32 #define TEST_STRING_3	"\xde\xad\xbe\xef"
33 
34 #define TEST_STRING_4_PARTIAL	"foobar"
35 #define TEST_STRING_4_RESULT	"testfoobar"
36 
37 #define TEST_CHAR1	'\r'
38 #define TEST_CHAR2	'b'
39 #define TEST_CHAR3	'\0'
40 #define TEST_CHAR4	'\''
41 #define TEST_CHAR5	'\xff'
42 
43 #define TEST_MEMREGION_ADDR	0x12345678
44 #define TEST_MEMREGION_ADDR_HI	0x8765432100000000
45 #define TEST_MEMREGION_SIZE	0x9abcdef0
46 #define TEST_MEMREGION_SIZE_HI	0x0fedcba900000000
47 #define TEST_MEMREGION_SIZE_INC	0x1000
48 
49 #ifndef __ASSEMBLY__
50 extern struct fdt_header test_tree1;
51 extern struct fdt_header truncated_property;
52 extern struct fdt_header bad_node_char;
53 extern struct fdt_header bad_node_format;
54 extern struct fdt_header bad_prop_char;
55 extern struct fdt_header ovf_size_strings;
56 extern struct fdt_header truncated_string;
57 extern struct fdt_header truncated_memrsv;
58 #endif /* ! __ASSEMBLY */
59