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

4.104.114.84.95
Last change on this file since ca680bc5 was ca680bc5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/31/05 at 05:09:26

New (CVS import Thomas Doerfler <Thomas.Doerfler@…>'s
submission).

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