diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2013-02-11 04:52:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-12 16:15:09 -0500 |
commit | f6e135c81eeb648c6addc6aeff2ee80f28ea413b (patch) | |
tree | e8efd6732b75fab7cba75d8e68b4bf2fd31acb25 /drivers/net/ethernet/ti/davinci_cpdma.h | |
parent | 570617e79c3ab31ce426efe9024af84efca862eb (diff) |
driver: net: ethernet: davinci_cpdma: add support for directed packet and source port detection
* Introduced parameter to add port number for directed packet in cpdma_chan_submit
* Source port detection macro with DMA descriptor status
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/davinci_cpdma.h')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_cpdma.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/davinci_cpdma.h b/drivers/net/ethernet/ti/davinci_cpdma.h index 8d2aeb2096ac..a97d6ab30941 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.h +++ b/drivers/net/ethernet/ti/davinci_cpdma.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #define __chan_linear(chan_num) ((chan_num) & (CPDMA_MAX_CHANNELS - 1)) | 24 | #define __chan_linear(chan_num) ((chan_num) & (CPDMA_MAX_CHANNELS - 1)) |
25 | #define chan_linear(chan) __chan_linear((chan)->chan_num) | 25 | #define chan_linear(chan) __chan_linear((chan)->chan_num) |
26 | 26 | ||
27 | #define CPDMA_RX_SOURCE_PORT(__status__) ((__status__ >> 16) & 0x7) | ||
28 | |||
27 | struct cpdma_params { | 29 | struct cpdma_params { |
28 | struct device *dev; | 30 | struct device *dev; |
29 | void __iomem *dmaregs; | 31 | void __iomem *dmaregs; |
@@ -82,7 +84,7 @@ int cpdma_chan_dump(struct cpdma_chan *chan); | |||
82 | int cpdma_chan_get_stats(struct cpdma_chan *chan, | 84 | int cpdma_chan_get_stats(struct cpdma_chan *chan, |
83 | struct cpdma_chan_stats *stats); | 85 | struct cpdma_chan_stats *stats); |
84 | int cpdma_chan_submit(struct cpdma_chan *chan, void *token, void *data, | 86 | int cpdma_chan_submit(struct cpdma_chan *chan, void *token, void *data, |
85 | int len, gfp_t gfp_mask); | 87 | int len, int directed, gfp_t gfp_mask); |
86 | int cpdma_chan_process(struct cpdma_chan *chan, int quota); | 88 | int cpdma_chan_process(struct cpdma_chan *chan, int quota); |
87 | 89 | ||
88 | int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable); | 90 | int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable); |