1 | /* sysstates.h |
---|
2 | * |
---|
3 | * This include file contains information regarding the system state. |
---|
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 | #ifndef __RTEMS_SYSTEM_STATE_h |
---|
17 | #define __RTEMS_SYSTEM_STATE_h |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | /* types */ |
---|
24 | |
---|
25 | /* enumerated constants */ |
---|
26 | |
---|
27 | /* |
---|
28 | * The following type defines the possible system states. |
---|
29 | */ |
---|
30 | |
---|
31 | typedef enum { |
---|
32 | SYSTEM_STATE_BEFORE_INITIALIZATION, /* start -> end of 1st init part */ |
---|
33 | SYSTEM_STATE_BEFORE_MULTITASKING, /* end of 1st -> beginning of 2nd */ |
---|
34 | SYSTEM_STATE_BEGIN_MULTITASKING, /* just before multitasking starts */ |
---|
35 | SYSTEM_STATE_UP, /* normal operation */ |
---|
36 | SYSTEM_STATE_FAILED /* fatal error occurred */ |
---|
37 | } System_state_Codes; |
---|
38 | |
---|
39 | #define SYSTEM_STATE_CODES_FIRST SYSTEM_STATE_BEFORE_INITIALIZATION |
---|
40 | #define SYSTEM_STATE_CODES_LAST SYSTEM_STATE_FAILED |
---|
41 | |
---|
42 | /* |
---|
43 | * The following variable indicates whether or not this is |
---|
44 | * an multiprocessing system. |
---|
45 | */ |
---|
46 | |
---|
47 | EXTERN boolean _System_state_Is_multiprocessing; |
---|
48 | |
---|
49 | /* |
---|
50 | * The following variable contains the current system state. |
---|
51 | */ |
---|
52 | |
---|
53 | EXTERN System_state_Codes _System_state_Current; |
---|
54 | |
---|
55 | /* |
---|
56 | * Make it possible for the application to get the system state information. |
---|
57 | */ |
---|
58 | |
---|
59 | #include <rtems/score/sysstate.inl> |
---|
60 | |
---|
61 | #ifdef __cplusplus |
---|
62 | } |
---|
63 | #endif |
---|
64 | |
---|
65 | #endif |
---|
66 | /* end of include file */ |
---|