VirtualBox

Ignore:
Timestamp:
May 7, 2024 8:13:16 AM (10 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163054
Message:

VBox/vmm/pdmnetifs.h: Change PDMSCATTERGATHER::fFlags from size_t to uint64_t to avoid ambiguity when ~PDMSCATTERGATHER_FLAGS_XXX like in PDMScatterGatherSetOwner. bugref:3409

File:
1 edited

Legend:

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

    r99964 r104525  
    6868{
    6969    /** Flags. */
    70     size_t          fFlags;
     70    uint64_t        fFlags;
    7171    /** The number of bytes used.
    7272     * This is cleared on alloc and set by the user. */
     
    9595/** @name PDMSCATTERGATHER::fFlags
    9696 * @{  */
    97 /** Magic value. */
    98 #define PDMSCATTERGATHER_FLAGS_MAGIC        UINT32_C(0xb1b10000)
     97/** Magic value (Andrzej Sapkowski). */
     98#define PDMSCATTERGATHER_FLAGS_MAGIC        UINT64_C(0x19480621b1b20000)
    9999/** Magic mask. */
    100 #define PDMSCATTERGATHER_FLAGS_MAGIC_MASK   UINT32_C(0xffff0000)
     100#define PDMSCATTERGATHER_FLAGS_MAGIC_MASK   UINT64_C(0xffffffffffff0000)
    101101/** Owned by owner number 1. */
    102 #define PDMSCATTERGATHER_FLAGS_OWNER_1      UINT32_C(0x00000001)
     102#define PDMSCATTERGATHER_FLAGS_OWNER_1      UINT64_C(0x0000000000000001)
    103103/** Owned by owner number 2. */
    104 #define PDMSCATTERGATHER_FLAGS_OWNER_2      UINT32_C(0x00000002)
     104#define PDMSCATTERGATHER_FLAGS_OWNER_2      UINT64_C(0x0000000000000002)
    105105/** Owned by owner number 3. */
    106 #define PDMSCATTERGATHER_FLAGS_OWNER_3      UINT32_C(0x00000002)
     106#define PDMSCATTERGATHER_FLAGS_OWNER_3      UINT64_C(0x0000000000000002)
    107107/** Owner mask. */
    108 #define PDMSCATTERGATHER_FLAGS_OWNER_MASK   UINT32_C(0x00000003)
     108#define PDMSCATTERGATHER_FLAGS_OWNER_MASK   UINT64_C(0x0000000000000003)
    109109/** Mask of flags available to general use.
    110110 * The parties using the SG must all agree upon how to use these of course. */
    111 #define PDMSCATTERGATHER_FLAGS_AVL_MASK     UINT32_C(0x0000f000)
     111#define PDMSCATTERGATHER_FLAGS_AVL_MASK     UINT64_C(0x000000000000f000)
    112112/** Flags reserved for future use, MBZ. */
    113 #define PDMSCATTERGATHER_FLAGS_RVD_MASK     UINT32_C(0x00000ff8)
     113#define PDMSCATTERGATHER_FLAGS_RVD_MASK     UINT64_C(0x0000000000000ff8)
    114114/** @} */
    115115
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