processor-cyrix.h 383 字节
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
2 3 4 5 6 7
/*
 * 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)
 */

8 9
#include <asm/pc-conf-reg.h>

10 11
static inline u8 getCx86(u8 reg)
{
12
	return pc_conf_get(reg);
13 14 15 16
}

static inline void setCx86(u8 reg, u8 data)
{
17
	pc_conf_set(reg, data);
18
}