File: testdata.h

package info (click to toggle)
device-tree-compiler 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,580 kB
  • sloc: ansic: 9,213; sh: 793; asm: 655; lex: 510; yacc: 408; makefile: 252; perl: 74
file content (40 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifdef __ASSEMBLY__
#define ASM_CONST_LL(x)	(x)
#else
#define ASM_CONST_LL(x)	(x##ULL)
#endif

#define TEST_ADDR_1	ASM_CONST_LL(0xdeadbeef00000000)
#define TEST_SIZE_1	ASM_CONST_LL(0x100000)
#define TEST_ADDR_2	ASM_CONST_LL(123456789)
#define TEST_SIZE_2	ASM_CONST_LL(010000)

#define TEST_VALUE_1	0xdeadbeef
#define TEST_VALUE_2	123456789

#define TEST_VALUE64_1	ASM_CONST_LL(0xdeadbeef01abcdef)

#define PHANDLE_1	0x2000
#define PHANDLE_2	0x2001

#define TEST_STRING_1	"hello world"
#define TEST_STRING_2	"nastystring: \a\b\t\n\v\f\r\\\""
#define TEST_STRING_3	"\xde\xad\xbe\xef"

#define TEST_STRING_4_PARTIAL	"foobar"
#define TEST_STRING_4_RESULT	"testfoobar"

#define TEST_CHAR1	'\r'
#define TEST_CHAR2	'b'
#define TEST_CHAR3	'\0'
#define TEST_CHAR4	'\''
#define TEST_CHAR5	'\xff'

#ifndef __ASSEMBLY__
extern struct fdt_header _test_tree1;
extern struct fdt_header _truncated_property;
extern struct fdt_header _bad_node_char;
extern struct fdt_header _bad_node_format;
extern struct fdt_header _bad_prop_char;
extern struct fdt_header _ovf_size_strings;
#endif /* ! __ASSEMBLY */