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

Method DetectAndInitialize

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

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

FindDeviceFunction · 0.85
RegisterDeviceFunction · 0.85
InfoFunction · 0.85
add_backMethod · 0.45

Tested by

no test coverage detected