.. | .. |
---|
10 | 10 | |
---|
11 | 11 | #if IS_ENABLED(CONFIG_PCIE_DW_DMATEST) |
---|
12 | 12 | struct dma_trx_obj *pcie_dw_dmatest_register(struct device *dev, bool irq_en); |
---|
| 13 | +void pcie_dw_dmatest_unregister(struct dma_trx_obj *obj); |
---|
| 14 | +int pcie_dw_wired_dma_frombus_block(struct dma_trx_obj *obj, u32 chn, u64 local_paddr, u64 bus_paddr, u32 size); |
---|
| 15 | +int pcie_dw_wired_dma_tobus_block(struct dma_trx_obj *obj, u32 chn, u64 bus_paddr, u64 local_paddr, u32 size); |
---|
13 | 16 | #else |
---|
14 | 17 | static inline struct dma_trx_obj *pcie_dw_dmatest_register(struct device *dev, bool irq_en) |
---|
15 | 18 | { |
---|
16 | 19 | return NULL; |
---|
17 | 20 | } |
---|
| 21 | + |
---|
| 22 | +static inline void pcie_dw_dmatest_unregister(struct dma_trx_obj *obj) { } |
---|
| 23 | + |
---|
| 24 | +static inline int pcie_dw_wired_dma_frombus_block(struct dma_trx_obj *obj, u32 chn, u64 local_paddr, u64 bus_paddr, u32 size) |
---|
| 25 | +{ |
---|
| 26 | + return -1; |
---|
| 27 | +} |
---|
| 28 | + |
---|
| 29 | +static inline int pcie_dw_wired_dma_tobus_block(struct dma_trx_obj *obj, u32 chn, u64 bus_paddr, u64 local_paddr, u32 size) |
---|
| 30 | +{ |
---|
| 31 | + return -1; |
---|
| 32 | +} |
---|
18 | 33 | #endif |
---|
19 | 34 | |
---|
20 | 35 | #endif |
---|