diff options
author | Chris Johns <chrisj@rtems.org> | 2017-12-23 18:18:59 +1100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-05 14:23:57 +0100 |
commit | 85e278dc25a6327aa2a638b88cfa6e823ae78e88 (patch) | |
tree | 412fbb1a3da03d71cadbcbc3abd841d14629a980 /bsps/sparc/include/bsp/grpci.h | |
parent | 75eb27c074cabdbb3aefa7948155be8be9959f29 (diff) |
preinstall: Moving to bsps/@RTEMS_CPU@/include
Update
Diffstat (limited to 'bsps/sparc/include/bsp/grpci.h')
-rw-r--r-- | bsps/sparc/include/bsp/grpci.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bsps/sparc/include/bsp/grpci.h b/bsps/sparc/include/bsp/grpci.h new file mode 100644 index 0000000000..2321706200 --- /dev/null +++ b/bsps/sparc/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 |