OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [include/] [rtems/] [score/] [apiext.h] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  apiext.h
2
 *
3
 *  This is the API Extensions Handler.
4
 *
5
 *  COPYRIGHT (c) 1989-1999.
6
 *  On-Line Applications Research Corporation (OAR).
7
 *
8
 *  The license and distribution terms for this file may be
9
 *  found in the file LICENSE in this distribution or at
10
 *  http://www.OARcorp.com/rtems/license.html.
11
 *
12
 *  apiext.h,v 1.10 1999/11/17 17:50:35 joel Exp
13
 */
14
 
15
 
16
#ifndef __API_EXTENSIONS_h
17
#define __API_EXTENSIONS_h
18
 
19
#include <rtems/score/chain.h>
20
#include <rtems/score/thread.h>
21
 
22
/*
23
 *  The control structure which defines the points at which an API
24
 *  can add an extension to the system initialization thread.
25
 */
26
 
27
typedef void (*API_extensions_Predriver_hook)(void);
28
typedef void (*API_extensions_Postdriver_hook)(void);
29
typedef void (*API_extensions_Postswitch_hook)(
30
                 Thread_Control *
31
             );
32
 
33
 
34
typedef struct {
35
  Chain_Node                      Node;
36
  API_extensions_Predriver_hook   predriver_hook;
37
  API_extensions_Postdriver_hook  postdriver_hook;
38
  API_extensions_Postswitch_hook  postswitch_hook;
39
}  API_extensions_Control;
40
 
41
/*
42
 *  This is the list of API extensions to the system initialization.
43
 */
44
 
45
SCORE_EXTERN Chain_Control _API_extensions_List;
46
 
47
/*
48
 *  _API_extensions_Initialization
49
 *
50
 *  DESCRIPTION:
51
 *
52
 *  This routine initializes the API extension handler.
53
 *
54
 */
55
 
56
void _API_extensions_Initialization( void );
57
 
58
/*
59
 *  _API_extensions_Add
60
 *
61
 *  DESCRIPTION:
62
 *
63
 *  XXX
64
 */
65
 
66
void _API_extensions_Add(
67
  API_extensions_Control *the_extension
68
);
69
 
70
/*
71
 *  _API_extensions_Run_predriver
72
 *
73
 *  DESCRIPTION:
74
 *
75
 *  XXX
76
 */
77
 
78
void _API_extensions_Run_predriver( void );
79
 
80
/*
81
 *  _API_extensions_Run_postdriver
82
 *
83
 *  DESCRIPTION:
84
 *
85
 *  XXX
86
 */
87
 
88
void _API_extensions_Run_postdriver( void );
89
 
90
/*
91
 *  _API_extensions_Run_postswitch
92
 *
93
 *  DESCRIPTION:
94
 *
95
 *  XXX
96
 */
97
 
98
void _API_extensions_Run_postswitch( void );
99
 
100
#endif
101
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.