Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1255 giacomo 1
#ifndef __PARSER_H__
2
#define __PARSER_H__
3
 
4
#include <kernel/kern.h>
5
 
6
#define PAR_TOTAL_EXEC_TIME 0
7
#define PAR_TIME 1
8
#define PAR_ACT_TYPE 2
9
#define PAR_TASK_NUMBER 3
10
#define PAR_EXEC_TYPE 4
11
#define PAR_TASK_TYPE 5
12
#define PAR_NOTHING 6
13
#define PAR_DEADLINE 7
14
#define PAR_ERROR 8
15
#define PAR_FOUND 9
16
#define PAR_CRIT_SESSION 10
17
#define PAR_END 11
18
 
19
#define PAR_EXEC_CONST 12
20
#define PAR_EXEC_MEAN 13
21
#define PAR_EXEC_GAUSS 14
22
#define PAR_EXEC_GAUSS_MAX 15
23
 
24
#define PAR_ACT_SINGLE 16
25
#define PAR_ACT_PERIODIC 17
26
#define PAR_ACT_MEAN 18
27
#define PAR_ACT_GAUSS 19
28
#define PAR_ACT_GAUSS_MAX 20
29
 
30
#define PAR_TASK_NRT 21
31
#define PAR_TASK_HARD 22
32
#define PAR_TASK_SOFT 23
33
#define PAR_TASK_BACK 24
34
#define PAR_TASK_FSF 25
35
 
36
#define PAR_NO_CRIT 26
37
#define PAR_CRIT 27
38
 
39
#define PAR_FSF_SERVER 28
40
 
41
#define PAR_LOCAL_SCHEDULER 29
42
#define PAR_POSIX 30
43
#define PAR_EDF 31
44
#define PAR_RM 32
45
 
46
struct loader_task {
47
  int number;
48
  int group;
49
  bandwidth_t bandwidth;
50
  int task_level;
51
  int task_type;
52
  struct timespec deadline;
53
  struct timespec wcet;
54
  int exec_type;
55
  struct timespec exec_par_1;
56
  struct timespec exec_par_2;
57
  struct timespec exec_par_3;
58
  int act_type;
59
  struct timespec act_par_1;
60
  struct timespec act_par_2;
61
  struct timespec act_par_3;
62
  struct timespec act_par_4;
63
  int crit_type;
64
  int resource;
65
  struct timespec crit_par_1;
66
  struct timespec crit_par_2;
67
  struct timespec crit_par_3;
68
  struct timespec crit_par_4;
69
  int server;
70
  int local_scheduler;
71
  struct loader_task *next;
72
};
73
 
74
int line_parser(char **buf, int line_num, struct timespec *total, struct loader_task **last);
75
 
76
#endif
77