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

Function WriteRegister

Kernel/src/storage/ata.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 uint8_t ideSubclass = PCI_SUBCLASS_IDE;
34
35 inline void WriteRegister(uint8_t port, uint8_t reg, uint8_t value){
36 outportb((port ? port1 : port0 ) + reg, value);
37 }
38
39 inline uint8_t ReadRegister(uint8_t port, uint8_t reg){
40 return inportb((port ? port1 : port0 ) + reg);

Callers 2

DetectDriveFunction · 0.85
AccessFunction · 0.85

Calls 1

outportbFunction · 0.85

Tested by

no test coverage detected