hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/pci/controller/dwc/pcie-dw-dmatest.h
....@@ -10,11 +10,26 @@
1010
1111 #if IS_ENABLED(CONFIG_PCIE_DW_DMATEST)
1212 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);
1316 #else
1417 static inline struct dma_trx_obj *pcie_dw_dmatest_register(struct device *dev, bool irq_en)
1518 {
1619 return NULL;
1720 }
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
+}
1833 #endif
1934
2035 #endif