4.104.115
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 | #include <stdint.h> |
---|
26 | |
---|
27 | #include <rtems.h> |
---|
28 | #include <rtems/chain.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #endif /* __cplusplus */ |
---|
33 | |
---|
34 | typedef struct mpc55xx_edma_channel_entry { |
---|
35 | rtems_chain_node node; |
---|
36 | unsigned channel; |
---|
37 | void (*done)( struct mpc55xx_edma_channel_entry *, uint32_t); |
---|
38 | rtems_id id; |
---|
39 | } mpc55xx_edma_channel_entry; |
---|
40 | |
---|
41 | rtems_status_code mpc55xx_edma_init(); |
---|
42 | |
---|
43 | rtems_status_code mpc55xx_edma_obtain_channel( mpc55xx_edma_channel_entry *e); |
---|
44 | |
---|
45 | rtems_status_code mpc55xx_edma_release_channel( mpc55xx_edma_channel_entry *e); |
---|
46 | |
---|
47 | void mpc55xx_edma_enable_hardware_requests( unsigned channel, bool enable); |
---|
48 | |
---|
49 | void mpc55xx_edma_enable_error_interrupts( unsigned channel, bool enable); |
---|
50 | |
---|
51 | #ifdef __cplusplus |
---|
52 | } |
---|
53 | #endif /* __cplusplus */ |
---|
54 | |
---|
55 | #endif /* LIBCPU_POWERPC_MPC55XX_EDMA_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.