| 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 |
nothing calls this directly
no test coverage detected