RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
grpci.h
1#ifndef __GRPCI_H__
2#define __GRPCI_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/* Register the GRPCI driver to the Driver Manager */
9extern void grpci_register_drv(void);
10
11/* Transfer data using GRPCI DMA unit from AMBA to PCI space. Blocks until
12 * operation completes.
13 */
14int grpci_dma_to_pci(
15 unsigned int ahb_addr,
16 unsigned int pci_addr,
17 unsigned int len);
18
19/* Transfer data using GRPCI DMA unit from PCI to AMBA space. Blocks until
20 * operation completes.
21 */
22int grpci_dma_from_pci(
23 unsigned int ahb_addr,
24 unsigned int pci_addr,
25 unsigned int len);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif