vbox的更動 54118 路徑 trunk/src/VBox/ValidationKit/testdriver
- 時間撮記:
- 2015-2-9 下午08:21:45 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r53415 r54118 1024 1024 fRc = False; 1025 1025 else: 1026 reporter.log('changed UsbHidto %s for "%s"' % (fEnable, self.sName));1026 reporter.log('changed OHCI to %s for "%s"' % (fEnable, self.sName)); 1027 1027 self.oTstDrv.processPendingEvents(); 1028 1028 return fRc; … … 1049 1049 else: 1050 1050 if self.fpApiVer >= 4.3: 1051 cEhciCtls = self.o.machine.getUSBControllerCountByType(vboxcon.USBControllerType_E CI);1051 cEhciCtls = self.o.machine.getUSBControllerCountByType(vboxcon.USBControllerType_EHCI); 1052 1052 if cEhciCtls == 1: 1053 1053 self.o.machine.RemoveUSBController('EHCI'); … … 1058 1058 fRc = False; 1059 1059 else: 1060 reporter.log('changed UsbHidto %s for "%s"' % (fEnable, self.sName));1060 reporter.log('changed EHCI to %s for "%s"' % (fEnable, self.sName)); 1061 1061 self.oTstDrv.processPendingEvents(); 1062 1062 return fRc; 1063 1063 1064 def enableUsbXhci(self, fEnable): 1065 """ 1066 Enables or disables the USB XHCI controller. Error information is logged. 1067 """ 1068 fRc = True; 1069 try: 1070 if fEnable: 1071 cXhciCtls = self.o.machine.getUSBControllerCountByType(vboxcon.USBControllerType_XHCI); 1072 if cXhciCtls == 0: 1073 self.o.machine.addUSBController('XHCI', vboxcon.USBControllerType_XHCI); 1074 else: 1075 cXhciCtls = self.o.machine.getUSBControllerCountByType(vboxcon.USBControllerType_XHCI); 1076 if cXhciCtls == 1: 1077 self.o.machine.RemoveUSBController('XHCI'); 1078 except: 1079 reporter.errorXcpt('failed to change XHCI to %s for "%s"' % (fEnable, self.sName)); 1080 fRc = False; 1081 else: 1082 reporter.log('changed XHCI to %s for "%s"' % (fEnable, self.sName)); 1083 self.oTstDrv.processPendingEvents(); 1084 return fRc; 1064 1085 1065 1086 def setFirmwareType(self, eType):
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器