MCPcopy Create free account
hub / github.com/acidanthera/BrcmPatchRAM / findInterface

Method findInterface

BrcmPatchRAM/BrcmPatchRAM.cpp:964–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964bool BrcmPatchRAM::findInterface(USBInterfaceShim* shim)
965{
966 mDevice.findFirstInterface(shim);
967 if (IOService* interface = shim->getValidatedInterface())
968 {
969 DebugLog("[%04x:%04x]: Interface %d (class %02x, subclass %02x, protocol %02x) located.\n",
970 mVendorId,
971 mProductId,
972 shim->getInterfaceNumber(),
973 shim->getInterfaceClass(),
974 shim->getInterfaceSubClass(),
975 shim->getInterfaceProtocol());
976
977 return true;
978 }
979
980 AlwaysLog("[%04x:%04x]: No interface could be located.\n", mVendorId, mProductId);
981
982 return false;
983}
984
985bool BrcmPatchRAM::findPipe(USBPipeShim* shim, UInt8 type, UInt8 direction)
986{

Callers

nothing calls this directly

Calls 6

getValidatedInterfaceMethod · 0.80
findFirstInterfaceMethod · 0.45
getInterfaceNumberMethod · 0.45
getInterfaceClassMethod · 0.45
getInterfaceSubClassMethod · 0.45
getInterfaceProtocolMethod · 0.45

Tested by

no test coverage detected