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

Method findFirstInterface

BrcmPatchRAM/USBDeviceShim.cpp:108–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool USBDeviceShim::findFirstInterface(USBInterfaceShim* shim)
109{
110 DebugLog("USBDeviceShim::findFirstInterface\n");
111
112 IOUSBFindInterfaceRequest request;
113 request.bAlternateSetting = kIOUSBFindInterfaceDontCare;
114 request.bInterfaceClass = kIOUSBFindInterfaceDontCare;
115 request.bInterfaceSubClass = kIOUSBFindInterfaceDontCare;
116 request.bInterfaceProtocol = kIOUSBFindInterfaceDontCare;
117 IOUSBInterface* interface = m_pDevice->FindNextInterface(NULL, &request);
118 DebugLog("FindNextInterface returns %p\n", interface);
119 shim->setInterface(interface);
120
121 DebugLog("getValidatedInterface returns %p\n", shim->getValidatedInterface());
122 return shim->getValidatedInterface() != NULL;
123}
124
125bool USBDeviceShim::open(IOService *forClient, IOOptionBits options, void *arg)
126{

Callers 2

findInterfaceMethod · 0.45
findInterfaceMethod · 0.45

Calls 2

getValidatedInterfaceMethod · 0.80
setInterfaceMethod · 0.45

Tested by

no test coverage detected