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

4.104.11
Last change on this file since d374492 was d374492, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Jul 21, 2009 at 8:38:04 AM

Update for MPC55XX changes

  • Property mode set to 100644
File size: 1.2 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#include <stdint.h>
26
27#include <rtems.h>
28#include <rtems/chain.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
34typedef 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
41rtems_status_code mpc55xx_edma_init();
42
43rtems_status_code mpc55xx_edma_obtain_channel( mpc55xx_edma_channel_entry *e);
44
45rtems_status_code mpc55xx_edma_release_channel( mpc55xx_edma_channel_entry *e);
46
47void mpc55xx_edma_enable_hardware_requests( unsigned channel, bool enable);
48
49void 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.