Implement "_outb()" to the LinuxKPI for i386 and amd64 only.

Obtained from:	kmacy @
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2016-05-23 11:53:00 +00:00
parent 6286c33bf7
commit dee3f2f5b8

View File

@ -171,6 +171,14 @@ readl(const volatile void *addr)
return *(const volatile uint32_t *)addr;
}
#if defined(__i386__) || defined(__amd64__)
static inline void
_outb(u_char data, u_int port)
{
__asm __volatile("outb %0, %w1" : : "a" (data), "Nd" (port));
}
#endif
#if defined(__i386__) || defined(__amd64__)
void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr);
#else