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

4.11
Last change on this file since 0e27119 was 0e27119, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 11, 2012 at 8:52:18 PM

Use proper 3 line form of license text

  • 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
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.com/license/LICENSE.
20 */
21
22#ifndef LIBCPU_POWERPC_MPC55XX_EDMA_H
23#define LIBCPU_POWERPC_MPC55XX_EDMA_H
24
25#include <stdbool.h>
26#include <stdint.h>
27
28#include <rtems.h>
29#include <rtems/chain.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif /* __cplusplus */
34
35typedef struct mpc55xx_edma_channel_entry {
36  rtems_chain_node node;
37  unsigned channel;
38  void (*done)( struct mpc55xx_edma_channel_entry *, uint32_t);
39  rtems_id id;
40} mpc55xx_edma_channel_entry;
41
42void mpc55xx_edma_init(void);
43
44rtems_status_code mpc55xx_edma_obtain_channel( mpc55xx_edma_channel_entry *e, unsigned irq_priority);
45
46void mpc55xx_edma_release_channel( mpc55xx_edma_channel_entry *e);
47
48void mpc55xx_edma_enable_hardware_requests( unsigned channel, bool enable);
49
50void mpc55xx_edma_enable_error_interrupts( unsigned channel, bool enable);
51
52#ifdef __cplusplus
53}
54#endif /* __cplusplus */
55
56#endif /* LIBCPU_POWERPC_MPC55XX_EDMA_H */
Note: See TracBrowser for help on using the repository browser.