VirtualBox

Changeset 7688 in vbox for trunk/include


Ignore:
Timestamp:
Apr 1, 2008 4:04:55 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29214
Message:

PCnet: some cleanup, use host-provided RX buffers but don't access them directly yet

File:
1 edited

Legend:

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

    r7682 r7688  
    3434
    3535#define PCNET_GUEST_INTERFACE_VERSION         (1)
    36 #define PCNET_GUEST_SHARED_MEMORY_SIZE        _1M
     36#define PCNET_GUEST_SHARED_MEMORY_SIZE        _512K
    3737#define PCNET_GUEST_TX_DESCRIPTOR_SIZE        16
    3838#define PCNET_GUEST_RX_DESCRIPTOR_SIZE        16
     
    4949typedef struct
    5050{
    51     /** The size of the shared memory.
    52      * This is sizeof(PCNETGUESTSHAREDMEMORY) not PCNET_GUEST_SHARED_MEMORY_SIZE as one would expect.
    53      * @todo r=bird: why not rename to cbHdr or something more descriptive? */
    54     uint32_t u32Size;
     51    /** The size of the shared memory. */
     52    uint32_t cbSize;
    5553    /** Version (PCNET_GUEST_INTERFACE_VERSION). */
    5654    uint32_t u32Version;
    5755    /** Flags (See PCNET_GUEST_FLAGS_*). */
    5856    uint32_t fFlags;
     57    /** align the following members to 64 bit */
     58    uint32_t u32Alignment;
    5959
    60     /** @todo r=bird: You might consider aligning this on a 8(/16) byte boundrary to
    61      * avoid future uint64_t issues. */
    6260    union
    6361    {
     
    6866            /** The size (in bytes) of the receive descriptor array. */
    6967            uint32_t    cbRxDescriptors;
    70             /** Offset of the transmit descriptors relative to this header.
    71              * @todo r=bird: offTxDescriptors is IMO a better name. */
    72             uint32_t    u32OffTxDescriptors;
     68            /** Offset of the transmit descriptors relative to this header. */
     69            uint32_t    offTxDescriptors;
    7370            /** Offset of the receive descriptors relative to this header. */
    74             uint32_t    u32OffRxDescriptors;
     71            uint32_t    offRxDescriptors;
    7572            /** Offset of the transmit buffers relative to this header. */
    76             uint32_t    u32OffTxBuffers;
     73            uint32_t    offTxBuffers;
    7774            /** Offset of the receive buffers relative to this header. */
    78             uint32_t    u32OffRxBuffers;
     75            uint32_t    offRxBuffers;
    7976        } V1;
    8077    } V;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette