VirtualBox

Changeset 44573 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Feb 6, 2013 3:24:36 PM (12 years ago)
Author:
vboxsync
Message:

IOM: Fixed IOMMMIO_FLAGS_WRITE_ONLY_DWORD and added IOMMMIO_FLAGS_WRITE_ONLY_DWORD_QWORD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/iom.h

    r44564 r44573  
    121121 * @remarks E1000 */
    122122#define IOMMMIO_FLAGS_WRITE_ONLY_DWORD                  UINT32_C(0x00000050)
     123/** All write accesses are DWORD (32-bit) or QWORD (64-bit) sized and aligned,
     124 * attempts at other accesses are ignored.
     125 * @remarks Seemingly required by AHCI (although I doubt it's _really_
     126 *          required as EM/REM doesn't do the right thing in ring-3 anyway,
     127 *          esp. not in raw-mode). */
     128#define IOMMMIO_FLAGS_WRITE_ONLY_DWORD_QWORD            UINT32_C(0x00000060)
    123129/** The read access mode mask. */
    124130#define IOMMMIO_FLAGS_WRITE_MODE                        UINT32_C(0x00000070)
     
    136142#define IOMMMIO_FLAGS_VALID_MASK                        UINT32_C(0x00000373)
    137143/** @} */
     144
     145/**
     146 * Checks whether the write mode allows aligned QWORD accesses to be passed
     147 * thru to the device handler.
     148 * @param   a_fFlags        The MMIO handler flags.
     149 * @remarks The current implementation makes ASSUMPTIONS about the mode values!
     150 */
     151#define IOMMMIO_DOES_WRITE_MODE_ALLOW_QWORD(a_fFlags)   RT_BOOL((a_fFlags) & UINT32_C(0x00000020))
    138152
    139153
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