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

Method UpdateLink

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

Source from the content-addressed store, hash-verified

158 }
159
160 void Intel8254x::UpdateLink(){
161 int _link = (ReadMem32(I8254_REGISTER_STATUS) | STATUS_LINK_UP);
162 Log::Info("[i8254x] Link %s, Speed: %d", (_link) ? "Up" : "Down", GetSpeed());
163
164 if(_link){
165 linkState = LinkUp;
166 FindMainAdapter();
167 } else {
168 linkState = LinkDown;
169 }
170 }
171
172 void Intel8254x::InitializeRx(){
173 uint64_t rxDescPhys = Memory::AllocatePhysicalMemoryBlock(); // The card wants a physical address

Callers

nothing calls this directly

Calls 2

InfoFunction · 0.85
FindMainAdapterFunction · 0.85

Tested by

no test coverage detected