Eric Biederman | 6aa31cc | 2003-06-10 21:22:07 +0000 | [diff] [blame^] | 1 | static void outl(unsigned int value, unsigned short port) |
| 2 | { |
| 3 | __builtin_outl(value, port); |
| 4 | } |
| 5 | |
| 6 | static unsigned char inl(unsigned short port) |
| 7 | { |
| 8 | return __builtin_inl(port); |
| 9 | } |
| 10 | |
| 11 | |
| 12 | static 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 | } |