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

Function GetDeviceID

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

Source from the content-addressed store, hash-verified

77 }
78
79 uint16_t GetDeviceID(uint8_t bus, uint8_t slot, uint8_t func){
80 uint16_t id;
81
82 id = ConfigReadWord(bus, slot, func, 2);
83 return id;
84 }
85
86 bool CheckDevice(uint8_t bus, uint8_t device, uint8_t func){
87 if(GetVendor(bus, device, func) == 0xFFFF){

Callers 1

AddDeviceFunction · 0.85

Calls 1

ConfigReadWordFunction · 0.85

Tested by

no test coverage detected