mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Now that PPC_INDIRECT_MMIO is removed, it's not possible/necessary to hook any of the "memory" accessors, so turn them back into regular static inlines, and restrict the hooking mechanism to the "pio" accessors only. Move the #defines that signal each routine is implemented next to the implementation, and update the out-of-date comment. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20241218105523.416573-12-mpe@ellerman.id.au
15 lines
970 B
C
15 lines
970 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* This file is meant to be include multiple times by other headers */
|
|
|
|
DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port))
|
|
DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port))
|
|
DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port))
|
|
DEF_PCI_AC_NORET(outb, (u8 val, unsigned long port), (val, port))
|
|
DEF_PCI_AC_NORET(outw, (u16 val, unsigned long port), (val, port))
|
|
DEF_PCI_AC_NORET(outl, (u32 val, unsigned long port), (val, port))
|
|
DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c), (p, b, c))
|
|
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), (p, b, c))
|
|
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), (p, b, c))
|
|
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), (p, b, c))
|
|
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), (p, b, c))
|
|
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c), (p, b, c))
|