Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/io.h
Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | |||||
#if defined(__i386__) || defined(__amd64__) | #if defined(__i386__) || defined(__amd64__) | ||||
static inline void | static inline void | ||||
_outb(u_char data, u_int port) | _outb(u_char data, u_int port) | ||||
{ | { | ||||
__asm __volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); | __asm __volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); | ||||
} | } | ||||
#endif | #endif | ||||
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__) | #if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__) || defined(__riscv) | ||||
imp: Sorry for the late comment, but can't we just remove this ifdef now? We have no linuxkpi… | |||||
jrtc27AuthorUnsubmitted Done Inline Actionssys/modules enables the module unconditionally jrtc27: sys/modules enables the module unconditionally | |||||
void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr); | void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr); | ||||
#else | #else | ||||
#define _ioremap_attr(...) NULL | #define _ioremap_attr(...) NULL | ||||
#endif | #endif | ||||
#ifdef VM_MEMATTR_DEVICE | #ifdef VM_MEMATTR_DEVICE | ||||
#define ioremap_nocache(addr, size) \ | #define ioremap_nocache(addr, size) \ | ||||
_ioremap_attr((addr), (size), VM_MEMATTR_DEVICE) | _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE) | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |
Sorry for the late comment, but can't we just remove this ifdef now? We have no linuxkpi support for arm and mips*, right?