| 48 | } |
| 49 | |
| 50 | static void write_1d0 (u32 val, u16 addr, int bits, int flag) |
| 51 | { |
| 52 | write_mchbar32 (0x1d0, 0); |
| 53 | while (read_mchbar32 (0x1d0) & 0x800000); |
| 54 | write_mchbar32 (0x1d4, (val & ((1 << bits) - 1)) | (2 << bits) | (flag << bits)); |
| 55 | write_mchbar32 (0x1d0, 0x40000000 | addr); |
| 56 | while (read_mchbar32 (0x1d0) & 0x800000); |
| 57 | } |
| 58 | |
| 59 | static u16 read_1d0 (u16 addr, int split) |
| 60 | { |
no test coverage detected