VirtualBox

Changeset 28777 in vbox for trunk/include


Ignore:
Timestamp:
Apr 26, 2010 7:45:16 PM (15 years ago)
Author:
vboxsync
Message:

iprt: added CachePolicy parameter to RTR0MemObjEnterPhys()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/memobj.h

    r26558 r28777  
    222222RTR0DECL(int) RTR0MemObjAllocPhysNC(PRTR0MEMOBJ pMemObj, size_t cb, RTHCPHYS PhysHighest);
    223223
     224/** Memory cache policy for RTR0MemObjEnterPhys.
     225 * @{
     226 */
     227/** Default caching policy -- don't care. */
     228#define RTMEM_CACHE_POLICY_DONT_CARE    0
     229/** MMIO caching policy -- uncachable. */
     230#define RTMEM_CACHE_POLICY_MMIO         1
     231/** @} */
     232
    224233/**
    225234 * Creates a page aligned, contiguous, physical memory object.
     
    232241 *                          nearest page boundrary.
    233242 * @param   cb              The size of the object in bytes. This is rounded up to nearest page boundrary.
    234  */
    235 RTR0DECL(int) RTR0MemObjEnterPhys(PRTR0MEMOBJ pMemObj, RTHCPHYS Phys, size_t cb);
     243 * @param   CachePolicy     One of the RTMEM_CACHE_XXX modes.
     244 */
     245RTR0DECL(int) RTR0MemObjEnterPhys(PRTR0MEMOBJ pMemObj, RTHCPHYS Phys, size_t cb, unsigned CachePolicy);
    236246
    237247/**
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