30 #ifndef __DESC_COM_H__
31 #define __DESC_COM_H__
33 #if defined(CONFIG_STMMAC_RING)
34 static inline void ehn_desc_rx_set_on_ring_chain(
struct dma_desc *
p,
int end)
41 static inline void ehn_desc_tx_set_on_ring_chain(
struct dma_desc *p,
int end)
47 static inline void enh_desc_end_tx_desc(
struct dma_desc *p,
int ter)
52 static inline void enh_set_tx_desc_len(
struct dma_desc *p,
int len)
61 static inline void ndesc_rx_set_on_ring_chain(
struct dma_desc *p,
int end)
68 static inline void ndesc_tx_set_on_ring_chain(
struct dma_desc *p,
int end)
74 static inline void ndesc_end_tx_desc(
struct dma_desc *p,
int ter)
79 static inline void norm_set_tx_desc_len(
struct dma_desc *p,
int len)
90 static inline void ehn_desc_rx_set_on_ring_chain(
struct dma_desc *p,
int end)
92 p->
des01.
erx.second_address_chained = 1;
95 static inline void ehn_desc_tx_set_on_ring_chain(
struct dma_desc *p,
int end)
97 p->
des01.
etx.second_address_chained = 1;
100 static inline void enh_desc_end_tx_desc(
struct dma_desc *p,
int ter)
102 p->
des01.
etx.second_address_chained = 1;
105 static inline void enh_set_tx_desc_len(
struct dma_desc *p,
int len)
110 static inline void ndesc_rx_set_on_ring_chain(
struct dma_desc *p,
int end)
112 p->
des01.
rx.second_address_chained = 1;
117 p->
des01.
tx.second_address_chained = 1;
120 static inline void ndesc_end_tx_desc(
struct dma_desc *p,
int ter)
122 p->
des01.
tx.second_address_chained = 1;
125 static inline void norm_set_tx_desc_len(
struct dma_desc *p,
int len)
127 p->
des01.
tx.buffer1_size = len;