|
@@ -318,34 +318,40 @@
|
|
|
#define FH_TCSR_UPPER_BOUND (FH_MEM_LOWER_BOUND + 0xE60)
|
|
|
|
|
|
/* Find Control/Status reg for given Tx DMA/FIFO channel */
|
|
|
-#define FH_TCSR_CHNL_TX_CONFIG_REG(_chnl) \
|
|
|
- (FH_TCSR_LOWER_BOUND + 0x20 * _chnl)
|
|
|
+#define FH49_TCSR_CHNL_NUM (7)
|
|
|
+#define FH50_TCSR_CHNL_NUM (8)
|
|
|
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_DISABLE_VAL (0x00000000)
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_ENABLE_VAL (0x00000008)
|
|
|
+#define FH_TCSR_CHNL_TX_CONFIG_REG(_chnl) \
|
|
|
+ (FH_TCSR_LOWER_BOUND + 0x20 * (_chnl))
|
|
|
+#define FH_TCSR_CHNL_TX_CREDIT_REG(_chnl) \
|
|
|
+ (FH_TCSR_LOWER_BOUND + 0x20 * (_chnl) + 0x4)
|
|
|
+#define FH_TCSR_CHNL_TX_BUF_STS_REG(_chnl) \
|
|
|
+ (FH_TCSR_LOWER_BOUND + 0x20 * (_chnl) + 0x8)
|
|
|
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_PAUSE (0x00000000)
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_PAUSE_EOF (0x40000000)
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_ENABLE (0x80000000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_MSG_MODE_TXF (0x00000000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_MSG_MODE_DRV (0x00000001)
|
|
|
|
|
|
-#define FH_TCSR_CHNL_NUM (7)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_DISABLE (0x00000000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_ENABLE (0x00000008)
|
|
|
|
|
|
-#define FH_TCSR_CHNL_TX_BUF_STS_REG_VAL_TFDB_EMPTY (0x00000000)
|
|
|
-#define FH_TCSR_CHNL_TX_BUF_STS_REG_VAL_TFDB_WAIT (0x00002000)
|
|
|
-#define FH_TCSR_CHNL_TX_BUF_STS_REG_VAL_TFDB_VALID (0x00000003)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_NOINT (0x00000000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_ENDTFD (0x00100000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_IFTFD (0x00200000)
|
|
|
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_NOINT (0x00000000)
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_ENDTFD (0x00100000)
|
|
|
-#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_IFTFD (0x00200000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_RTC_NOINT (0x00000000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_RTC_ENDTFD (0x00400000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_RTC_IFTFD (0x00800000)
|
|
|
|
|
|
-#define FH_TCSR_CHNL_TX_BUF_STS_REG_POS_TB_NUM (20)
|
|
|
-#define FH_TCSR_CHNL_TX_BUF_STS_REG_POS_TB_IDX (12)
|
|
|
-#define FH_TCSR_CHNL_TX_CONFIG_REG(_chnl) \
|
|
|
- (FH_TCSR_LOWER_BOUND + 0x20 * _chnl)
|
|
|
-#define FH_TCSR_CHNL_TX_CREDIT_REG(_chnl) \
|
|
|
- (FH_TCSR_LOWER_BOUND + 0x20 * _chnl + 0x4)
|
|
|
-#define FH_TCSR_CHNL_TX_BUF_STS_REG(_chnl) \
|
|
|
- (FH_TCSR_LOWER_BOUND + 0x20 * _chnl + 0x8)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_PAUSE (0x00000000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_PAUSE_EOF (0x40000000)
|
|
|
+#define FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_ENABLE (0x80000000)
|
|
|
+
|
|
|
+#define FH_TCSR_CHNL_TX_BUF_STS_REG_VAL_TFDB_EMPTY (0x00000000)
|
|
|
+#define FH_TCSR_CHNL_TX_BUF_STS_REG_VAL_TFDB_WAIT (0x00002000)
|
|
|
+#define FH_TCSR_CHNL_TX_BUF_STS_REG_VAL_TFDB_VALID (0x00000003)
|
|
|
+
|
|
|
+#define FH_TCSR_CHNL_TX_BUF_STS_REG_POS_TB_NUM (20)
|
|
|
+#define FH_TCSR_CHNL_TX_BUF_STS_REG_POS_TB_IDX (12)
|
|
|
|
|
|
/**
|
|
|
* Tx Shared Status Registers (TSSR)
|
|
@@ -362,7 +368,7 @@
|
|
|
#define FH_TSSR_LOWER_BOUND (FH_MEM_LOWER_BOUND + 0xEA0)
|
|
|
#define FH_TSSR_UPPER_BOUND (FH_MEM_LOWER_BOUND + 0xEC0)
|
|
|
|
|
|
-#define FH_TSSR_TX_STATUS_REG (FH_TSSR_LOWER_BOUND + 0x010)
|
|
|
+#define FH_TSSR_TX_STATUS_REG (FH_TSSR_LOWER_BOUND + 0x010)
|
|
|
|
|
|
#define FH_TSSR_TX_STATUS_REG_BIT_BUFS_EMPTY(_chnl) ((1 << (_chnl)) << 24)
|
|
|
#define FH_TSSR_TX_STATUS_REG_BIT_NO_PEND_REQ(_chnl) ((1 << (_chnl)) << 16)
|