2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/ioapic.h>
11 u32 io_apic_read(u32 reg)
13 writel(reg, IO_APIC_INDEX);
14 return readl(IO_APIC_DATA);
17 void io_apic_write(u32 reg, u32 val)
19 writel(reg, IO_APIC_INDEX);
20 writel(val, IO_APIC_DATA);