Changeset 49779 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Dec 4, 2013 5:20:25 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91095
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/darwin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/darwin/USBLib-darwin.cpp
r44529 r49779 5 5 6 6 /* 7 * Copyright (C) 2007-201 0Oracle Corporation7 * Copyright (C) 2007-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 190 190 } 191 191 192 USBLIB_DECL(void) USBLibResumeBuiltInKeyboard(void) 193 { 194 #if MAC_OS_X_VERSION_MIN_REQUIRED < 1050 195 kern_return_t kr = IOConnectMethodStructureIStructureO(g_Connection, 196 VBOXUSBMETHOD_RESUME_BUILTIN_KBD, 197 0, 198 NULL, 199 NULL, 200 NULL); 201 #else /* 10.5 and later */ 202 kern_return_t kr = IOConnectCallStructMethod(g_Connection, 203 VBOXUSBMETHOD_RESUME_BUILTIN_KBD, 204 NULL, 0, 205 NULL, NULL); 206 #endif /* 10.5 and later */ 207 AssertMsg(kr == kIOReturnSuccess, ("kr=%#x\n", kr)); 208 NOREF(kr); 209 } -
trunk/src/VBox/HostDrivers/VBoxUSB/darwin/VBoxUSB.cpp
r44528 r49779 9 9 10 10 /* 11 * Copyright (C) 2006-201 0Oracle Corporation11 * Copyright (C) 2006-2013 Oracle Corporation 12 12 * 13 13 * This file is part of VirtualBox Open Source Edition (OSE), as … … 60 60 #include <IOKit/usb/IOUSBInterface.h> 61 61 #include <IOKit/usb/IOUSBUserClient.h> 62 #include <IOKit/usb/IOUSBHIDDriver.h> 62 63 63 64 /* private: */ … … 140 141 IOReturn addFilter(PUSBFILTER pFilter, PVBOXUSBADDFILTEROUT pOut, IOByteCount cbFilter, IOByteCount *pcbOut); 141 142 IOReturn removeFilter(uintptr_t *puId, int *prc, IOByteCount cbIn, IOByteCount *pcbOut); 143 IOReturn resumeBuiltInKbd(void *unused1, void *unused2, IOByteCount unused3, IOByteCount *unused4, void *unused5, void *unused6); 142 144 /** @} */ 143 145 … … 788 790 sizeof(int) /* count1 - size of the output (rc) */ 789 791 }, 792 /* [VBOXUSBMETHOD_RESUME_BUILTIN_KBD] = */ 793 { 794 (IOService *)0, /* object */ 795 (IOMethod)&org_virtualbox_VBoxUSBClient::resumeBuiltInKbd, /* func */ 796 kIOUCScalarIScalarO, /* flags - scalar input (count0) and scalar output (count1) */ 797 0, /* count0 - # of input parameters */ 798 0 /* count1 - # of output parameters */ 799 }, 790 800 }; 791 801 … … 893 903 } 894 904 905 IOReturn 906 org_virtualbox_VBoxUSBClient::resumeBuiltInKbd(void *unused1, void *unused2, IOByteCount unused3, IOByteCount *unused4, void *unused5, void *unused6) 907 { 908 (void)unused1; 909 (void)unused2; 910 (void)unused3; 911 (void)unused4; 912 (void)unused5; 913 (void)unused6; 914 915 OSDictionary *pDictionary; 916 917 VBOXUSB_LOCK(); 918 919 pDictionary = IOService::serviceMatching("AppleUSBTCKeyboard"); 920 if (pDictionary) 921 { 922 OSIterator *pIter; 923 IOUSBHIDDriver *pDriver; 924 925 pIter = IOService::getMatchingServices(pDictionary); 926 if (pIter) 927 { 928 while ((pDriver = (IOUSBHIDDriver *)pIter->getNextObject())) 929 pDriver->SuspendPort(false, 0); 930 931 pIter->release(); 932 } 933 934 pDictionary->release(); 935 } 936 937 VBOXUSB_UNLOCK(); 938 939 return kIOReturnSuccess; 940 } 895 941 896 942 /** -
trunk/src/VBox/HostDrivers/VBoxUSB/darwin/VBoxUSBInterface.h
r44529 r49779 5 5 6 6 /* 7 * Copyright (C) 2007-201 0Oracle Corporation7 * Copyright (C) 2007-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 30 30 /** org_virtualbox_VBoxUSBClient::removeFilter */ 31 31 VBOXUSBMETHOD_REMOVE_FILTER, 32 /** org_virtualbox_VBoxUSBClient::resumeBuiltInKbd */ 33 VBOXUSBMETHOD_RESUME_BUILTIN_KBD, 32 34 /** End/max. */ 33 35 VBOXUSBMETHOD_END
Note:
See TracChangeset
for help on using the changeset viewer.