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

Function ReadRegister

Kernel/src/storage/ata.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 inline uint8_t ReadRegister(uint8_t port, uint8_t reg){
40 return inportb((port ? port1 : port0 ) + reg);
41 }
42
43 inline void WriteControlRegister(uint8_t port, uint8_t reg, uint8_t value){
44 outportb((port ? controlPort1 : controlPort0 ) + reg, value);

Callers 2

DetectDriveFunction · 0.85
AccessFunction · 0.85

Calls 1

inportbFunction · 0.85

Tested by

no test coverage detected