Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * NSC/Cyrix CPU indexed register access. Must be inlined instead of
0004  * macros to ensure correct access ordering
0005  * Access order is always 0x22 (=offset), 0x23 (=value)
0006  */
0007 
0008 #include <asm/pc-conf-reg.h>
0009 
0010 static inline u8 getCx86(u8 reg)
0011 {
0012     return pc_conf_get(reg);
0013 }
0014 
0015 static inline void setCx86(u8 reg, u8 data)
0016 {
0017     pc_conf_set(reg, data);
0018 }