diff options
Diffstat (limited to 'drivers/net/ethernet/ti/davinci_cpdma.h')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_cpdma.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/ethernet/ti/davinci_cpdma.h b/drivers/net/ethernet/ti/davinci_cpdma.h index 070f1d0ea848..a07b22b12bc1 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.h +++ b/drivers/net/ethernet/ti/davinci_cpdma.h | |||
@@ -17,13 +17,6 @@ | |||
17 | 17 | ||
18 | #define CPDMA_MAX_CHANNELS BITS_PER_LONG | 18 | #define CPDMA_MAX_CHANNELS BITS_PER_LONG |
19 | 19 | ||
20 | #define tx_chan_num(chan) (chan) | ||
21 | #define rx_chan_num(chan) ((chan) + CPDMA_MAX_CHANNELS) | ||
22 | #define is_rx_chan(chan) ((chan)->chan_num >= CPDMA_MAX_CHANNELS) | ||
23 | #define is_tx_chan(chan) (!is_rx_chan(chan)) | ||
24 | #define __chan_linear(chan_num) ((chan_num) & (CPDMA_MAX_CHANNELS - 1)) | ||
25 | #define chan_linear(chan) __chan_linear((chan)->chan_num) | ||
26 | |||
27 | #define CPDMA_RX_SOURCE_PORT(__status__) ((__status__ >> 16) & 0x7) | 20 | #define CPDMA_RX_SOURCE_PORT(__status__) ((__status__ >> 16) & 0x7) |
28 | 21 | ||
29 | #define CPDMA_EOI_RX_THRESH 0x0 | 22 | #define CPDMA_EOI_RX_THRESH 0x0 |
@@ -79,7 +72,7 @@ int cpdma_ctlr_start(struct cpdma_ctlr *ctlr); | |||
79 | int cpdma_ctlr_stop(struct cpdma_ctlr *ctlr); | 72 | int cpdma_ctlr_stop(struct cpdma_ctlr *ctlr); |
80 | 73 | ||
81 | struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, | 74 | struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, |
82 | cpdma_handler_fn handler); | 75 | cpdma_handler_fn handler, int rx_type); |
83 | int cpdma_chan_get_rx_buf_num(struct cpdma_chan *chan); | 76 | int cpdma_chan_get_rx_buf_num(struct cpdma_chan *chan); |
84 | int cpdma_chan_destroy(struct cpdma_chan *chan); | 77 | int cpdma_chan_destroy(struct cpdma_chan *chan); |
85 | int cpdma_chan_start(struct cpdma_chan *chan); | 78 | int cpdma_chan_start(struct cpdma_chan *chan); |