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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [include/] [rtems/] [score/] [sysstate.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  sysstates.h
2
 *
3
 *  This include file contains information regarding the system state.
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
 *  $Id: sysstate.h,v 1.2 2001-09-27 11:59:32 chris Exp $
13
 */
14
 
15
#ifndef __RTEMS_SYSTEM_STATE_h
16
#define __RTEMS_SYSTEM_STATE_h
17
 
18
#ifdef __cplusplus
19
extern "C" {
20
#endif
21
 
22
/* types */
23
 
24
/* enumerated constants */
25
 
26
/*
27
 *  The following type defines the possible system states.
28
 */
29
 
30
typedef enum {
31
  SYSTEM_STATE_BEFORE_INITIALIZATION,   /* start -> end of 1st init part */
32
  SYSTEM_STATE_BEFORE_MULTITASKING,     /* end of 1st -> beginning of 2nd */
33
  SYSTEM_STATE_BEGIN_MULTITASKING,      /* just before multitasking starts */
34
  SYSTEM_STATE_UP,                      /* normal operation */
35
  SYSTEM_STATE_SHUTDOWN,                /* shutdown */
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
SCORE_EXTERN boolean _System_state_Is_multiprocessing;
48
 
49
/*
50
 *  The following variable contains the current system state.
51
 */
52
 
53
SCORE_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 */

powered by: WebSVN 2.1.0

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