symbian-qemu-0.9.1-12/dtc-trunk/tests/testdata.h
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     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 PHANDLE_1	0x2000
       
    16 #define PHANDLE_2	0x2001
       
    17 
       
    18 #define TEST_STRING_1	"hello world"
       
    19 #define TEST_STRING_2	"nastystring: \a\b\t\n\v\f\r\\\""
       
    20 #define TEST_STRING_3	"\xde\xad\xbe\xef"
       
    21 
       
    22 #ifndef __ASSEMBLY__
       
    23 extern struct fdt_header _test_tree1;
       
    24 extern struct fdt_header _truncated_property;
       
    25 extern struct fdt_header _bad_node_char;
       
    26 extern struct fdt_header _bad_node_format;
       
    27 extern struct fdt_header _bad_prop_char;
       
    28 #endif /* ! __ASSEMBLY */