Changeset 13865 in vbox
- Timestamp:
- Nov 5, 2008 2:14:11 PM (16 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h
r13858 r13865 251 251 int suplibOsTerm(PSUPLIBDATA pThis); 252 252 int suplibOsIOCtl(PSUPLIBDATA pThis, uintptr_t uFunction, void *pvReq, size_t cbReq); 253 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, u nsigned idCPU);253 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, uintptr_t idCpu); 254 254 int suplibOsPageAlloc(PSUPLIBDATA pThis, size_t cPages, void **ppvPages); 255 255 int suplibOsPageFree(PSUPLIBDATA pThis, void *pvPages, size_t cPages); -
trunk/src/VBox/HostDrivers/Support/darwin/SUPLib-darwin.cpp
r13858 r13865 271 271 272 272 273 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, u nsignedidCpu)273 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, uintptr_t idCpu) 274 274 { 275 275 int rc = ioctl(pThis->hDevice, uFunction, NULL); -
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r13862 r13865 371 371 || ulCmd == SUP_IOCTL_FAST_DO_HWACC_RUN 372 372 || ulCmd == SUP_IOCTL_FAST_DO_NOP) 373 return supdrvIOCtlFast(uCmd, 0 /* @todo VMCPU id. */, &g_VBoxDrvFreeBSDDevExt, pSession);373 return supdrvIOCtlFast(uCmd, *(uint32_t *)pvData, &g_VBoxDrvFreeBSDDevExt, pSession); 374 374 375 375 return VBoxDrvFreeBSDIOCtlSlow(pSession, ulCmd, pvData, pTd); -
trunk/src/VBox/HostDrivers/Support/freebsd/SUPLib-freebsd.cpp
r13858 r13865 167 167 168 168 169 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, u nsignedidCpu)169 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, uintptr_t idCpu) 170 170 { 171 int rc = ioctl(pThis->hDevice, uFunction, NULL);171 int rc = ioctl(pThis->hDevice, uFunction, idCpu); 172 172 if (rc == -1) 173 173 rc = errno; -
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r13861 r13865 712 712 || uCmd == SUP_IOCTL_FAST_DO_HWACC_RUN 713 713 || uCmd == SUP_IOCTL_FAST_DO_NOP)) 714 return supdrvIOCtlFast(uCmd, 0 /* @todo VMCPU id. */, &g_DevExt, (PSUPDRVSESSION)pFilp->private_data);714 return supdrvIOCtlFast(uCmd, ulArg, &g_DevExt, (PSUPDRVSESSION)pFilp->private_data); 715 715 return VBoxDrvLinuxIOCtlSlow(pFilp, uCmd, ulArg); 716 716 … … 722 722 || uCmd == SUP_IOCTL_FAST_DO_HWACC_RUN 723 723 || uCmd == SUP_IOCTL_FAST_DO_NOP)) 724 rc = supdrvIOCtlFast(uCmd, 0 /* @todo VMCPU id. */, &g_DevExt, (PSUPDRVSESSION)pFilp->private_data);724 rc = supdrvIOCtlFast(uCmd, ulArg, &g_DevExt, (PSUPDRVSESSION)pFilp->private_data); 725 725 else 726 726 rc = VBoxDrvLinuxIOCtlSlow(pFilp, uCmd, ulArg); -
trunk/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
r13858 r13865 202 202 203 203 204 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, u nsignedidCpu)205 { 206 int rc = ioctl(pThis->hDevice, uFunction, NULL);204 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, uintptr_t idCpu) 205 { 206 int rc = ioctl(pThis->hDevice, uFunction, idCpu); 207 207 if (rc == -1) 208 208 rc = -errno; -
trunk/src/VBox/HostDrivers/Support/os2/SUPLib-os2.cpp
r13858 r13865 153 153 154 154 155 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, u nsignedidCpu)155 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, uintptr_t idCpu) 156 156 { 157 NOREF(idCpu); 157 158 int32_t rcRet = VERR_INTERNAL_ERROR; 158 159 int rc = DosDevIOCtl((HFILE)pThis->hDevice, SUP_CTL_CATEGORY_FAST, uFunction, -
trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c
r13863 r13865 664 664 || Cmd == SUP_IOCTL_FAST_DO_NOP) 665 665 { 666 *pVal = supdrvIOCtlFast(Cmd, 0 /* @todo VMCPU id. */, &g_DevExt, pSession);666 *pVal = supdrvIOCtlFast(Cmd, pArgs, &g_DevExt, pSession); 667 667 return 0; 668 668 } -
trunk/src/VBox/HostDrivers/Support/solaris/SUPLib-solaris.cpp
r13858 r13865 160 160 161 161 162 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, u nsignedidCpu)162 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, uintptr_t idCpu) 163 163 { 164 int rc = ioctl(pThis->hDevice, uFunction, NULL);164 int rc = ioctl(pThis->hDevice, uFunction, idCpu); 165 165 if (rc == -1) 166 166 rc = errno; -
trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
r13858 r13865 504 504 505 505 506 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, u nsignedidCpu)506 int suplibOsIOCtlFast(PSUPLIBDATA pThis, uintptr_t uFunction, uintptr_t idCpu) 507 507 { 508 508 /*
Note:
See TracChangeset
for help on using the changeset viewer.