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