VirtualBox

Changeset 41847 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 20, 2012 1:43:46 PM (13 years ago)
Author:
vboxsync
Message:

PDM/PCI: Added pdm*DevHlp_PCIPhysRead/Write callbacks, renamed VINF_PGM_PCI_PHYS_*_BM_DISABLED to VINF_PDM_PCI_PHYS_*_BM_DISABLED.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/err.h

    r41825 r41847  
    569569/** PCI passthru is not supported by this build. */
    570570#define VERR_PGM_PCI_PASSTHRU_MISCONFIG         (-1682)
    571 /** PCI physical read with bus mastering disabled. */
    572 #define VINF_PGM_PCI_PHYS_READ_BM_DISABLED      (1683)
    573 /** PCI physical write with bus mastering disabled. */
    574 #define VINF_PGM_PCI_PHYS_WRITE_BM_DISABLED     (1684)
    575571/** @} */
    576572
     
    12151211 * misconfiguration or in rare cases a buggy pci device. */
    12161212#define VERR_PDM_NO_PCI_BUS                         (-2833)
     1213/** PCI physical read with bus mastering disabled. */
     1214#define VINF_PDM_PCI_PHYS_READ_BM_DISABLED          (2833)
    12171215/** The device is not a registered PCI device and thus cannot
    12181216 * perform any PCI operations. The device forgot to register it self. */
    12191217#define VERR_PDM_NOT_PCI_DEVICE                     (-2834)
     1218/** PCI physical write with bus mastering disabled. */
     1219#define VINF_PDM_PCI_PHYS_WRITE_BM_DISABLED         (2834)
    12201220
    12211221/** The version of the device registration structure is unknown
  • trunk/include/VBox/vmm/pdmdev.h

    r41826 r41847  
    21892189typedef struct PDMDEVHLPR3
    21902190{
    2191     /** Structure version. PDM_DEVHLP_VERSION defines the current version. */
     2191    /** Structure version. PDM_DEVHLPR3_VERSION defines the current version. */
    21922192    uint32_t                        u32Version;
    21932193
     
    28572857    DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterV,(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility,
    28582858                                                 STAMUNIT enmUnit, const char *pszDesc, const char *pszName, va_list args));
     2859
     2860    /**
     2861     * Reads data via bus mastering, if enabled. If no bus mastering is available,
     2862     * this function does nothing and returns VINF_PGM_PCI_PHYS_READ_BM_DISABLED.
     2863     *
     2864     * @return  IPRT status code.
     2865     */
     2866    DECLR3CALLBACKMEMBER(int, pfnPCIPhysRead,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead));
     2867
     2868    /**
     2869     * Writes data via bus mastering, if enabled. If no bus mastering is available,
     2870     * this function does nothing and returns VINF_PGM_PCI_PHYS_WRITE_BM_DISABLED.
     2871     *
     2872     * @return  IPRT status code.
     2873     */
     2874    DECLR3CALLBACKMEMBER(int, pfnPCIPhysWrite,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite));
    28592875
    28602876    /**
     
    35113527    /** @} */
    35123528
    3513     /** Just a safety precaution. (PDM_DEVHLP_VERSION) */
     3529    /** Just a safety precaution. (PDM_DEVHLPR3_VERSION) */
    35143530    uint32_t                        u32TheEnd;
    35153531} PDMDEVHLPR3;
     
    35213537
    35223538/** Current PDMDEVHLPR3 version number. */
    3523 #define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE(0xffe7, 8, 0)
     3539#define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE(0xffe7, 9, 0)
    35243540
    35253541
     
    35313547    /** Structure version. PDM_DEVHLPRC_VERSION defines the current version. */
    35323548    uint32_t                    u32Version;
     3549
     3550    /**
     3551     * Reads data via bus mastering, if enabled. If no bus mastering is available,
     3552     * this function does nothing and returns VINF_PGM_PCI_PHYS_READ_BM_DISABLED.
     3553     *
     3554     * @return  IPRT status code.
     3555     */
     3556    DECLRCCALLBACKMEMBER(int, pfnPCIDevPhysRead,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead));
     3557
     3558    /**
     3559     * Writes data via bus mastering, if enabled. If no bus mastering is available,
     3560     * this function does nothing and returns VINF_PGM_PCI_PHYS_WRITE_BM_DISABLED.
     3561     *
     3562     * @return  IPRT status code.
     3563     */
     3564    DECLRCCALLBACKMEMBER(int, pfnPCIDevPhysWrite,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite));
    35333565
    35343566    /**
     
    37123744
    37133745/** Current PDMDEVHLP version number. */
    3714 #define PDM_DEVHLPRC_VERSION                    PDM_VERSION_MAKE(0xffe6, 2, 0)
     3746#define PDM_DEVHLPRC_VERSION                    PDM_VERSION_MAKE(0xffe6, 3, 0)
    37153747
    37163748
     
    37223754    /** Structure version. PDM_DEVHLPR0_VERSION defines the current version. */
    37233755    uint32_t                    u32Version;
     3756
     3757    /**
     3758     * Reads data via bus mastering, if enabled. If no bus mastering is available,
     3759     * this function does nothing and returns VINF_PGM_PCI_PHYS_READ_BM_DISABLED.
     3760     *
     3761     * @return  IPRT status code.
     3762     */
     3763    DECLR0CALLBACKMEMBER(int, pfnPCIPhysRead,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead));
     3764
     3765    /**
     3766     * Writes data via bus mastering, if enabled. If no bus mastering is available,
     3767     * this function does nothing and returns VINF_PGM_PCI_PHYS_WRITE_BM_DISABLED.
     3768     *
     3769     * @return  IPRT status code.
     3770     */
     3771    DECLR0CALLBACKMEMBER(int, pfnPCIPhysWrite,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite));
    37243772
    37253773    /**
     
    39113959
    39123960/** Current PDMDEVHLP version number. */
    3913 #define PDM_DEVHLPR0_VERSION                    PDM_VERSION_MAKE(0xffe5, 2, 0)
     3961#define PDM_DEVHLPR0_VERSION                    PDM_VERSION_MAKE(0xffe5, 3, 0)
    39143962
    39153963
     
    46414689              PCIDevGetVendorId(pPciDev), PCIDevGetDeviceId(pPciDev), pvBuf, cbRead));
    46424690#endif
    4643         return VINF_PGM_PCI_PHYS_READ_BM_DISABLED;
     4691        return VINF_PDM_PCI_PHYS_READ_BM_DISABLED;
    46444692    }
    46454693
     
    46654713              PCIDevGetVendorId(pPciDev), PCIDevGetDeviceId(pPciDev), pvBuf, cbWrite));
    46664714#endif
    4667         return VINF_PGM_PCI_PHYS_WRITE_BM_DISABLED;
     4715        return VINF_PDM_PCI_PHYS_WRITE_BM_DISABLED;
    46684716    }
    46694717
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette