Set txbuf_map array size to TX_DESC_COUNT instead of RX_DESC_COUNT.

This commit is contained in:
jmcneill 2016-04-29 21:46:43 +00:00
parent 8f62bb14e5
commit 6b39f1ee32

View File

@ -90,7 +90,7 @@ struct dwc_softc {
struct dwc_hwdesc *txdesc_ring;
bus_addr_t txdesc_ring_paddr;
bus_dma_tag_t txbuf_tag;
struct dwc_bufmap txbuf_map[RX_DESC_COUNT];
struct dwc_bufmap txbuf_map[TX_DESC_COUNT];
uint32_t tx_idx_head;
uint32_t tx_idx_tail;
int txcount;