source: rtems/c/src/lib/libcpu/powerpc/mpc55xx/include/edma.h @ 574fb67

4.104.114.9
Last change on this file since 574fb67 was 574fb67, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Jul 14, 2008 at 4:15:28 PM

updated gen83xx BSP
updated haleakala BSP
added MPC55xx BSP

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx
5 *
6 * @brief Enhanced Direct Memory Access (eDMA).
7 */
8
9/*
10 * Copyright (c) 2008
11 * Embedded Brains GmbH
12 * Obere Lagerstr. 30
13 * D-82178 Puchheim
14 * Germany
15 * rtems@embedded-brains.de
16 *
17 * The license and distribution terms for this file may be found in the file
18 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
19 */
20
21#ifndef LIBCPU_POWERPC_MPC55XX_EDMA_H
22#define LIBCPU_POWERPC_MPC55XX_EDMA_H
23
24#include <stdbool.h>
25
26#include <rtems.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif /* __cplusplus */
31
32#define MPC55XX_EDMA_TCD_DEFAULT { \
33        .SADDR = 0, \
34        .SMOD = 0, \
35        .SSIZE = 0x2, \
36        .SOFF = 4, \
37        .DADDR = 0, \
38        .DMOD = 0, \
39        .DSIZE = 0x2, \
40        .DOFF = 4, \
41        .NBYTES = 0, \
42        .SLAST = 0, \
43        .CITER = 1, \
44        .BITER = 1, \
45        .MAJORLINKCH = 0, \
46        .CITERE_LINK = 0, \
47        .BITERE_LINK = 0, \
48        .MAJORE_LINK = 0, \
49        .E_SG = 0, \
50        .DLAST_SGA = 0, \
51        .D_REQ = 0, \
52        .BWC = 0, \
53        .INT_HALF = 0, \
54        .INT_MAJ = 0, \
55        .DONE = 0, \
56        .ACTIVE = 0, \
57        .START = 0, \
58}
59
60#define MPC55XX_EDMA_TCD_ALT_DEFAULT { \
61        .SADDR = 0, \
62        .SMOD = 0, \
63        .SSIZE = 2, \
64        .DMOD = 0, \
65        .DSIZE = 2, \
66        .SOFF = 4, \
67        .NBYTES = 0, \
68        .SLAST = 0, \
69        .DADDR = 0, \
70        .CITERE_LINK = 0, \
71        .CITERLINKCH = 0, \
72        .CITER = 0, \
73        .DOFF = 4, \
74        .DLAST_SGA = 0, \
75        .BITERE_LINK = 0, \
76        .BITERLINKCH = 0, \
77        .BITER = 0, \
78        .BWC = 0, \
79        .MAJORLINKCH = 0, \
80        .DONE = 0, \
81        .ACTIVE = 0, \
82        .MAJORE_LINK = 0, \
83        .E_SG = 0, \
84        .D_REQ = 0, \
85        .INT_HALF = 0, \
86        .INT_MAJ = 0, \
87        .START = 0, \
88}
89
90rtems_status_code mpc55xx_edma_init();
91
92rtems_status_code mpc55xx_edma_obtain_channel( int channel, uint32_t *error_status, rtems_id transfer_update);
93
94rtems_status_code mpc55xx_edma_enable_hardware_requests( int channel, bool enable);
95
96rtems_status_code mpc55xx_edma_enable_error_interrupts( int channel, bool enable);
97
98#ifdef __cplusplus
99}
100#endif /* __cplusplus */
101
102#endif /* LIBCPU_POWERPC_MPC55XX_EDMA_H */
Note: See TracBrowser for help on using the repository browser.