diff options
author | Miao Yan <yanmiaobest@gmail.com> | 2015-12-22 22:06:11 -0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-01-11 11:01:34 +0800 |
commit | c12d82ef15e4a128a24c2fdaadcc45ba49133a27 (patch) | |
tree | 8c7c5bbab6f3790e89d0cf8eb7010a5086c50ad2 /hw/net | |
parent | 8856be151241c3647b6eb0b91b10f2603bbe430c (diff) |
net/vmxnet3: rename VMXNET3_DEVICE_VERSION to VMXNET3_UPT_REVISION
VMXNET3_DEVICE_VERSION is used as return value for accessing
UPT Revision Report and Selection register. So rename it
to VMXNET3_UPT_REVISION.
Signed-off-by: Miao Yan <yanmiaoebest@gmail.com>
Reviewed-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/vmxnet3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 6ba7c7558c..63692c5d27 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -50,7 +50,7 @@ #define VMXNET3_LINK_STATUS_UP 0x1 /* Least significant bit should be set for revision and version */ -#define VMXNET3_DEVICE_VERSION 0x1 +#define VMXNET3_UPT_REVISION 0x1 #define VMXNET3_DEVICE_REVISION 0x1 /* Number of interrupt vectors for non-MSIx modes */ @@ -1847,7 +1847,7 @@ vmxnet3_io_bar1_read(void *opaque, hwaddr addr, unsigned size) /* UPT Version Report Selection */ case VMXNET3_REG_UVRS: VMW_CBPRN("Read BAR1 [VMXNET3_REG_UVRS], size %d", size); - ret = VMXNET3_DEVICE_VERSION; + ret = VMXNET3_UPT_REVISION; break; /* Command */ |