]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Fri, 12 Apr 2013 19:49:31 +0000 (12:49 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Wed, 17 Apr 2013 19:16:54 +0000 (12:16 -0700)
`Signed-off-by: Dmitry Torokhov <dtor@vmware.com>

open-vm-tools/modules/shared/vmxnet/vmxnet2_def.h

index 756f291d9dd3acb8c6c228b0dec9c2dbcb04b0cb..23b36e2ee8788f5a3498b3481c80e1e87fe896e5 100644 (file)
@@ -173,7 +173,11 @@ typedef struct Vmxnet2_TxRingEntry {
  * functions below to be used.
  */
 typedef struct Vmxnet2_RxRingInfo {
+#ifdef VMX86_VMX
+   PA                      basePA;     /* starting PA of the ring */
+#else
    Vmxnet2_RxRingEntry    *base;       /* starting addr of the ring */
+#endif
    uint32                  nicNext;    /* next entry to use in the ring */
    uint32                  ringLength; /* # of entries in the ring */
    PA                      startPA;    /* PA of the starting addr of the ring */
@@ -183,7 +187,11 @@ typedef struct Vmxnet2_RxRingInfo {
 } Vmxnet2_RxRingInfo;
 
 typedef struct Vmxnet2_TxRingInfo {
+#ifdef VMX86_VMX
+   PA                      basePA;     /* starting PA of the ring */
+#else
    Vmxnet2_TxRingEntry    *base;       /* starting addr of the ring */
+#endif
    uint32                  nicNext;    /* next entry to use in the ring */
    uint32                  ringLength; /* # of entries in the ring */
    PA                      startPA;    /* PA of the starting addr of the ring */
@@ -349,7 +357,7 @@ typedef struct VmxnetVMKShared {
    uint32  dontPostActions;  
 } VmxnetVMKShared;
 
-#if defined VMX86_VMX || defined VMKERNEL
+#if defined VMKERNEL
 
 /*
  * Inline functions used to assist the implementation of the vmxnet interface.