Changeset 44508 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Feb 1, 2013 12:46:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r44351 r44508 4 4 5 5 /* 6 * Copyright (C) 2006-201 1Oracle Corporation6 * Copyright (C) 2006-2013 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 109 109 110 110 /** 111 * Device I/O Control interface.112 *113 * This is used by external components, such as the COM interface, to114 * communicate with devices using a class wide interface or a device115 * specific interface.116 *117 * @returns VBox status code.118 * @param pDevIns Pointer to the device instance.119 * @param uFunction Function to perform.120 * @param pvIn Pointer to input data.121 * @param cbIn Size of input data.122 * @param pvOut Pointer to output data.123 * @param cbOut Size of output data.124 * @param pcbOut Where to store the actual size of the output data.125 *126 * @remarks Not used.127 */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 /** Pointer to a FNPDMDEVIOCTL() function. */132 typedef FNPDMDEVIOCTL *PFNPDMDEVIOCTL;133 134 /**135 111 * Power On notification. 136 112 * … … 305 281 * Critical section NOT entered. */ 306 282 PFNPDMDEVRELOCATE pfnRelocate; 307 /** I/O Control interface - optional. 308 * Not used. */ 309 PFNPDMDEVIOCTL pfnIOCtl; 283 /** Unused member. (Was pfnIOCtl.) */ 284 PFNRT pfnUnused; 310 285 /** Power on notification - optional. 311 286 * Critical section is entered. */ … … 504 479 * @param iDev The device number ((dev << 3) | function) the device should have on the bus. 505 480 * If negative, the pci bus device will assign one. 481 * @remarks Caller enters the PDM critical section. 506 482 */ 507 483 DECLR3CALLBACKMEMBER(int, pfnRegisterR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, const char *pszName, int iDev)); … … 514 490 * @param pPciDev The PCI device structure. 515 491 * @param pMsiReg MSI registration structure 492 * @remarks Caller enters the PDM critical section. 516 493 */ 517 494 DECLR3CALLBACKMEMBER(int, pfnRegisterMsiR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PPDMMSIREG pMsiReg)); … … 527 504 * @param iType PCI_ADDRESS_SPACE_MEM, PCI_ADDRESS_SPACE_IO or PCI_ADDRESS_SPACE_MEM_PREFETCH. 528 505 * @param pfnCallback Callback for doing the mapping. 506 * @remarks Caller enters the PDM critical section. 529 507 */ 530 508 DECLR3CALLBACKMEMBER(int, pfnIORegionRegisterR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, int iRegion, uint32_t cbRegion, PCIADDRESSSPACE enmType, PFNPCIIOREGIONMAP pfnCallback)); … … 543 521 * PCI config write function. This way, user can decide when (and if) 544 522 * to call default PCI config write function. Can be NULL. 523 * @remarks Caller enters the PDM critical section. 545 524 * @thread EMT 546 525 */ … … 556 535 * @param iLevel IRQ level. See the PDM_IRQ_LEVEL_* \#defines. 557 536 * @param uTagSrc The IRQ tag and source (for tracing). 537 * @remarks Caller enters the PDM critical section. 558 538 */ 559 539 DECLR3CALLBACKMEMBER(void, pfnSetIrqR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, int iIrq, int iLevel, uint32_t uTagSrc)); 560 561 /**562 * Saves a state of the PCI device.563 *564 * @returns VBox status code.565 * @param pDevIns Device instance of the PCI Bus.566 * @param pPciDev Pointer to PCI device.567 * @param pSSMHandle The handle to save the state to.568 */569 DECLR3CALLBACKMEMBER(int, pfnSaveExecR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PSSMHANDLE pSSMHandle));570 571 /**572 * Loads a saved PCI device state.573 *574 * @returns VBox status code.575 * @param pDevIns Device instance of the PCI Bus.576 * @param pPciDev Pointer to PCI device.577 * @param pSSMHandle The handle to the saved state.578 */579 DECLR3CALLBACKMEMBER(int, pfnLoadExecR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PSSMHANDLE pSSMHandle));580 540 581 541 /** … … 586 546 * @returns VBox status. 587 547 * @param pDevIns Device instance of the first bus. 548 * @remarks Caller enters the PDM critical section. 588 549 */ 589 550 DECLR3CALLBACKMEMBER(int, pfnFakePCIBIOSR3,(PPDMDEVINS pDevIns)); … … 600 561 601 562 /** Current PDMPCIBUSREG version number. */ 602 #define PDM_PCIBUSREG_VERSION PDM_VERSION_MAKE(0xfffe, 3, 0)563 #define PDM_PCIBUSREG_VERSION PDM_VERSION_MAKE(0xfffe, 4, 0) 603 564 604 565 /**
Note:
See TracChangeset
for help on using the changeset viewer.