Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / util / romcc / tests / simple_test66.c
1 typedef unsigned char uint8_t;
2 static unsigned int generate_row(uint8_t row, uint8_t maxnodes)
3 {
4
5         unsigned int ret=0x00010101;
6         static const unsigned int rows_2p[2][2] = {
7                 { 0x00050101, 0x00010404 },
8                 { 0x00010404, 0x00050101 }
9         };
10         if(maxnodes>2) {
11                 maxnodes=2;
12         }
13         if (row < maxnodes) {
14                 ret=rows_2p[0][row];
15         }
16         return ret;
17 }
18
19 static void setup_node(void)
20 {
21         unsigned char row;
22         for(row=0; row< 2; row++) {
23                 __builtin_outl(generate_row(row, 2), 0x1234);
24         }
25 }