Changeset 17251 in vbox for trunk/include/VBox/pdmdev.h
- Timestamp:
- Mar 2, 2009 1:55:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdev.h
r16021 r17251 41 41 #include <VBox/cfgm.h> 42 42 #include <VBox/dbgf.h> 43 #include <VBox/mm.h> 43 #ifndef VBOX_WITH_NEW_PHYS_CODE 44 # include <VBox/mm.h> 45 #endif 44 46 #include <VBox/err.h> 45 47 #include <VBox/pci.h> … … 2660 2662 2661 2663 /** 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. 2667 2668 * 2668 2669 * @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)); 2673 2675 2674 2676 /** … … 3294 3296 * @copydoc PDMDEVHLPR3::pfnROMProtectShadow 3295 3297 */ 3296 DECLINLINE(int) PDMDevHlpROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange )3297 { 3298 return pDevIns->pDevHlpR3->pfnROMProtectShadow(pDevIns, GCPhysStart, cbRange );3298 DECLINLINE(int) PDMDevHlpROMProtectShadow(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, PGMROMPROT enmProt) 3299 { 3300 return pDevIns->pDevHlpR3->pfnROMProtectShadow(pDevIns, GCPhysStart, cbRange, enmProt); 3299 3301 } 3300 3302 … … 3511 3513 } 3512 3514 3515 #ifndef VBOX_WITH_NEW_PHYS_CODE 3513 3516 /** 3514 3517 * @copydoc PDMDEVHLPR3::pfnPhysReserve … … 3518 3521 return pDevIns->pDevHlpR3->pfnPhysReserve(pDevIns, GCPhys, cbRange, pszDesc); 3519 3522 } 3523 #endif 3520 3524 3521 3525 /**
Note:
See TracChangeset
for help on using the changeset viewer.