source: rtems/c/src/lib/libbsp/powerpc/gen5200/bestcomm/bestcomm_glue.h @ 379a4761

4.104.115
Last change on this file since 379a4761 was ff28d60b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/01/06 at 07:52:00

Cleanup CVS data.

  • Property mode set to 100644
File size: 6.1 KB
Line 
1/*===============================================================*\
2| Project: RTEMS generic MPC5200 BSP                              |
3+-----------------------------------------------------------------+
4|                    Copyright (c) 2004-2005                      |
5|                    Embedded Brains GmbH                         |
6|                    Obere Lagerstr. 30                           |
7|                    D-82178 Puchheim                             |
8|                    Germany                                      |
9|                    rtems@embedded-brains.de                     |
10+-----------------------------------------------------------------+
11| The license and distribution terms for this file may be         |
12| found in the file LICENSE in this distribution or at            |
13|                                                                 |
14| http://www.rtems.com/license/LICENSE.                           |
15|                                                                 |
16+-----------------------------------------------------------------+
17| this file declares glue functions to the Freescale BestComm API |
18\*===============================================================*/
19#ifndef _BESTCOMM_GLUE_H
20#define _BESTCOMM_GLUE_H
21
22#include <rtems.h>
23
24/*=========================================================================*\
25| Function:                                                                 |
26\*-------------------------------------------------------------------------*/
27void bestcomm_glue_irq_enable
28(
29/*-------------------------------------------------------------------------*\
30| Purpose:                                                                  |
31|   enable interrupt for given task number                                  |
32+---------------------------------------------------------------------------+
33| Input Parameters:                                                         |
34\*-------------------------------------------------------------------------*/
35 int bestcomm_taskno                           /* task number to enable    */
36 );
37/*-------------------------------------------------------------------------*\
38| Return Value:                                                             |
39|    none                                                                   |
40\*=========================================================================*/
41
42/*=========================================================================*\
43| Function:                                                                 |
44\*-------------------------------------------------------------------------*/
45void bestcomm_glue_irq_disable
46(
47/*-------------------------------------------------------------------------*\
48| Purpose:                                                                  |
49|   disable interrupt for given task number                                 |
50+---------------------------------------------------------------------------+
51| Input Parameters:                                                         |
52\*-------------------------------------------------------------------------*/
53 int bestcomm_taskno                           /* task number to disable   */
54 );
55/*-------------------------------------------------------------------------*\
56| Return Value:                                                             |
57|    none                                                                   |
58\*=========================================================================*/
59
60/*=========================================================================*\
61| Function:                                                                 |
62\*-------------------------------------------------------------------------*/
63void bestcomm_glue_irq_install
64(
65/*-------------------------------------------------------------------------*\
66| Purpose:                                                                  |
67|   install given function as bestcomm interrupt handler                    |
68+---------------------------------------------------------------------------+
69| Input Parameters:                                                         |
70\*-------------------------------------------------------------------------*/
71 int bestcomm_taskno,                          /* task number for handler  */
72 void (*the_handler)(rtems_irq_hdl_param),     /* function to call         */
73 rtems_irq_hdl_param the_param
74 );
75/*-------------------------------------------------------------------------*\
76| Return Value:                                                             |
77|    none                                                                   |
78\*=========================================================================*/
79
80/*=========================================================================*\
81| Function:                                                                 |
82\*-------------------------------------------------------------------------*/
83void bestcomm_glue_init
84(
85/*-------------------------------------------------------------------------*\
86| Purpose:                                                                  |
87|   initialize the bestcomm module (if not yet done):                       |
88|   - load code                                                             |
89|   - initialize registers                                                  |
90|   - initialize bus arbiter                                                |
91|   - initialize interrupt control                                          |
92+---------------------------------------------------------------------------+
93| Input Parameters:                                                         |
94\*-------------------------------------------------------------------------*/
95 void /* none */
96 );
97/*-------------------------------------------------------------------------*\
98| Return Value:                                                             |
99|    none                                                                   |
100\*=========================================================================*/
101
102#endif /* _BESTCOMM_GLUE_H */
Note: See TracBrowser for help on using the repository browser.