Changeset 7688 in vbox for trunk/include
- Timestamp:
- Apr 1, 2008 4:04:55 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29214
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/DevPCNet.h
r7682 r7688 34 34 35 35 #define PCNET_GUEST_INTERFACE_VERSION (1) 36 #define PCNET_GUEST_SHARED_MEMORY_SIZE _ 1M36 #define PCNET_GUEST_SHARED_MEMORY_SIZE _512K 37 37 #define PCNET_GUEST_TX_DESCRIPTOR_SIZE 16 38 38 #define PCNET_GUEST_RX_DESCRIPTOR_SIZE 16 … … 49 49 typedef struct 50 50 { 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; 55 53 /** Version (PCNET_GUEST_INTERFACE_VERSION). */ 56 54 uint32_t u32Version; 57 55 /** Flags (See PCNET_GUEST_FLAGS_*). */ 58 56 uint32_t fFlags; 57 /** align the following members to 64 bit */ 58 uint32_t u32Alignment; 59 59 60 /** @todo r=bird: You might consider aligning this on a 8(/16) byte boundrary to61 * avoid future uint64_t issues. */62 60 union 63 61 { … … 68 66 /** The size (in bytes) of the receive descriptor array. */ 69 67 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; 73 70 /** Offset of the receive descriptors relative to this header. */ 74 uint32_t u32OffRxDescriptors;71 uint32_t offRxDescriptors; 75 72 /** Offset of the transmit buffers relative to this header. */ 76 uint32_t u32OffTxBuffers;73 uint32_t offTxBuffers; 77 74 /** Offset of the receive buffers relative to this header. */ 78 uint32_t u32OffRxBuffers;75 uint32_t offRxBuffers; 79 76 } V1; 80 77 } V;
Note:
See TracChangeset
for help on using the changeset viewer.