MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / inb_p

Function inb_p

bsp/x86/drivers/include/i386.h:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 return data;
20}
21static __inline unsigned char inb_p(unsigned short port)
22{
23 unsigned char _v;
24 __asm__ __volatile__ ("inb %1, %0\n\t"
25 "outb %0,$0x80"
26 :"=a" (_v)
27 :"d" ((unsigned short) port));
28 return _v;
29}
30
31static __inline unsigned short inw(int port)
32{

Callers 1

floppy_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected