Changeset 60548 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Apr 18, 2016 5:33:15 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/usb/usbgadget2.py
r60522 r60548 1295 1295 self.sImpersonation = g_ksGadgetImpersonationInvalid; 1296 1296 self.idGadget = None; 1297 self.iBusId = None; 1298 self.iDevId = None; 1297 1299 self.iUsbIpPort = None; 1298 1300 … … 1306 1308 fRc = self.oUtsSession.syncGadgetDestroy(self.idGadget); 1307 1309 self.idGadget = None; 1310 self.iBusId = None; 1311 self.iDevId = None; 1308 1312 1309 1313 return fRc; … … 1340 1344 fRc = True; 1341 1345 self.idGadget = getU32(abPayload, 16); 1346 self.iBusId = getU32(abPayload, 20); 1347 self.iDevId = getU32(abPayload, 24); 1342 1348 else: 1343 1349 reporter.log('Invalid or unsupported impersonation'); … … 1351 1357 """ 1352 1358 return self.iUsbIpPort; 1359 1360 def getGadgetBusAndDevId(self): 1361 """ 1362 Returns the bus ad device ID of the gadget as a tuple. 1363 """ 1364 return (self.iBusId, self.iDevId); 1353 1365 1354 1366 def connectTo(self, cMsTimeout, sHostname, uPort = None, fUsbIpSupport = True, cMsIdleFudge = 0): -
trunk/src/VBox/ValidationKit/utils/usb/UsbTestService.cpp
r60522 r60548 703 703 704 704 Rep.idGadget = 0; 705 Rep.u32BusId = utsGadgetGetBusId(pClient->hGadget); 706 Rep.u32DevId = utsGadgetGetDevId(pClient->hGadget); 705 707 rc = utsReplyInternal(pClient, &Rep.Sts, "ACK ", sizeof(Rep) - sizeof(UTSPKTSTS)); 706 708 } -
trunk/src/VBox/ValidationKit/utils/usb/UsbTestServiceProtocol.h
r60488 r60548 221 221 /** The gadget ID on success. */ 222 222 uint32_t idGadget; 223 /** Padding - reserved. */ 224 uint8_t au8Padding[12]; 223 /** Bus ID the gadget is attached to */ 224 uint32_t u32BusId; 225 /** Device ID of the gadget on the bus. */ 226 uint32_t u32DevId; 227 /** Padding - reserved. */ 228 uint8_t au8Padding[4]; 225 229 } UTSPKTREPGDGTCTOR; 226 230 AssertCompileSizeAlignment(UTSPKTREPGDGTCTOR, UTSPKT_ALIGNMENT);
Note:
See TracChangeset
for help on using the changeset viewer.