Subversion Repositories shark

Rev

Rev 1200 | 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
7
#define PAR_TIME 2
8
#define PAR_ACT_TYPE 3
9
#define PAR_TASK_NUMBER 4
10
#define PAR_EXEC_TYPE 5
11
#define PAR_TASK_TYPE 6
12
#define PAR_NOTHING 8
13
#define PAR_ERROR 10
14
#define PAR_FOUND 11
15
 
16
#define PAR_EXEC_CONST 12
17
#define PAR_EXEC_MEAN 13
18
#define PAR_EXEC_EXP 14
19
#define PAR_EXEC_EXP_MAX 15
20
 
21
#define PAR_ACT_SINGLE 16
22
#define PAR_ACT_PERIODIC 17
23
#define PAR_ACT_MEAN 18
24
#define PAR_ACT_EXP 19
25
#define PAR_ACT_EXP_MAX 20
26
 
27
#define PAR_TASK_NRT 21
28
#define PAR_TASK_HARD 22
29
#define PAR_TASK_SOFT 23
30
 
1199 giacomo 31
struct loader_task {
32
  int number;
33
  int task_level;
34
  int task_type;
35
  struct timespec wcet;
36
  int exec_type;
37
  struct timespec exec_par_1;
38
  struct timespec exec_par_2;
39
  struct timespec exec_par_3;
40
  int act_type;
41
  struct timespec act_par_1;
42
  struct timespec act_par_2;
43
  struct timespec act_par_3;
44
  struct timespec act_par_4;
45
  struct loader_task *next;
46
};
47
 
1201 giacomo 48
int line_parser(char *buf, int line_num, struct timespec *total, struct loader_task **last);
1199 giacomo 49
 
50
#endif
51