Subversion Repositories shark

Rev

Rev 1206 | 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
1209 giacomo 34
#define PAR_TASK_FSF 25
1201 giacomo 35
 
1209 giacomo 36
#define PAR_NO_CRIT 26
37
#define PAR_CRIT 27
1206 giacomo 38
 
1209 giacomo 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
 
1199 giacomo 46
struct loader_task {
47
  int number;
1202 giacomo 48
  int group;
1203 giacomo 49
  bandwidth_t bandwidth;
1199 giacomo 50
  int task_level;
51
  int task_type;
1203 giacomo 52
  struct timespec deadline;
1199 giacomo 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;
1206 giacomo 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;
1209 giacomo 69
  int server;
70
  int local_scheduler;
1199 giacomo 71
  struct loader_task *next;
72
};
73
 
1206 giacomo 74
int line_parser(char **buf, int line_num, struct timespec *total, struct loader_task **last);
1199 giacomo 75
 
76
#endif
77