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