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

Function CheckDevice

Kernel/src/arch/x86_64/pci.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 bool CheckDevice(uint8_t bus, uint8_t device, uint8_t func){
87 if(GetVendor(bus, device, func) == 0xFFFF){
88 return false;
89 }
90
91 return true;
92 }
93
94 bool FindDevice(uint16_t deviceID, uint16_t vendorID){
95 for(unsigned i = 0; i < devices->get_length(); i++){

Callers 1

InitFunction · 0.85

Calls 1

GetVendorFunction · 0.85

Tested by

no test coverage detected