Subversion Repositories shark

Rev

Rev 1203 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1199 giacomo 1
#ifndef __PARSER_H__
2
#define __PARSER_H__
3
 
4
#include <kernel/kern.h>
5
 
1201 giacomo 6
#define PAR_TOTAL_EXEC_TIME 0
1206 giacomo 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
1201 giacomo 18
 
19
#define PAR_EXEC_CONST 12
20
#define PAR_EXEC_MEAN 13
1203 giacomo 21
#define PAR_EXEC_GAUSS 14
22
#define PAR_EXEC_GAUSS_MAX 15
1201 giacomo 23
 
24
#define PAR_ACT_SINGLE 16
25
#define PAR_ACT_PERIODIC 17
26
#define PAR_ACT_MEAN 18
1203 giacomo 27
#define PAR_ACT_GAUSS 19
28
#define PAR_ACT_GAUSS_MAX 20
1201 giacomo 29
 
30
#define PAR_TASK_NRT 21
31
#define PAR_TASK_HARD 22
32
#define PAR_TASK_SOFT 23
1206 giacomo 33
#define PAR_TASK_BACK 24
1201 giacomo 34
 
1206 giacomo 35
#define PAR_NO_CRIT 25
36
#define PAR_CRIT 26
37
 
1199 giacomo 38
struct loader_task {
39
  int number;
1202 giacomo 40
  int group;
1203 giacomo 41
  bandwidth_t bandwidth;
1199 giacomo 42
  int task_level;
43
  int task_type;
1203 giacomo 44
  struct timespec deadline;
1199 giacomo 45
  struct timespec wcet;
46
  int exec_type;
47
  struct timespec exec_par_1;
48
  struct timespec exec_par_2;
49
  struct timespec exec_par_3;
50
  int act_type;
51
  struct timespec act_par_1;
52
  struct timespec act_par_2;
53
  struct timespec act_par_3;
54
  struct timespec act_par_4;
1206 giacomo 55
  int crit_type;
56
  int resource;
57
  struct timespec crit_par_1;
58
  struct timespec crit_par_2;
59
  struct timespec crit_par_3;
60
  struct timespec crit_par_4;
1199 giacomo 61
  struct loader_task *next;
62
};
63
 
1206 giacomo 64
int line_parser(char **buf, int line_num, struct timespec *total, struct loader_task **last);
1199 giacomo 65
 
66
#endif
67