summaryrefslogtreecommitdiff
path: root/include/bsp/grpci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bsp/grpci.h')
-rw-r--r--include/bsp/grpci.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/bsp/grpci.h b/include/bsp/grpci.h
new file mode 100644
index 0000000000..2321706200
--- /dev/null
+++ b/include/bsp/grpci.h
@@ -0,0 +1,31 @@
+#ifndef __GRPCI_H__
+#define __GRPCI_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Register the GRPCI driver to the Driver Manager */
+extern void grpci_register_drv(void);
+
+/* Transfer data using GRPCI DMA unit from AMBA to PCI space. Blocks until
+ * operation completes.
+ */
+int grpci_dma_to_pci(
+ unsigned int ahb_addr,
+ unsigned int pci_addr,
+ unsigned int len);
+
+/* Transfer data using GRPCI DMA unit from PCI to AMBA space. Blocks until
+ * operation completes.
+ */
+int grpci_dma_from_pci(
+ unsigned int ahb_addr,
+ unsigned int pci_addr,
+ unsigned int len);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif