diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2015-02-05 14:31:42 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:22 +0200 |
commit | f407c51fd89cdd754ab71f43b1494fe4207c9e64 (patch) | |
tree | 4fad63a5085372bbff7123221cd49fa1f8b46980 /c/src/lib/libbsp/sparc/shared/include/grpci.h | |
parent | GRSPW: fix build warnings (diff) | |
download | rtems-f407c51fd89cdd754ab71f43b1494fe4207c9e64.tar.bz2 |
GRPCI: fixed build warnings
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include/grpci.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grpci.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/grpci.h b/c/src/lib/libbsp/sparc/shared/include/grpci.h new file mode 100644 index 0000000000..2321706200 --- /dev/null +++ b/c/src/lib/libbsp/sparc/shared/include/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 |