lookupDevice static method

PciDevice? lookupDevice(
  1. int id, {
  2. required int vendorId,
})

Looks up a PCI device by the id and vendorId.

Returns null if not found.

Implementation

static PciDevice? lookupDevice(int id, {required int vendorId}) {
  return _devices[vendorId]?[id];
}