2 * NSC/Cyrix CPU indexed register access. Must be inlined instead of
3 * macros to ensure correct access ordering
4 * Access order is always 0x22 (=offset), 0x23 (=value)
6 * When using the old macros a line like
7 * setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88);
10 * outb((CX86_CCR2), 0x22);
12 * outb((CX86_CCR2), 0x22);
17 * which in fact violates the access order (= 0x22, 0x22, 0x23, 0x23).
20 static inline u8
getCx86(u8 reg
)
26 static inline void setCx86(u8 reg
, u8 data
)
32 #define getCx86_old(reg) ({ outb((reg), 0x22); inb(0x23); })
34 #define setCx86_old(reg, data) do { \