]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/x86/include/asm/processor-cyrix.h
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[mirror_ubuntu-hirsute-kernel.git] / arch / x86 / include / asm / processor-cyrix.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
f25f64ed
JB
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)
f25f64ed
JB
6 */
7
8static inline u8 getCx86(u8 reg)
9{
10 outb(reg, 0x22);
11 return inb(0x23);
12}
13
14static inline void setCx86(u8 reg, u8 data)
15{
16 outb(reg, 0x22);
17 outb(data, 0x23);
18}