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

Function ReadControlRegister

Kernel/src/storage/ata.cpp:47–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 inline uint8_t ReadControlRegister(uint8_t port, uint8_t reg){
48 return inportb((port ? controlPort1 : controlPort0 ) + reg);
49 }
50
51
52 int DetectDrive(int port, int drive){

Callers 1

InitFunction · 0.85

Calls 1

inportbFunction · 0.85

Tested by

no test coverage detected