make tx_head also visible

This commit is contained in:
Mariano Alvira 2010-03-29 19:28:01 -04:00
parent c6fc0e4d02
commit c6d3073b9c
2 changed files with 6 additions and 5 deletions

View file

@ -27,12 +27,12 @@
#define reg(x) (*(volatile uint32_t *)(x))
static volatile packet_t packet_pool[NUM_PACKETS];
static volatile packet_t *free_head, *rx_end, *tx_head, *tx_end, *dma_tx, *dma_rx = 0;
static volatile packet_t *free_head, *rx_end, *tx_end, *dma_tx, *dma_rx = 0;
/* rx_head is visible to the outside */
/* rx_head and tx_head are visible to the outside */
/* so you can peek at it and see if there is data */
/* waiting for you */
volatile packet_t *rx_head;
/* waiting for you, or data still to be sent */
volatile packet_t *rx_head, *tx_head;
/* used for ack recpetion if the packet_pool goes empty */
/* doesn't go back into the pool when freed */