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

Method ReadEEPROM

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

Source from the content-addressed store, hash-verified

65 }
66
67 uint16_t Intel8254x::ReadEEPROM(uint8_t addr) {
68 uint32_t temp = 0;
69 WriteMem32(I8254_REGISTER_EEPROM, 1 | (((uint32_t)addr) << 8));
70 while (!((temp = ReadMem32(I8254_REGISTER_EEPROM)) & (1 << 4)));
71 return (uint16_t)((temp >> 16) & 0xFFFF);
72 }
73
74 bool Intel8254x::CheckForEEPROM(){
75 WriteMem32(I8254_REGISTER_EEPROM, 1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected