2021-05-26 19:09:36 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* NSC/Cyrix CPU indexed register access. Must be inlined instead of
|
|
|
|
* macros to ensure correct access ordering
|
|
|
|
* Access order is always 0x22 (=offset), 0x23 (=value)
|
|
|
|
*/
|
|
|
|
|
2021-10-02 16:09:28 +00:00
|
|
|
#include <asm/pc-conf-reg.h>
|
|
|
|
|
2021-05-26 19:09:36 +00:00
|
|
|
static inline u8 getCx86(u8 reg)
|
|
|
|
{
|
2021-10-02 16:09:28 +00:00
|
|
|
return pc_conf_get(reg);
|
2021-05-26 19:09:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void setCx86(u8 reg, u8 data)
|
|
|
|
{
|
2021-10-02 16:09:28 +00:00
|
|
|
pc_conf_set(reg, data);
|
2021-05-26 19:09:36 +00:00
|
|
|
}
|