projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 firmware: update API to 1.8.8.3
[carl9170fw.git]
/
carlfw
/
include
/
dma.h
diff --git
a/carlfw/include/dma.h
b/carlfw/include/dma.h
index 91da8651a3366cfb50cbf8aeaeabea102153db85..e8d813bb1c77913d5e258e76dec8c7e1aa9615bc 100644
(file)
--- a/
carlfw/include/dma.h
+++ b/
carlfw/include/dma.h
@@
-147,7
+147,6
@@
struct carl9170_sram_reserved {
* 0x18000
*/
* 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)
#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);
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;
static inline __inline bool queue_empty(struct dma_queue *q)
{
return q->head == q->terminator;