X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Finclude%2Fdma.h;h=e8d813bb1c77913d5e258e76dec8c7e1aa9615bc;hb=8cc0ed2152ad8a0163ff355fd441af1a7a8b95f0;hp=91da8651a3366cfb50cbf8aeaeabea102153db85;hpb=65dd584c008fdc28e8398bacfdb311b19ae80507;p=carl9170fw.git diff --git a/carlfw/include/dma.h b/carlfw/include/dma.h index 91da865..e8d813b 100644 --- a/carlfw/include/dma.h +++ b/carlfw/include/dma.h @@ -147,7 +147,6 @@ struct carl9170_sram_reserved { * 0x18000 */ -#define AR9170_SRAM_SIZE 0x18000 #define CARL9170_SRAM_RESERVED (sizeof(struct carl9170_sram_reserved)) #define AR9170_FRAME_MEMORY_SIZE (AR9170_SRAM_SIZE - CARL9170_SRAM_RESERVED) @@ -227,6 +226,11 @@ void dma_queue_reclaim(struct dma_queue *dst, struct dma_queue *src); void queue_dump(void); void wlan_txq_hangfix(const unsigned int queue); +static inline __inline bool is_terminator(struct dma_queue *q, struct dma_desc *desc) +{ + return q->terminator == desc; +} + static inline __inline bool queue_empty(struct dma_queue *q) { return q->head == q->terminator;