RTEMS  5.1
grpci.h
1 #ifndef __GRPCI_H__
2 #define __GRPCI_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 /* Register the GRPCI driver to the Driver Manager */
9 extern void grpci_register_drv(void);
10 
11 /* Transfer data using GRPCI DMA unit from AMBA to PCI space. Blocks until
12  * operation completes.
13  */
14 int 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  */
22 int 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