- Timestamp:
- Oct 28, 2011 10:13:34 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r39135 r39136 126 126 * @remarks Not used. 127 127 */ 128 typedef DECLCALLBACK(int) FNPDMDEVIOCTL(PPDMDEVINS pDevIns, RTUINTuFunction,129 void *pvIn, RTUINTcbIn,130 void *pvOut, RTUINTcbOut, PRTUINT pcbOut);128 typedef DECLCALLBACK(int) FNPDMDEVIOCTL(PPDMDEVINS pDevIns, uint32_t uFunction, 129 void *pvIn, uint32_t cbIn, 130 void *pvOut, uint32_t cbOut, PRTUINT pcbOut); 131 131 /** Pointer to a FNPDMDEVIOCTL() function. */ 132 132 typedef FNPDMDEVIOCTL *PFNPDMDEVIOCTL; … … 2163 2163 * @param pszDesc Pointer to description string. This must not be freed. 2164 2164 */ 2165 DECLR3CALLBACKMEMBER(int, pfnIOPortRegister,(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTHCPTR pvUser,2165 DECLR3CALLBACKMEMBER(int, pfnIOPortRegister,(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTHCPTR pvUser, 2166 2166 PFNIOMIOPORTOUT pfnOut, PFNIOMIOPORTIN pfnIn, 2167 2167 PFNIOMIOPORTOUTSTRING pfnOutStr, PFNIOMIOPORTINSTRING pfnInStr, const char *pszDesc)); … … 2187 2187 * @param pszDesc Pointer to description string. This must not be freed. 2188 2188 */ 2189 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterRC,(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTRCPTR pvUser,2189 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterRC,(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTRCPTR pvUser, 2190 2190 const char *pszOut, const char *pszIn, 2191 2191 const char *pszOutStr, const char *pszInStr, const char *pszDesc)); … … 2208 2208 * @param pszDesc Pointer to description string. This must not be freed. 2209 2209 */ 2210 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterR0,(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTR0PTR pvUser,2210 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterR0,(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTR0PTR pvUser, 2211 2211 const char *pszOut, const char *pszIn, 2212 2212 const char *pszOutStr, const char *pszInStr, const char *pszDesc)); … … 2222 2222 * @param cPorts Number of ports to deregister. 2223 2223 */ 2224 DECLR3CALLBACKMEMBER(int, pfnIOPortDeregister,(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts));2224 DECLR3CALLBACKMEMBER(int, pfnIOPortDeregister,(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts)); 2225 2225 2226 2226 /** … … 2242 2242 * @param pszDesc Pointer to description string. This must not be freed. 2243 2243 */ 2244 DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, RTHCPTR pvUser,2244 DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTHCPTR pvUser, 2245 2245 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill, 2246 2246 uint32_t fFlags, const char *pszDesc)); … … 2262 2262 * @param pszFill Name of the RC function which is gonna handle Fill/memset operations. (optional) 2263 2263 */ 2264 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterRC,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,2264 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterRC,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTRCPTR pvUser, 2265 2265 const char *pszWrite, const char *pszRead, const char *pszFill)); 2266 2266 … … 2282 2282 * @param pszDesc Obsolete. NULL is fine. 2283 2283 */ 2284 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, RTR0PTR pvUser,2284 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTR0PTR pvUser, 2285 2285 const char *pszWrite, const char *pszRead, const char *pszFill)); 2286 2286 … … 2295 2295 * @param cbRange The size of the range (in bytes). 2296 2296 */ 2297 DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange));2297 DECLR3CALLBACKMEMBER(int, pfnMMIODeregister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange)); 2298 2298 2299 2299 /** … … 2422 2422 * manually from the device yet. At present I doubt we need such features... 2423 2423 */ 2424 DECLR3CALLBACKMEMBER(int, pfnROMRegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange,2424 DECLR3CALLBACKMEMBER(int, pfnROMRegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, 2425 2425 const void *pvBinary, uint32_t cbBinary, uint32_t fFlags, const char *pszDesc)); 2426 2426 … … 2436 2436 * @param enmProt The new protection type. 2437 2437 */ 2438 DECLR3CALLBACKMEMBER(int, pfnROMProtectShadow,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, PGMROMPROT enmProt));2438 DECLR3CALLBACKMEMBER(int, pfnROMProtectShadow,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, PGMROMPROT enmProt)); 2439 2439 2440 2440 /** … … 2920 2920 * for the live of the device instance. 2921 2921 */ 2922 DECLR3CALLBACKMEMBER(int, pfnDriverAttach,(PPDMDEVINS pDevIns, RTUINTiLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc));2922 DECLR3CALLBACKMEMBER(int, pfnDriverAttach,(PPDMDEVINS pDevIns, uint32_t iLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc)); 2923 2923 2924 2924 /** … … 2938 2938 * @thread The emulation thread. 2939 2939 */ 2940 DECLR3CALLBACKMEMBER(int, pfnQueueCreate,(PPDMDEVINS pDevIns, RTUINT cbItem, RTUINTcItems, uint32_t cMilliesInterval,2940 DECLR3CALLBACKMEMBER(int, pfnQueueCreate,(PPDMDEVINS pDevIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 2941 2941 PFNPDMQUEUEDEV pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue)); 2942 2942 … … 4067 4067 * @copydoc PDMDEVHLPR3::pfnIOPortRegister 4068 4068 */ 4069 DECLINLINE(int) PDMDevHlpIOPortRegister(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTHCPTR pvUser,4069 DECLINLINE(int) PDMDevHlpIOPortRegister(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTHCPTR pvUser, 4070 4070 PFNIOMIOPORTOUT pfnOut, PFNIOMIOPORTIN pfnIn, 4071 4071 PFNIOMIOPORTOUTSTRING pfnOutStr, PFNIOMIOPORTINSTRING pfnInStr, const char *pszDesc) … … 4077 4077 * @copydoc PDMDEVHLPR3::pfnIOPortRegisterRC 4078 4078 */ 4079 DECLINLINE(int) PDMDevHlpIOPortRegisterRC(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTRCPTR pvUser,4079 DECLINLINE(int) PDMDevHlpIOPortRegisterRC(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTRCPTR pvUser, 4080 4080 const char *pszOut, const char *pszIn, const char *pszOutStr, 4081 4081 const char *pszInStr, const char *pszDesc) … … 4087 4087 * @copydoc PDMDEVHLPR3::pfnIOPortRegisterR0 4088 4088 */ 4089 DECLINLINE(int) PDMDevHlpIOPortRegisterR0(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTR0PTR pvUser,4089 DECLINLINE(int) PDMDevHlpIOPortRegisterR0(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTR0PTR pvUser, 4090 4090 const char *pszOut, const char *pszIn, const char *pszOutStr, 4091 4091 const char *pszInStr, const char *pszDesc) … … 4097 4097 * @copydoc PDMDEVHLPR3::pfnIOPortDeregister 4098 4098 */ 4099 DECLINLINE(int) PDMDevHlpIOPortDeregister(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts)4099 DECLINLINE(int) PDMDevHlpIOPortDeregister(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts) 4100 4100 { 4101 4101 return pDevIns->pHlpR3->pfnIOPortDeregister(pDevIns, Port, cPorts); … … 4103 4103 4104 4104 /** 4105 * @copydoc PDMDEVHLPR3::pfnMMIORegister 4106 */ 4107 DECLINLINE(int) PDMDevHlpMMIORegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser, 4105 * Register a Memory Mapped I/O (MMIO) region. 4106 * 4107 * These callbacks are of course for the ring-3 context (R3). Register HC 4108 * handlers before raw-mode context (RC) and ring-0 context (R0) handlers! There 4109 * must be a R3 handler for every RC and R0 handler! 4110 * 4111 * @returns VBox status. 4112 * @param pDevIns The device instance to register the MMIO with. 4113 * @param GCPhysStart First physical address in the range. 4114 * @param cbRange The size of the range (in bytes). 4115 * @param pvUser User argument. 4116 * @param fFlags Flags, IOMMMIO_FLAGS_XXX. 4117 * @param pfnWrite Pointer to function which is gonna handle Write operations. 4118 * @param pfnRead Pointer to function which is gonna handle Read operations. 4119 * @param pszDesc Pointer to description string. This must not be freed. 4120 */ 4121 DECLINLINE(int) PDMDevHlpMMIORegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTHCPTR pvUser, 4108 4122 uint32_t fFlags, PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, const char *pszDesc) 4109 4123 { … … 4113 4127 4114 4128 /** 4129 * Register a Memory Mapped I/O (MMIO) region for GC. 4130 * 4131 * These callbacks are for the raw-mode context (RC). Register ring-3 context 4132 * (R3) handlers before guest context handlers! There must be a R3 handler for 4133 * every RC handler! 4134 * 4135 * @returns VBox status. 4136 * @param pDevIns The device instance to register the MMIO with. 4137 * @param GCPhysStart First physical address in the range. 4138 * @param cbRange The size of the range (in bytes). 4139 * @param pvUser User argument. 4140 * @param pszWrite Name of the RC function which is gonna handle Write operations. 4141 * @param pszRead Name of the RC function which is gonna handle Read operations. 4142 */ 4143 DECLINLINE(int) PDMDevHlpMMIORegisterRC(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTRCPTR pvUser, 4144 const char *pszWrite, const char *pszRead) 4145 { 4146 return pDevIns->pHlpR3->pfnMMIORegisterRC(pDevIns, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, NULL /*pszFill*/); 4147 } 4148 4149 /** 4150 * @copydoc PDMDEVHLPR3::pfnMMIORegisterR0 4151 */ 4152 DECLINLINE(int) PDMDevHlpMMIORegisterR0(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTR0PTR pvUser, 4153 const char *pszWrite, const char *pszRead) 4154 { 4155 return pDevIns->pHlpR3->pfnMMIORegisterR0(pDevIns, GCPhysStart, cbRange, pvUser, pszWrite, pszRead, NULL /*pszFill*/); 4156 } 4157 4158 /** 4115 4159 * @copydoc PDMDEVHLPR3::pfnMMIORegister 4116 4160 */ 4117 DECLINLINE(int) PDMDevHlpMMIORegisterEx(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, RTHCPTR pvUser,4161 DECLINLINE(int) PDMDevHlpMMIORegisterEx(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTHCPTR pvUser, 4118 4162 uint32_t fFlags, PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, 4119 4163 PFNIOMMMIOFILL pfnFill, const char *pszDesc) … … 4126 4170 * @copydoc PDMDEVHLPR3::pfnMMIORegisterRC 4127 4171 */ 4128 DECLINLINE(int) PDMDevHlpMMIORegisterRC (PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, RTGCPTR pvUser,4172 DECLINLINE(int) PDMDevHlpMMIORegisterRCEx(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTGCPTR pvUser, 4129 4173 const char *pszWrite, const char *pszRead, const char *pszFill) 4130 4174 { … … 4135 4179 * @copydoc PDMDEVHLPR3::pfnMMIORegisterR0 4136 4180 */ 4137 DECLINLINE(int) PDMDevHlpMMIORegisterR0 (PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, RTR0PTR pvUser,4181 DECLINLINE(int) PDMDevHlpMMIORegisterR0Ex(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTR0PTR pvUser, 4138 4182 const char *pszWrite, const char *pszRead, const char *pszFill) 4139 4183 { … … 4144 4188 * @copydoc PDMDEVHLPR3::pfnMMIODeregister 4145 4189 */ 4146 DECLINLINE(int) PDMDevHlpMMIODeregister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange)4190 DECLINLINE(int) PDMDevHlpMMIODeregister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange) 4147 4191 { 4148 4192 return pDevIns->pHlpR3->pfnMMIODeregister(pDevIns, GCPhysStart, cbRange); … … 4202 4246 * @copydoc PDMDEVHLPR3::pfnROMRegister 4203 4247 */ 4204 DECLINLINE(int) PDMDevHlpROMRegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange,4248 DECLINLINE(int) PDMDevHlpROMRegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, 4205 4249 const void *pvBinary, uint32_t cbBinary, uint32_t fFlags, const char *pszDesc) 4206 4250 { … … 4211 4255 * @copydoc PDMDEVHLPR3::pfnROMProtectShadow 4212 4256 */ 4213 DECLINLINE(int) PDMDevHlpROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, PGMROMPROT enmProt)4257 DECLINLINE(int) PDMDevHlpROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, PGMROMPROT enmProt) 4214 4258 { 4215 4259 return pDevIns->pHlpR3->pfnROMProtectShadow(pDevIns, GCPhysStart, cbRange, enmProt); … … 4565 4609 * @copydoc PDMDEVHLPR3::pfnDriverAttach 4566 4610 */ 4567 DECLINLINE(int) PDMDevHlpDriverAttach(PPDMDEVINS pDevIns, RTUINTiLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc)4611 DECLINLINE(int) PDMDevHlpDriverAttach(PPDMDEVINS pDevIns, uint32_t iLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc) 4568 4612 { 4569 4613 return pDevIns->pHlpR3->pfnDriverAttach(pDevIns, iLun, pBaseInterface, ppBaseInterface, pszDesc); … … 4573 4617 * @copydoc PDMDEVHLPR3::pfnQueueCreate 4574 4618 */ 4575 DECLINLINE(int) PDMDevHlpQueueCreate(PPDMDEVINS pDevIns, RTUINT cbItem, RTUINTcItems, uint32_t cMilliesInterval,4576 PFNPDMQUEUEDEV pfnCallback, bool f GCEnabled, const char *pszName, PPDMQUEUE *ppQueue)4577 { 4578 return pDevIns->pHlpR3->pfnQueueCreate(pDevIns, cbItem, cItems, cMilliesInterval, pfnCallback, f GCEnabled, pszName, ppQueue);4619 DECLINLINE(int) PDMDevHlpQueueCreate(PPDMDEVINS pDevIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 4620 PFNPDMQUEUEDEV pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue) 4621 { 4622 return pDevIns->pHlpR3->pfnQueueCreate(pDevIns, cbItem, cItems, cMilliesInterval, pfnCallback, fRZEnabled, pszName, ppQueue); 4579 4623 } 4580 4624 -
trunk/include/VBox/vmm/pdmqueue.h
r35361 r39136 4 4 5 5 /* 6 * Copyright (C) 2006-201 0Oracle Corporation6 * Copyright (C) 2006-2011 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 119 119 typedef FNPDMQUEUEEXT *PFNPDMQUEUEEXT; 120 120 121 VMMR3DECL(int) PDMR3QueueCreateDevice(PVM pVM, PPDMDEVINS pDevIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 122 PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue); 123 VMMR3DECL(int) PDMR3QueueCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 124 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue); 125 VMMR3DECL(int) PDMR3QueueCreateInternal(PVM pVM, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 126 PFNPDMQUEUEINT pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue); 127 VMMR3DECL(int) PDMR3QueueCreateExternal(PVM pVM, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, 128 PFNPDMQUEUEEXT pfnCallback, void *pvUser, const char *pszName, PPDMQUEUE *ppQueue); 129 VMMR3DECL(int) PDMR3QueueDestroy(PPDMQUEUE pQueue); 130 VMMR3DECL(int) PDMR3QueueDestroyDevice(PVM pVM, PPDMDEVINS pDevIns); 131 VMMR3DECL(int) PDMR3QueueDestroyDriver(PVM pVM, PPDMDRVINS pDrvIns); 132 VMMR3DECL(void) PDMR3QueueFlushAll(PVM pVM); 121 #ifdef VBOX_IN_VMM 122 VMMR3_INT_DECL(int) PDMR3QueueCreateDevice(PVM pVM, PPDMDEVINS pDevIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 123 PFNPDMQUEUEDEV pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue); 124 VMMR3_INT_DECL(int) PDMR3QueueCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 125 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue); 126 VMMR3_INT_DECL(int) PDMR3QueueCreateInternal(PVM pVM, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 127 PFNPDMQUEUEINT pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue); 128 VMMR3_INT_DECL(int) PDMR3QueueCreateExternal(PVM pVM, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 129 PFNPDMQUEUEEXT pfnCallback, void *pvUser, const char *pszName, PPDMQUEUE *ppQueue); 130 VMMR3_INT_DECL(int) PDMR3QueueDestroy(PPDMQUEUE pQueue); 131 VMMR3_INT_DECL(int) PDMR3QueueDestroyDevice(PVM pVM, PPDMDEVINS pDevIns); 132 VMMR3_INT_DECL(int) PDMR3QueueDestroyDriver(PVM pVM, PPDMDRVINS pDrvIns); 133 VMMR3_INT_DECL(void) PDMR3QueueFlushAll(PVM pVM); 134 #endif /* VBOX_IN_VMM */ 133 135 134 136 VMMDECL(PPDMQUEUEITEMCORE) PDMQueueAlloc(PPDMQUEUE pQueue); -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r39135 r39136 2521 2521 if (fGCEnabled) 2522 2522 { 2523 2524 rc = PDMDevHlpMMIORegisterRC(pDevIns, 2525 pGlobals->u64PciConfigMMioAddress, 2526 pGlobals->u64PciConfigMMioLength, 2527 0, 2528 "ich9pciMcfgMMIOWrite", 2529 "ich9pciMcfgMMIORead", 2530 NULL /* fill */); 2531 if (RT_FAILURE(rc)) 2532 { 2533 AssertMsgRC(rc, ("Cannot register MCFG MMIO (GC): %Rrc\n", rc)); 2534 return rc; 2535 } 2523 rc = PDMDevHlpMMIORegisterRC(pDevIns, pGlobals->u64PciConfigMMioAddress, pGlobals->u64PciConfigMMioLength, 2524 NIL_RTRCPTR /*pvUser*/, "ich9pciMcfgMMIOWrite", "ich9pciMcfgMMIORead"); 2525 AssertRCReturn(rc, rc); 2536 2526 } 2537 2527 … … 2539 2529 if (fR0Enabled) 2540 2530 { 2541 2542 rc = PDMDevHlpMMIORegisterR0(pDevIns, 2543 pGlobals->u64PciConfigMMioAddress, 2544 pGlobals->u64PciConfigMMioLength, 2545 0, 2546 "ich9pciMcfgMMIOWrite", 2547 "ich9pciMcfgMMIORead", 2548 NULL /* fill */); 2549 if (RT_FAILURE(rc)) 2550 { 2551 AssertMsgRC(rc, ("Cannot register MCFG MMIO (R0): %Rrc\n", rc)); 2552 return rc; 2553 } 2531 rc = PDMDevHlpMMIORegisterR0(pDevIns, pGlobals->u64PciConfigMMioAddress, pGlobals->u64PciConfigMMioLength, 2532 NIL_RTR0PTR /*pvUser*/, "ich9pciMcfgMMIOWrite", "ich9pciMcfgMMIORead"); 2533 AssertRCReturn(rc, rc); 2554 2534 } 2555 2535 } -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r39135 r39136 5990 5990 if (pThis->fGCEnabled) 5991 5991 { 5992 rc = PDMDevHlpMMIORegisterRC(pDevIns, 0x000a0000, 0x00020000, 0, "vgaMMIOWrite", "vgaMMIORead", "vgaMMIOFill"); 5992 rc = PDMDevHlpMMIORegisterRCEx(pDevIns, 0x000a0000, 0x00020000, NIL_RTRCPTR /*pvUser*/, 5993 "vgaMMIOWrite", "vgaMMIORead", "vgaMMIOFill"); 5993 5994 if (RT_FAILURE(rc)) 5994 5995 return rc; … … 5996 5997 if (pThis->fR0Enabled) 5997 5998 { 5998 rc = PDMDevHlpMMIORegisterR0(pDevIns, 0x000a0000, 0x00020000, 0, "vgaMMIOWrite", "vgaMMIORead", "vgaMMIOFill"); 5999 rc = PDMDevHlpMMIORegisterR0Ex(pDevIns, 0x000a0000, 0x00020000, NIL_RTR0PTR /*pvUser*/, 6000 "vgaMMIOWrite", "vgaMMIORead", "vgaMMIOFill"); 5999 6001 if (RT_FAILURE(rc)) 6000 6002 return rc; -
trunk/src/VBox/Devices/Network/DevE1000.cpp
r39135 r39136 4640 4640 if (pState->fR0Enabled) 4641 4641 { 4642 rc = PDMDevHlpMMIORegisterR0(pPciDev->pDevIns, GCPhysAddress, cb, 0,4643 "e1kMMIOWrite", "e1kMMIORead" , NULL);4642 rc = PDMDevHlpMMIORegisterR0(pPciDev->pDevIns, GCPhysAddress, cb, NIL_RTR0PTR /*pvUser*/, 4643 "e1kMMIOWrite", "e1kMMIORead"); 4644 4644 if (RT_FAILURE(rc)) 4645 4645 break; … … 4647 4647 if (pState->fGCEnabled) 4648 4648 { 4649 rc = PDMDevHlpMMIORegisterRC(pPciDev->pDevIns, GCPhysAddress, cb, 0,4650 "e1kMMIOWrite", "e1kMMIORead" , NULL);4649 rc = PDMDevHlpMMIORegisterRC(pPciDev->pDevIns, GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, 4650 "e1kMMIOWrite", "e1kMMIORead"); 4651 4651 } 4652 4652 break; -
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r39135 r39136 2289 2289 pDev->pCritSectRC = pDev->pApicHlpR3->pfnGetRCCritSect(pDevIns); 2290 2290 2291 rc = PDMDevHlpMMIORegisterRC(pDevIns, ApicBase, 0x1000, 0, 2292 "apicMMIOWrite", "apicMMIORead", NULL); 2291 rc = PDMDevHlpMMIORegisterRC(pDevIns, ApicBase, 0x1000, NIL_RTRCPTR /*pvUser*/, "apicMMIOWrite", "apicMMIORead"); 2293 2292 if (RT_FAILURE(rc)) 2294 2293 return rc; … … 2299 2298 pDev->pCritSectR0 = pDev->pApicHlpR3->pfnGetR0CritSect(pDevIns); 2300 2299 2301 rc = PDMDevHlpMMIORegisterR0(pDevIns, ApicBase, 0x1000, 0, 2302 "apicMMIOWrite", "apicMMIORead", NULL); 2300 rc = PDMDevHlpMMIORegisterR0(pDevIns, ApicBase, 0x1000, NIL_RTR0PTR /*pvUser*/, "apicMMIOWrite", "apicMMIORead"); 2303 2301 if (RT_FAILURE(rc)) 2304 2302 return rc; -
trunk/src/VBox/Devices/PC/DevHPET.cpp
r39135 r39136 1450 1450 if (fRCEnabled) 1451 1451 { 1452 rc = PDMDevHlpMMIORegisterRC(pDevIns, HPET_BASE, 0x1000, 0, 1453 "hpetMMIOWrite", "hpetMMIORead", NULL); 1452 rc = PDMDevHlpMMIORegisterRC(pDevIns, HPET_BASE, 0x1000, NIL_RTRCPTR /*pvUser*/, "hpetMMIOWrite", "hpetMMIORead"); 1454 1453 AssertRCReturn(rc, rc); 1455 1454 … … 1460 1459 if (fR0Enabled) 1461 1460 { 1462 rc = PDMDevHlpMMIORegisterR0(pDevIns, HPET_BASE, 0x1000, 0,1463 "hpetMMIOWrite", "hpetMMIORead" , NULL);1461 rc = PDMDevHlpMMIORegisterR0(pDevIns, HPET_BASE, 0x1000, NIL_RTR0PTR /*pvUser*/, 1462 "hpetMMIOWrite", "hpetMMIORead"); 1464 1463 AssertRCReturn(rc, rc); 1465 1464 -
trunk/src/VBox/Devices/PC/DevIoApic.cpp
r39135 r39136 637 637 s->pIoApicHlpRC = s->pIoApicHlpR3->pfnGetRCHelpers(pDevIns); 638 638 639 rc = PDMDevHlpMMIORegisterRC(pDevIns, 0xfec00000, 0x1000, 0, 640 "ioapicMMIOWrite", "ioapicMMIORead", NULL); 639 rc = PDMDevHlpMMIORegisterRC(pDevIns, 0xfec00000, 0x1000, NIL_RTRCPTR /*pvUser*/, "ioapicMMIOWrite", "ioapicMMIORead"); 641 640 if (RT_FAILURE(rc)) 642 641 return rc; … … 646 645 s->pIoApicHlpR0 = s->pIoApicHlpR3->pfnGetR0Helpers(pDevIns); 647 646 648 rc = PDMDevHlpMMIORegisterR0(pDevIns, 0xfec00000, 0x1000, 0,649 "ioapicMMIOWrite", "ioapicMMIORead" , NULL);647 rc = PDMDevHlpMMIORegisterR0(pDevIns, 0xfec00000, 0x1000, NIL_RTR0PTR /*pvUser*/, 648 "ioapicMMIOWrite", "ioapicMMIORead"); 650 649 if (RT_FAILURE(rc)) 651 650 return rc; -
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r39135 r39136 2506 2506 2507 2507 /* We use the assigned size here, because we currently only support page aligned MMIO ranges. */ 2508 rc = PDMDevHlpMMIORegister Ex(pDevIns, GCPhysAddress, cb, NULL /*pvUser*/,2509 2510 ahciMMIOWrite, ahciMMIORead, NULL, "AHCI");2508 rc = PDMDevHlpMMIORegister(pDevIns, GCPhysAddress, cb, NULL /*pvUser*/, 2509 IOMMMIO_FLAGS_READ_PASSTHRU | IOMMMIO_FLAGS_WRITE_PASSTHRU, 2510 ahciMMIOWrite, ahciMMIORead, "AHCI"); 2511 2511 if (RT_FAILURE(rc)) 2512 2512 return rc; … … 2514 2514 if (pThis->fR0Enabled) 2515 2515 { 2516 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, 0, 2517 "ahciMMIOWrite", "ahciMMIORead", NULL); 2516 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, NIL_RTR0PTR /*pvUser*/, "ahciMMIOWrite", "ahciMMIORead"); 2518 2517 if (RT_FAILURE(rc)) 2519 2518 return rc; … … 2522 2521 if (pThis->fGCEnabled) 2523 2522 { 2524 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, 0, 2525 "ahciMMIOWrite", "ahciMMIORead", NULL); 2523 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, "ahciMMIOWrite", "ahciMMIORead"); 2526 2524 if (RT_FAILURE(rc)) 2527 2525 return rc; -
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r39135 r39136 2082 2082 if (pThis->fR0Enabled) 2083 2083 { 2084 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, 0,2085 "buslogicMMIOWrite", "buslogicMMIORead" , NULL);2084 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, NIL_RTR0PTR /*pvUser*/, 2085 "buslogicMMIOWrite", "buslogicMMIORead"); 2086 2086 if (RT_FAILURE(rc)) 2087 2087 return rc; … … 2090 2090 if (pThis->fGCEnabled) 2091 2091 { 2092 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, 0,2093 "buslogicMMIOWrite", "buslogicMMIORead" , NULL);2092 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, 2093 "buslogicMMIOWrite", "buslogicMMIORead"); 2094 2094 if (RT_FAILURE(rc)) 2095 2095 return rc; -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r39135 r39136 3849 3849 if (pThis->fR0Enabled) 3850 3850 { 3851 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, 0,3852 "lsilogicMMIOWrite", "lsilogicMMIORead" , NULL);3851 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, NIL_RTR0PTR /*pvUser*/, 3852 "lsilogicMMIOWrite", "lsilogicMMIORead"); 3853 3853 if (RT_FAILURE(rc)) 3854 3854 return rc; … … 3857 3857 if (pThis->fGCEnabled) 3858 3858 { 3859 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, 0,3860 "lsilogicMMIOWrite", "lsilogicMMIORead" , NULL);3859 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, 3860 "lsilogicMMIOWrite", "lsilogicMMIORead"); 3861 3861 if (RT_FAILURE(rc)) 3862 3862 return rc; … … 3876 3876 if (pThis->fR0Enabled) 3877 3877 { 3878 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, 0,3879 "lsilogicDiagnosticWrite", "lsilogicDiagnosticRead" , NULL);3878 rc = PDMDevHlpMMIORegisterR0(pDevIns, GCPhysAddress, cb, NIL_RTR0PTR /*pvUser*/, 3879 "lsilogicDiagnosticWrite", "lsilogicDiagnosticRead"); 3880 3880 if (RT_FAILURE(rc)) 3881 3881 return rc; … … 3884 3884 if (pThis->fGCEnabled) 3885 3885 { 3886 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, 0,3887 "lsilogicDiagnosticWrite", "lsilogicDiagnosticRead" , NULL);3886 rc = PDMDevHlpMMIORegisterRC(pDevIns, GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, 3887 "lsilogicDiagnosticWrite", "lsilogicDiagnosticRead"); 3888 3888 if (RT_FAILURE(rc)) 3889 3889 return rc; -
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r39135 r39136 4884 4884 4885 4885 # if 1 /* this enabled / disabled GC/R0 stuff */ 4886 rc = PDMDevHlpMMIORegisterRC(pOhci->CTX_SUFF(pDevIns), 4887 GCPhysAddress, 4888 cb, 4889 0, 4890 "ohciWrite", 4891 "ohciRead", 4892 NULL); 4886 rc = PDMDevHlpMMIORegisterRC(pOhci->CTX_SUFF(pDevIns), GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, "ohciWrite", "ohciRead"); 4893 4887 if (RT_FAILURE(rc)) 4894 4888 return rc; 4895 4889 4896 rc = PDMDevHlpMMIORegisterR0(pOhci->CTX_SUFF(pDevIns), 4897 GCPhysAddress, 4898 cb, 4899 0, 4900 "ohciWrite", 4901 "ohciRead", 4902 NULL); 4890 rc = PDMDevHlpMMIORegisterR0(pOhci->CTX_SUFF(pDevIns), GCPhysAddress, cb, NIL_RTR0PTR /*pvUser*/, 4891 "ohciWrite", "ohciRead"); 4903 4892 if (RT_FAILURE(rc)) 4904 4893 return rc; -
trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp
r39135 r39136 343 343 { 344 344 rc = PDMDevHlpMMIORegisterR0(pDevIns, VMMDEV_TESTING_MMIO_BASE, VMMDEV_TESTING_MMIO_SIZE, NIL_RTR0PTR /*pvUser*/, 345 "vmmdevTestingMmioWrite", 346 "vmmdevTestingMmioRead", 347 NULL /*pszFill*/); 345 "vmmdevTestingMmioWrite", "vmmdevTestingMmioRead"); 348 346 AssertRCReturn(rc, rc); 349 347 rc = PDMDevHlpMMIORegisterRC(pDevIns, VMMDEV_TESTING_MMIO_BASE, VMMDEV_TESTING_MMIO_SIZE, NIL_RTRCPTR /*pvUser*/, 350 "vmmdevTestingMmioWrite", 351 "vmmdevTestingMmioRead", 352 NULL /*pszFill*/); 348 "vmmdevTestingMmioWrite", "vmmdevTestingMmioRead"); 353 349 AssertRCReturn(rc, rc); 354 350 } -
trunk/src/VBox/VMM/Makefile.kmk
r39134 r39136 29 29 ## DEFS variable that is picked up by all three VMM targets. 30 30 # Can be prepended to by setting it in LocalConfig.kmk 31 VMM_COMMON_DEFS ?= 31 VMM_COMMON_DEFS ?= VBOX_IN_VMM 32 32 ifdef VBOX_WITH_RAW_MODE 33 33 VMM_COMMON_DEFS += VBOX_WITH_RAW_MODE -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r39111 r39136 85 85 86 86 /** @interface_method_impl{PDMDEVHLPR3,pfnIOPortRegister} */ 87 static DECLCALLBACK(int) pdmR3DevHlp_IOPortRegister(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTHCPTR pvUser, PFNIOMIOPORTOUT pfnOut, PFNIOMIOPORTIN pfnIn,87 static DECLCALLBACK(int) pdmR3DevHlp_IOPortRegister(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTHCPTR pvUser, PFNIOMIOPORTOUT pfnOut, PFNIOMIOPORTIN pfnIn, 88 88 PFNIOMIOPORTOUTSTRING pfnOutStr, PFNIOMIOPORTINSTRING pfnInStr, const char *pszDesc) 89 89 { … … 111 111 112 112 /** @interface_method_impl{PDMDEVHLPR3,pfnIOPortRegisterRC} */ 113 static DECLCALLBACK(int) pdmR3DevHlp_IOPortRegisterRC(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTRCPTR pvUser,113 static DECLCALLBACK(int) pdmR3DevHlp_IOPortRegisterRC(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTRCPTR pvUser, 114 114 const char *pszOut, const char *pszIn, 115 115 const char *pszOutStr, const char *pszInStr, const char *pszDesc) … … 178 178 179 179 /** @interface_method_impl{PDMDEVHLPR3,pfnIOPortRegisterR0} */ 180 static DECLCALLBACK(int) pdmR3DevHlp_IOPortRegisterR0(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts, RTR0PTR pvUser,180 static DECLCALLBACK(int) pdmR3DevHlp_IOPortRegisterR0(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTR0PTR pvUser, 181 181 const char *pszOut, const char *pszIn, 182 182 const char *pszOutStr, const char *pszInStr, const char *pszDesc) … … 245 245 246 246 /** @interface_method_impl{PDMDEVHLPR3,pfnIOPortDeregister} */ 247 static DECLCALLBACK(int) pdmR3DevHlp_IOPortDeregister(PPDMDEVINS pDevIns, RTIOPORT Port, RT UINT cPorts)247 static DECLCALLBACK(int) pdmR3DevHlp_IOPortDeregister(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts) 248 248 { 249 249 PDMDEV_ASSERT_DEVINS(pDevIns); … … 260 260 261 261 /** @interface_method_impl{PDMDEVHLPR3,pfnMMIORegister} */ 262 static DECLCALLBACK(int) pdmR3DevHlp_MMIORegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, RTHCPTR pvUser,262 static DECLCALLBACK(int) pdmR3DevHlp_MMIORegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTHCPTR pvUser, 263 263 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill, 264 264 uint32_t fFlags, const char *pszDesc) … … 286 286 287 287 /** @interface_method_impl{PDMDEVHLPR3,pfnMMIORegisterRC} */ 288 static DECLCALLBACK(int) pdmR3DevHlp_MMIORegisterRC(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTGCPTR pvUser,288 static DECLCALLBACK(int) pdmR3DevHlp_MMIORegisterRC(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTRCPTR pvUser, 289 289 const char *pszWrite, const char *pszRead, const char *pszFill) 290 290 { … … 341 341 342 342 /** @interface_method_impl{PDMDEVHLPR3,pfnMMIORegisterR0} */ 343 static DECLCALLBACK(int) pdmR3DevHlp_MMIORegisterR0(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, RTR0PTR pvUser,343 static DECLCALLBACK(int) pdmR3DevHlp_MMIORegisterR0(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTR0PTR pvUser, 344 344 const char *pszWrite, const char *pszRead, const char *pszFill) 345 345 { … … 393 393 394 394 /** @interface_method_impl{PDMDEVHLPR3,pfnMMIODeregister} */ 395 static DECLCALLBACK(int) pdmR3DevHlp_MMIODeregister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange)395 static DECLCALLBACK(int) pdmR3DevHlp_MMIODeregister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange) 396 396 { 397 397 PDMDEV_ASSERT_DEVINS(pDevIns); … … 532 532 533 533 /** @interface_method_impl{PDMDEVHLPR3,pfnROMRegister} */ 534 static DECLCALLBACK(int) pdmR3DevHlp_ROMRegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange,534 static DECLCALLBACK(int) pdmR3DevHlp_ROMRegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, 535 535 const void *pvBinary, uint32_t cbBinary, uint32_t fFlags, const char *pszDesc) 536 536 { … … 549 549 550 550 /** @interface_method_impl{PDMDEVHLPR3,pfnROMProtectShadow} */ 551 static DECLCALLBACK(int) pdmR3DevHlp_ROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINTcbRange, PGMROMPROT enmProt)551 static DECLCALLBACK(int) pdmR3DevHlp_ROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, PGMROMPROT enmProt) 552 552 { 553 553 PDMDEV_ASSERT_DEVINS(pDevIns); … … 1432 1432 1433 1433 /** @interface_method_impl{PDMDEVHLPR3,pfnDriverAttach} */ 1434 static DECLCALLBACK(int) pdmR3DevHlp_DriverAttach(PPDMDEVINS pDevIns, RTUINTiLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc)1434 static DECLCALLBACK(int) pdmR3DevHlp_DriverAttach(PPDMDEVINS pDevIns, uint32_t iLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc) 1435 1435 { 1436 1436 PDMDEV_ASSERT_DEVINS(pDevIns); … … 1508 1508 1509 1509 /** @interface_method_impl{PDMDEVHLPR3,pfnQueueCreate} */ 1510 static DECLCALLBACK(int) pdmR3DevHlp_QueueCreate(PPDMDEVINS pDevIns, RTUINT cbItem, RTUINTcItems, uint32_t cMilliesInterval,1510 static DECLCALLBACK(int) pdmR3DevHlp_QueueCreate(PPDMDEVINS pDevIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 1511 1511 PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue) 1512 1512 { -
trunk/src/VBox/VMM/VMMR3/PDMQueue.cpp
r39078 r39136 57 57 * @param ppQueue Where to store the queue handle. 58 58 */ 59 static int pdmR3QueueCreate(PVM pVM, RTUINT cbItem, RTUINTcItems, uint32_t cMilliesInterval, bool fRZEnabled,59 static int pdmR3QueueCreate(PVM pVM, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, bool fRZEnabled, 60 60 const char *pszName, PPDMQUEUE *ppQueue) 61 61 { … … 65 65 * Validate input. 66 66 */ 67 if (cbItem < sizeof(PDMQUEUEITEMCORE)) 68 { 69 AssertMsgFailed(("cbItem=%d\n", cbItem)); 70 return VERR_INVALID_PARAMETER; 71 } 72 if (cItems < 1 || cItems >= 0x10000) 73 { 74 AssertMsgFailed(("cItems=%d valid:[1-65535]\n", cItems)); 75 return VERR_INVALID_PARAMETER; 76 } 67 AssertMsgReturn(cbItem >= sizeof(PDMQUEUEITEMCORE) && cbItem < _1M, ("cbItem=%zu\n", cbItem), VERR_OUT_OF_RANGE); 68 AssertMsgReturn(cItems >= 1 && cItems <= _64K, ("cItems=%u\n", cItems), VERR_OUT_OF_RANGE); 77 69 78 70 /* … … 211 203 * @thread Emulation thread only. 212 204 */ 213 VMMR3 DECL(int) PDMR3QueueCreateDevice(PVM pVM, PPDMDEVINS pDevIns, RTUINT cbItem, RTUINTcItems, uint32_t cMilliesInterval,214 PFNPDMQUEUEDEV pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue)205 VMMR3_INT_DECL(int) PDMR3QueueCreateDevice(PVM pVM, PPDMDEVINS pDevIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 206 PFNPDMQUEUEDEV pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue) 215 207 { 216 208 LogFlow(("PDMR3QueueCreateDevice: pDevIns=%p cbItem=%d cItems=%d cMilliesInterval=%d pfnCallback=%p fRZEnabled=%RTbool pszName=%s\n", … … 261 253 * @thread Emulation thread only. 262 254 */ 263 VMMR3 DECL(int) PDMR3QueueCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINTcItems, uint32_t cMilliesInterval,264 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue)255 VMMR3_INT_DECL(int) PDMR3QueueCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 256 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue) 265 257 { 266 258 LogFlow(("PDMR3QueueCreateDriver: pDrvIns=%p cbItem=%d cItems=%d cMilliesInterval=%d pfnCallback=%p pszName=%s\n", … … 311 303 * @thread Emulation thread only. 312 304 */ 313 VMMR3 DECL(int) PDMR3QueueCreateInternal(PVM pVM, RTUINT cbItem, RTUINTcItems, uint32_t cMilliesInterval,314 PFNPDMQUEUEINT pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue)305 VMMR3_INT_DECL(int) PDMR3QueueCreateInternal(PVM pVM, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 306 PFNPDMQUEUEINT pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue) 315 307 { 316 308 LogFlow(("PDMR3QueueCreateInternal: cbItem=%d cItems=%d cMilliesInterval=%d pfnCallback=%p fRZEnabled=%RTbool pszName=%s\n", … … 360 352 * @thread Emulation thread only. 361 353 */ 362 VMMR3DECL(int) PDMR3QueueCreateExternal(PVM pVM, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, PFNPDMQUEUEEXT pfnCallback, void *pvUser, const char *pszName, PPDMQUEUE *ppQueue) 354 VMMR3_INT_DECL(int) PDMR3QueueCreateExternal(PVM pVM, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, 355 PFNPDMQUEUEEXT pfnCallback, void *pvUser, const char *pszName, PPDMQUEUE *ppQueue) 363 356 { 364 357 LogFlow(("PDMR3QueueCreateExternal: cbItem=%d cItems=%d cMilliesInterval=%d pfnCallback=%p pszName=%s\n", cbItem, cItems, cMilliesInterval, pfnCallback, pszName)); … … 400 393 * @thread Emulation thread only. 401 394 */ 402 VMMR3 DECL(int) PDMR3QueueDestroy(PPDMQUEUE pQueue)395 VMMR3_INT_DECL(int) PDMR3QueueDestroy(PPDMQUEUE pQueue) 403 396 { 404 397 LogFlow(("PDMR3QueueDestroy: pQueue=%p\n", pQueue)); … … 503 496 * @thread Emulation thread only. 504 497 */ 505 VMMR3 DECL(int) PDMR3QueueDestroyDevice(PVM pVM, PPDMDEVINS pDevIns)498 VMMR3_INT_DECL(int) PDMR3QueueDestroyDevice(PVM pVM, PPDMDEVINS pDevIns) 506 499 { 507 500 LogFlow(("PDMR3QueueDestroyDevice: pDevIns=%p\n", pDevIns)); … … 555 548 * @thread Emulation thread only. 556 549 */ 557 VMMR3 DECL(int) PDMR3QueueDestroyDriver(PVM pVM, PPDMDRVINS pDrvIns)550 VMMR3_INT_DECL(int) PDMR3QueueDestroyDriver(PVM pVM, PPDMDRVINS pDrvIns) 558 551 { 559 552 LogFlow(("PDMR3QueueDestroyDriver: pDrvIns=%p\n", pDrvIns)); … … 660 653 * @thread Emulation thread only. 661 654 */ 662 VMMR3 DECL(void) PDMR3QueueFlushAll(PVM pVM)655 VMMR3_INT_DECL(void) PDMR3QueueFlushAll(PVM pVM) 663 656 { 664 657 VM_ASSERT_EMT(pVM);
Note:
See TracChangeset
for help on using the changeset viewer.