carl9170 firmware: improve mac reset handling
[carl9170fw.git] / carlfw / include / dma.h
index 91da8651a3366cfb50cbf8aeaeabea102153db85..e8d813bb1c77913d5e258e76dec8c7e1aa9615bc 100644 (file)
@@ -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;