blob: 8d83383124bce2d513b96b93c7e0d72c30a1e945 [file] [log] [blame]
Eric Biederman6aa31cc2003-06-10 21:22:07 +00001static void outl(unsigned int value, unsigned short port)
2{
3 __builtin_outl(value, port);
4}
5
6static unsigned char inl(unsigned short port)
7{
8 return __builtin_inl(port);
9}
10
11
12static void setup_coherent_ht_domain(void)
13{
14 static const unsigned int register_values[] = {
15 ( (((0) & 0xFF) << 16) | (((0x18) & 0x1f) << 11) | (((0) & 0x07) << 8) | ((0x40) & 0xFF)), 0xfff0f0f0, 0x00010101,
16
17 };
18 unsigned long reg;
19 reg = inl(0xFC);
20 reg &= register_values[1];
21 reg |= register_values[2] & ~register_values[1];
22 outl(register_values[0], 0xF8);
23 outl(reg, 0xFC);
24}