summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test28.c
blob: 8d83383124bce2d513b96b93c7e0d72c30a1e945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
static void outl(unsigned int value, unsigned short port)
{
        __builtin_outl(value, port);
}

static unsigned char inl(unsigned short port)
{
        return __builtin_inl(port);
}


static void setup_coherent_ht_domain(void)
{
        static const unsigned int register_values[] = {
        ( (((0) & 0xFF) << 16) | (((0x18) & 0x1f) << 11) | (((0) & 0x07) << 8) | ((0x40) & 0xFF)), 0xfff0f0f0, 0x00010101,

        };
	unsigned long reg;
	reg = inl(0xFC);
	reg &= register_values[1];
	reg |= register_values[2] & ~register_values[1];
	outl(register_values[0], 0xF8);
	outl(reg, 0xFC);
}