VirtualBox

Changeset 6854 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 7, 2008 7:24:14 PM (17 years ago)
Author:
vboxsync
Message:

All the new ROM stuff. Had to change PGMROMPAGE a bit to make it easier to work with wrt. mapping.

File:
1 edited

Legend:

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

    r6837 r6854  
    289289    PGMROMPROT_READ_RAM_WRITE_IGNORE,
    290290    /** Read from the shadow ROM page, ignore writes.
    291      * Map the shadow page read-write, no access handler. */
     291     * Map the shadow page read-write, disabled write access handler. */
    292292    PGMROMPROT_READ_RAM_WRITE_RAM,
    293293    /** The end of valid values. */
     
    296296    PGMROMPROT_32BIT_HACK = 0x7fffffff
    297297} PGMROMPROT;
     298
     299/**
     300 * Is the ROM mapped (true) or is the shadow RAM mapped (false).
     301 *
     302 * @returns boolean.
     303 * @param   enmProt     The PGMROMPROT value, must be valid.
     304 */
     305#define PGMROMPROT_IS_ROM(enmProt) \
     306    (    (enmProt) == PGMROMPROT_READ_ROM_WRITE_IGNORE \
     307      || (enmProt) == PGMROMPROT_READ_ROM_WRITE_RAM )
    298308
    299309
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