MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / inportb

Function inportb

Kernel/src/arch/x86_64/system.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5}
6
7uint8_t inportb(uint16_t port){
8 uint8_t value;
9 asm volatile("inb %1, %0" : "=a" (value) : "dN" (port));
10 return value;
11}
12
13void outportw(uint16_t port, uint16_t value){
14 asm volatile ("outw %1, %0" : : "dN" (port), "a" (value));

Callers 12

laihost_inbFunction · 0.85
HandlerFunction · 0.85
WaitFunction · 0.85
ReadFunction · 0.85
InstallFunction · 0.85
is_transmit_emptyFunction · 0.85
HandlerFunction · 0.85
ReadRegisterFunction · 0.85
ReadControlRegisterFunction · 0.85
DetectDriveFunction · 0.85
InitFunction · 0.85
AccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected