processor-cyrix.h 383 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * NSC/Cyrix CPU indexed register access. Must be inlined instead of
  4. * macros to ensure correct access ordering
  5. * Access order is always 0x22 (=offset), 0x23 (=value)
  6. */
  7. #include <asm/pc-conf-reg.h>
  8. static inline u8 getCx86(u8 reg)
  9. {
  10. return pc_conf_get(reg);
  11. }
  12. static inline void setCx86(u8 reg, u8 data)
  13. {
  14. pc_conf_set(reg, data);
  15. }