Changeset 2268 in vbox
- Timestamp:
- Apr 20, 2007 12:57:49 PM (18 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/iom.h
r2225 r2268 230 230 * @param pszDesc Pointer to description string. This must not be freed. 231 231 */ 232 IOMDECL(int) IOMIOPortRegisterR0(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RT HCPTR pvUser,233 HCPTRTYPE(PFNIOMIOPORTOUT) pfnOutCallback, HCPTRTYPE(PFNIOMIOPORTIN) pfnInCallback,234 HCPTRTYPE(PFNIOMIOPORTOUTSTRING) pfnOutStrCallback, HCPTRTYPE(PFNIOMIOPORTINSTRING) pfnInStrCallback,232 IOMDECL(int) IOMIOPortRegisterR0(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RTR0PTR pvUser, 233 R0PTRTYPE(PFNIOMIOPORTOUT) pfnOutCallback, R0PTRTYPE(PFNIOMIOPORTIN) pfnInCallback, 234 R0PTRTYPE(PFNIOMIOPORTOUTSTRING) pfnOutStrCallback, R0PTRTYPE(PFNIOMIOPORTINSTRING) pfnInStrCallback, 235 235 const char *pszDesc); 236 236 … … 254 254 * @param pszDesc Pointer to description string. This must not be freed. 255 255 */ 256 IOMDECL(int) IOMMMIORegisterR0(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RT HCPTR pvUser,257 HCPTRTYPE(PFNIOMMMIOWRITE) pfnWriteCallback, HCPTRTYPE(PFNIOMMMIOREAD) pfnReadCallback,258 HCPTRTYPE(PFNIOMMMIOFILL) pfnFillCallback, const char *pszDesc);256 IOMDECL(int) IOMMMIORegisterR0(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser, 257 R0PTRTYPE(PFNIOMMMIOWRITE) pfnWriteCallback, R0PTRTYPE(PFNIOMMMIOREAD) pfnReadCallback, 258 R0PTRTYPE(PFNIOMMMIOFILL) pfnFillCallback, const char *pszDesc); 259 259 260 260 -
trunk/include/VBox/mm.h
r1480 r2268 419 419 #endif 420 420 421 422 421 /** 423 422 * Converts a HC address in the Hypervisor memory region to a GC address. -
trunk/include/VBox/pdm.h
r2246 r2268 4501 4501 * @param pszDesc Pointer to description string. This must not be freed. 4502 4502 */ 4503 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterR0,(PPDMDEVINS pDevIns, RTIOPORT Port, RTUINT cPorts, RT HCPTR pvUser,4503 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterR0,(PPDMDEVINS pDevIns, RTIOPORT Port, RTUINT cPorts, RTR0PTR pvUser, 4504 4504 const char *pszOut, const char *pszIn, 4505 4505 const char *pszOutStr, const char *pszInStr, const char *pszDesc)); … … 4576 4576 * @param pszDesc Pointer to description string. This must not be freed. 4577 4577 */ 4578 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RT HCPTR pvUser,4578 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser, 4579 4579 const char *pszWrite, const char *pszRead, const char *pszFill, 4580 4580 const char *pszDesc)); … … 5499 5499 5500 5500 /** Pointer the HC PDM Device API. */ 5501 HCPTRTYPE(PCPDMDEVHLP) pDevHlp;5501 R3PTRTYPE(PCPDMDEVHLP) pDevHlp; 5502 5502 /** Pointer the R0 PDM Device API. */ 5503 5503 R0PTRTYPE(PCPDMDEVHLPR0) pDevHlpR0; 5504 5504 /** Pointer to device registration structure. */ 5505 HCPTRTYPE(PCPDMDEVREG) pDevReg;5505 R3PTRTYPE(PCPDMDEVREG) pDevReg; 5506 5506 /** Configuration handle. */ 5507 HCPTRTYPE(PCFGMNODE) pCfgHandle;5507 R3PTRTYPE(PCFGMNODE) pCfgHandle; 5508 5508 /** Pointer to device instance data. */ 5509 HCPTRTYPE(void *) pvInstanceDataHC; 5509 R3PTRTYPE(void *) pvInstanceDataR3; 5510 /** Pointer to device instance data. */ 5511 R0PTRTYPE(void *) pvInstanceDataR0; 5510 5512 /** Pointer the GC PDM Device API. */ 5511 5513 GCPTRTYPE(PCPDMDEVHLPGC) pDevHlpGC; … … 5514 5516 #if HC_ARCH_BITS == 32 5515 5517 /* padding to make achInstanceData aligned at 16 byte boundrary. */ 5516 uint32_t au32Padding[HC_ARCH_BITS == 32 ? 2: 0];5518 uint32_t au32Padding[HC_ARCH_BITS == 32 ? 1 : 0]; 5517 5519 #endif 5518 5520 /** Device instance data. The size of this area is defined … … 5572 5574 #define PDMINS2DATA_GCPTR(pIns) ( (pIns)->pvInstanceDataGC ) 5573 5575 5574 /** @def PDMINS2DATA_ HCPTR5576 /** @def PDMINS2DATA_R3PTR 5575 5577 * Converts a PDM Device or Driver instance pointer to a HC pointer to the instance data. 5576 5578 */ 5577 #define PDMINS2DATA_HCPTR(pIns) ( (pIns)->pvInstanceDataHC ) 5579 #define PDMINS2DATA_R3PTR(pIns) ( (pIns)->pvInstanceDataR3 ) 5580 5581 /** @def PDMINS2DATA_R0PTR 5582 * Converts a PDM Device or Driver instance pointer to a R0 pointer to the instance data. 5583 */ 5584 #define PDMINS2DATA_R0PTR(pIns) ( (pIns)->pvInstanceDataR0 ) 5578 5585 5579 5586 /** @def PDMDEVINS_2_GCPTR … … 5582 5589 #define PDMDEVINS_2_GCPTR(pDevIns) ( (GCPTRTYPE(PPDMDEVINS))((RTGCUINTPTR)(pDevIns)->pvInstanceDataGC - RT_OFFSETOF(PDMDEVINS, achInstanceData)) ) 5583 5590 5584 /** @def PDMDEVINS_2_ HCPTR5591 /** @def PDMDEVINS_2_R3PTR 5585 5592 * Converts a PDM Device instance pointer a HC PDM Device instance pointer. 5586 5593 */ 5587 #define PDMDEVINS_2_HCPTR(pDevIns) ( (HCPTRTYPE(PPDMDEVINS))((RTHCUINTPTR)(pDevIns)->pvInstanceDataHC - RT_OFFSETOF(PDMDEVINS, achInstanceData)) ) 5594 #define PDMDEVINS_2_R3PTR(pDevIns) ( (HCPTRTYPE(PPDMDEVINS))((RTHCUINTPTR)(pDevIns)->pvInstanceDataR3 - RT_OFFSETOF(PDMDEVINS, achInstanceData)) ) 5595 5596 /** @def PDMDEVINS_2_R0PTR 5597 * Converts a PDM Device instance pointer a R0 PDM Device instance pointer. 5598 */ 5599 #define PDMDEVINS_2_R0PTR(pDevIns) ( (R0PTRTYPE(PPDMDEVINS))((RTR0UINTPTR)(pDevIns)->pvInstanceDataR0 - RT_OFFSETOF(PDMDEVINS, achInstanceData)) ) 5588 5600 5589 5601 … … 5640 5652 * @copydoc PDMDEVHLP::pfnIOPortRegisterR0 5641 5653 */ 5642 DECLINLINE(int) PDMDevHlpIOPortRegisterR0(PPDMDEVINS pDevIns, RTIOPORT Port, RTUINT cPorts, RT HCPTR pvUser,5654 DECLINLINE(int) PDMDevHlpIOPortRegisterR0(PPDMDEVINS pDevIns, RTIOPORT Port, RTUINT cPorts, RTR0PTR pvUser, 5643 5655 const char *pszOut, const char *pszIn, const char *pszOutStr, 5644 5656 const char *pszInStr, const char *pszDesc) … … 5669 5681 * @copydoc PDMDEVHLP::pfnMMIORegisterR0 5670 5682 */ 5671 DECLINLINE(int) PDMDevHlpMMIORegisterR0(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RT HCPTR pvUser,5683 DECLINLINE(int) PDMDevHlpMMIORegisterR0(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTR0PTR pvUser, 5672 5684 const char *pszWrite, const char *pszRead, const char *pszFill, const char *pszDesc) 5673 5685 { -
trunk/include/VBox/pgm.h
r1832 r2268 619 619 */ 620 620 PGMDECL(int) PGMHandlerPhysicalRegisterEx(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast, 621 HCPTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTHCPTR pvUserR3,622 R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0, RT HCPTR pvUserR0,621 R3PTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTR3PTR pvUserR3, 622 R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0, RTR0PTR pvUserR0, 623 623 GCPTRTYPE(PFNPGMGCPHYSHANDLER) pfnHandlerGC, RTGCPTR pvUserGC, 624 HCPTRTYPE(const char *) pszDesc);624 R3PTRTYPE(const char *) pszDesc); 625 625 626 626 /** … … 664 664 */ 665 665 PGMDECL(int) PGMHandlerPhysicalChangeCallbacks(PVM pVM, RTGCPHYS GCPhys, 666 HCPTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTHCPTR pvUserR3,667 R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0, RT HCPTR pvUserR0,666 R3PTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTR3PTR pvUserR3, 667 R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0, RTR0PTR pvUserR0, 668 668 GCPTRTYPE(PFNPGMGCPHYSHANDLER) pfnHandlerGC, RTGCPTR pvUserGC, 669 HCPTRTYPE(const char *) pszDesc);669 R3PTRTYPE(const char *) pszDesc); 670 670 671 671 /** … … 1447 1447 PGMR3DECL(int) PGMR3HandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast, 1448 1448 PFNPGMR3PHYSHANDLER pfnHandlerR3, void *pvUserR3, 1449 const char *pszModR0, const char *pszHandlerR0, RT HCPTR pvUserR0,1449 const char *pszModR0, const char *pszHandlerR0, RTR0PTR pvUserR0, 1450 1450 const char *pszModGC, const char *pszHandlerGC, RTGCPTR pvUserGC, const char *pszDesc); 1451 1451
Note:
See TracChangeset
for help on using the changeset viewer.