diff options
author | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2018-10-11 04:19:23 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-10-16 17:13:48 +0100 |
commit | 8568313f3bdf4bc1de7ace0eb5b92343fc19f3c8 (patch) | |
tree | 9efd2a4129aa29ad5a1a95657ba4cc3060be3928 /hw/net | |
parent | f02361822f73f28a4279783fdfb581c500660a36 (diff) | |
download | qemu-8568313f3bdf4bc1de7ace0eb5b92343fc19f3c8.zip qemu-8568313f3bdf4bc1de7ace0eb5b92343fc19f3c8.tar.gz qemu-8568313f3bdf4bc1de7ace0eb5b92343fc19f3c8.tar.bz2 |
net: cadence_gem: Add macro with max number of descriptor words
Add macro with max number of DMA descriptor words.
No functional change.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 20181011021931.4249-5-edgar.iglesias@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/cadence_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index d672493..a59a36e 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -1042,7 +1042,7 @@ static void gem_transmit_updatestats(CadenceGEMState *s, const uint8_t *packet, */ static void gem_transmit(CadenceGEMState *s) { - uint32_t desc[2]; + uint32_t desc[DESC_MAX_NUM_WORDS]; hwaddr packet_desc_addr; uint8_t tx_packet[2048]; uint8_t *p; @@ -1108,7 +1108,7 @@ static void gem_transmit(CadenceGEMState *s) /* Last descriptor for this packet; hand the whole thing off */ if (tx_desc_get_last(desc)) { - uint32_t desc_first[2]; + uint32_t desc_first[DESC_MAX_NUM_WORDS]; /* Modify the 1st descriptor of this packet to be owned by * the processor. |