VirtualBox

Changeset 34163 in vbox for trunk/include


Ignore:
Timestamp:
Nov 18, 2010 12:16:43 PM (14 years ago)
Author:
vboxsync
Message:

PGMR3PhysRomRegister/PDMDevHlpROMRegister: Added cbBinary argument to allow specifying a binary smaller than the range (no alignment restrictions either). Untested.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r33799 r34163  
    22792279     *                              Must be page aligned!
    22802280     * @param   pvBinary            Pointer to the binary data backing the ROM image.
    2281      *                              This must be cbRange bytes big.
    2282      *                              It will be copied and doesn't have to stick around if fShadow is clear.
     2281     * @param   cbBinary            The size of the binary pointer.  This must
     2282     *                              be equal or smaller than @a cbRange.
    22832283     * @param   fFlags              Shadow ROM flags, PGMPHYS_ROM_FLAGS_* in pgm.h.
    22842284     * @param   pszDesc             Pointer to description string. This must not be freed.
     
    22872287     *          manually from the device yet. At present I doubt we need such features...
    22882288     */
    2289     DECLR3CALLBACKMEMBER(int, pfnROMRegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, const void *pvBinary, uint32_t fFlags, const char *pszDesc));
     2289    DECLR3CALLBACKMEMBER(int, pfnROMRegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange,
     2290                                              const void *pvBinary, uint32_t cbBinary, uint32_t fFlags, const char *pszDesc));
    22902291
    22912292    /**
     
    39763977 * @copydoc PDMDEVHLPR3::pfnROMRegister
    39773978 */
    3978 DECLINLINE(int) PDMDevHlpROMRegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange, const void *pvBinary, uint32_t fFlags, const char *pszDesc)
    3979 {
    3980     return pDevIns->pHlpR3->pfnROMRegister(pDevIns, GCPhysStart, cbRange, pvBinary, fFlags, pszDesc);
     3979DECLINLINE(int) PDMDevHlpROMRegister(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange,
     3980                                     const void *pvBinary, uint32_t cbBinary, uint32_t fFlags, const char *pszDesc)
     3981{
     3982    return pDevIns->pHlpR3->pfnROMRegister(pDevIns, GCPhysStart, cbRange, pvBinary, cbBinary, fFlags, pszDesc);
    39813983}
    39823984
  • trunk/include/VBox/pgm.h

    r33540 r34163  
    492492
    493493VMMR3DECL(int)      PGMR3PhysRomRegister(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTGCPHYS cb,
    494                                          const void *pvBinary, uint32_t fFlags, const char *pszDesc);
     494                                         const void *pvBinary, uint32_t cbBinary, uint32_t fFlags, const char *pszDesc);
    495495VMMR3DECL(int)      PGMR3PhysRomProtect(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, PGMROMPROT enmProt);
    496496VMMR3DECL(int)      PGMR3PhysRegister(PVM pVM, void *pvRam, RTGCPHYS GCPhys, size_t cb, unsigned fFlags, const SUPPAGE *paPages, const char *pszDesc);
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