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

Method CheckForEEPROM

Kernel/src/net/8254x.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 bool Intel8254x::CheckForEEPROM(){
75 WriteMem32(I8254_REGISTER_EEPROM, 1);
76
77 for (int i = 0; i < 1000; i++) {
78 uint32_t reg = ReadMem32(I8254_REGISTER_EEPROM);
79 if(reg & 0x10) return true;
80 }
81
82 return false;
83 }
84
85 void Intel8254x::DetectAndInitialize(){
86 for(int i = 0; i < supportedDeviceCount; i++){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected