| 83 | } |
| 84 | |
| 85 | void Intel8254x::DetectAndInitialize(){ |
| 86 | for(int i = 0; i < supportedDeviceCount; i++){ |
| 87 | if(PCI::FindDevice(supportedDevices[i], INTEL_VENDOR_ID)){ |
| 88 | Intel8254x* card = new Intel8254x(PCI::GetPCIDevice(supportedDevices[i], INTEL_VENDOR_ID)); |
| 89 | cards.add_back(card); |
| 90 | DeviceManager::RegisterDevice(*card); |
| 91 | return; |
| 92 | } |
| 93 | } |
| 94 | Log::Info("[i8254x] No i8254x Network Adapter found!"); |
| 95 | } |
| 96 | |
| 97 | void Intel8254x::OnInterrupt(){ |
| 98 | uint32_t status = ReadMem32(I8254_REGISTER_INT_READ); |
nothing calls this directly
no test coverage detected