~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to dtc/tests/testdata.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_1     ASM_CONST_LL(0xdeadbeef00000000)
 
8
#define TEST_SIZE_1     ASM_CONST_LL(0x100000)
 
9
#define TEST_ADDR_2     ASM_CONST_LL(123456789)
 
10
#define TEST_SIZE_2     ASM_CONST_LL(010000)
 
11
 
 
12
#define TEST_VALUE_1    0xdeadbeef
 
13
#define TEST_VALUE_2    123456789
 
14
 
 
15
#define TEST_VALUE64_1  ASM_CONST_LL(0xdeadbeef01abcdef)
 
16
 
 
17
#define PHANDLE_1       0x2000
 
18
#define PHANDLE_2       0x2001
 
19
 
 
20
#define TEST_STRING_1   "hello world"
 
21
#define TEST_STRING_2   "nastystring: \a\b\t\n\v\f\r\\\""
 
22
#define TEST_STRING_3   "\xde\xad\xbe\xef"
 
23
 
 
24
#define TEST_STRING_4_PARTIAL   "foobar"
 
25
#define TEST_STRING_4_RESULT    "testfoobar"
 
26
 
 
27
#define TEST_CHAR1      '\r'
 
28
#define TEST_CHAR2      'b'
 
29
#define TEST_CHAR3      '\0'
 
30
#define TEST_CHAR4      '\''
 
31
#define TEST_CHAR5      '\xff'
 
32
 
 
33
#ifndef __ASSEMBLY__
 
34
extern struct fdt_header _test_tree1;
 
35
extern struct fdt_header _truncated_property;
 
36
extern struct fdt_header _bad_node_char;
 
37
extern struct fdt_header _bad_node_format;
 
38
extern struct fdt_header _bad_prop_char;
 
39
extern struct fdt_header _ovf_size_strings;
 
40
#endif /* ! __ASSEMBLY */