[7af35da5] | 1 | /* apiext.h |
---|
| 2 | * |
---|
| 3 | * XXX |
---|
| 4 | * |
---|
| 5 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
| 6 | * On-Line Applications Research Corporation (OAR). |
---|
| 7 | * All rights assigned to U.S. Government, 1994. |
---|
| 8 | * |
---|
| 9 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
| 10 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
| 11 | * notice must appear in all copies of this file and its derivatives. |
---|
| 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #ifndef __API_EXTENSIONS_h |
---|
| 18 | #define __API_EXTENSIONS_h |
---|
| 19 | |
---|
[5e9b32b] | 20 | #include <rtems/score/chain.h> |
---|
[94b3ec59] | 21 | #include <rtems/score/thread.h> |
---|
[7af35da5] | 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); |
---|
[94b3ec59] | 30 | typedef void (*API_extensions_Postswitch_hook)( |
---|
| 31 | Thread_Control * |
---|
| 32 | ); |
---|
| 33 | |
---|
[7af35da5] | 34 | |
---|
| 35 | typedef struct { |
---|
[94b3ec59] | 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; |
---|
[7af35da5] | 40 | } API_extensions_Control; |
---|
| 41 | |
---|
| 42 | /* |
---|
| 43 | * This is the list of API extensions to the system initialization. |
---|
| 44 | */ |
---|
| 45 | |
---|
| 46 | 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 | |
---|
[94b3ec59] | 91 | /* |
---|
| 92 | * _API_extensions_Run_postswitch |
---|
| 93 | * |
---|
| 94 | * DESCRIPTION: |
---|
| 95 | * |
---|
| 96 | * XXX |
---|
| 97 | */ |
---|
| 98 | |
---|
| 99 | void _API_extensions_Run_postswitch( void ); |
---|
| 100 | |
---|
[7af35da5] | 101 | #endif |
---|
| 102 | /* end of include file */ |
---|