VirtualBox

vbox的更動 13368 路徑 trunk/include


忽略:
時間撮記:
2008-10-17 上午11:35:13 (16 年 以前)
作者:
vboxsync
訊息:

Started with IOMR3MMIORegisterR3 extension for MMIO ranges backed by RAM, so it will be possible to turn off protection temporarily.

位置:
trunk/include/VBox
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/iom.h

    r12989 r13368  
    8585                            )
    8686
     87/**
     88 * MMIO type
     89 */
     90typedef enum IOMMMIOTYPE
     91{
     92    /** 'Normal' MMIO. Reads and writes always fault. */
     93    IOMMMIOTYPE_MMIO = 1,
     94    /** MMIO region backed by memory; protection can be turned off temporarily. */
     95    IOMMMIOTYPE_MMIO_WITH_RAM_BACKING,
     96    /** The usual 32-bit type size hack. */
     97    IOMMMIOTYPE_32BIT_HACK = 0x7fffffff
     98} IOMMMIOTYPE;
    8799
    88100/**
     
    250262VMMR3DECL(int)  IOMR3IOPortDeregister(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts);
    251263
    252 VMMR3DECL(int)  IOMR3MMIORegisterR3(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
     264VMMR3DECL(int)  IOMR3MMIORegisterR3(PVM pVM, PPDMDEVINS pDevIns, IOMMMIOTYPE enmMMIOType, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
    253265                                    R3PTRTYPE(PFNIOMMMIOWRITE) pfnWriteCallback,
    254266                                    R3PTRTYPE(PFNIOMMMIOREAD)  pfnReadCallback,
  • trunk/include/VBox/pdmdev.h

    r13367 r13368  
    27762776     * @returns VBox status.
    27772777     * @param   pDevIns             The device instance to register the MMIO with.
     2778     * @param   enmMMIOType         MMIO Type
    27782779     * @param   GCPhysStart         First physical address in the range.
    27792780     * @param   cbRange             The size of the range (in bytes).
     
    27842785     * @param   pszDesc             Pointer to description string. This must not be freed.
    27852786     */
    2786     DECLR3CALLBACKMEMBER(int, pfnMMIORegisterEx,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
     2787    DECLR3CALLBACKMEMBER(int, pfnMMIORegisterEx,(PPDMDEVINS pDevIns, IOMMMIOTYPE enmMMIOType, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
    27872788                                                 PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill,
    27882789                                                 const char *pszDesc));
     
    32673268 * @copydoc PDMDEVHLPR3::pfnMMIORegisterEx
    32683269 */
    3269 DECLINLINE(int) PDMDevHlpMMIORegisterEx(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
     3270DECLINLINE(int) PDMDevHlpMMIORegisterEx(PPDMDEVINS pDevIns, IOMMMIOTYPE enmMMIOType, RTGCPHYS GCPhysStart, RTUINT cbRange, RTHCPTR pvUser,
    32703271                                        PFNIOMMMIOWRITE pfnWrite, PFNIOMMMIOREAD pfnRead, PFNIOMMMIOFILL pfnFill,
    32713272                                        const char *pszDesc)
    32723273{
    3273     return pDevIns->pDevHlpR3->pfnMMIORegisterEx(pDevIns, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
     3274    return pDevIns->pDevHlpR3->pfnMMIORegisterEx(pDevIns, enmMMIOType, GCPhysStart, cbRange, pvUser, pfnWrite, pfnRead, pfnFill, pszDesc);
    32743275}
    32753276
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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