VirtualBox

Changeset 17251 in vbox for trunk/include/VBox/pdmdev.h


Ignore:
Timestamp:
Mar 2, 2009 1:55:31 PM (16 years ago)
Author:
vboxsync
Message:

VMM,REM,DevPcArch: VBOX_WITH_NEW_PHYS_CODE changes.

File:
1 edited

Legend:

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

    r16021 r17251  
    4141#include <VBox/cfgm.h>
    4242#include <VBox/dbgf.h>
    43 #include <VBox/mm.h>
     43#ifndef VBOX_WITH_NEW_PHYS_CODE
     44# include <VBox/mm.h>
     45#endif
    4446#include <VBox/err.h>
    4547#include <VBox/pci.h>
     
    26602662
    26612663    /**
    2662      * Write protects a shadow ROM mapping.
    2663      *
    2664      * This is intented for use by the system BIOS or by the device that
    2665      * employs a shadow ROM BIOS, so that the shadow ROM mapping can be
    2666      * write protected once the POST is over.
     2664     * Changes the protection of shadowed ROM mapping.
     2665     *
     2666     * This is intented for use by the system BIOS, chipset or device in question to
     2667     * change the protection of shadowed ROM code after init and on reset.
    26672668     *
    26682669     * @param   pDevIns     Device instance.
    2669      * @param   GCPhysStart Where the shadow ROM mapping starts.
    2670      * @param   cbRange     The size of the shadow ROM mapping.
    2671      */
    2672     DECLR3CALLBACKMEMBER(int, pfnROMProtectShadow,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange));
     2670     * @param   GCPhysStart Where the mapping starts.
     2671     * @param   cbRange     The size of the mapping.
     2672     * @param   enmProt     The new protection type.
     2673     */
     2674    DECLR3CALLBACKMEMBER(int, pfnROMProtectShadow,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, PGMROMPROT enmProt));
    26732675
    26742676    /**
     
    32943296 * @copydoc PDMDEVHLPR3::pfnROMProtectShadow
    32953297 */
    3296 DECLINLINE(int) PDMDevHlpROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange)
    3297 {
    3298     return pDevIns->pDevHlpR3->pfnROMProtectShadow(pDevIns, GCPhysStart, cbRange);
     3298DECLINLINE(int) PDMDevHlpROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, PGMROMPROT enmProt)
     3299{
     3300    return pDevIns->pDevHlpR3->pfnROMProtectShadow(pDevIns, GCPhysStart, cbRange, enmProt);
    32993301}
    33003302
     
    35113513}
    35123514
     3515#ifndef VBOX_WITH_NEW_PHYS_CODE
    35133516/**
    35143517 * @copydoc PDMDEVHLPR3::pfnPhysReserve
     
    35183521    return pDevIns->pDevHlpR3->pfnPhysReserve(pDevIns, GCPhys, cbRange, pszDesc);
    35193522}
     3523#endif
    35203524
    35213525/**
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