Rev 1201 | Rev 1203 | Go to most recent revision | 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; |
||
1202 | giacomo | 33 | int group; |
1199 | giacomo | 34 | int task_level; |
35 | int task_type; |
||
36 | struct timespec wcet; |
||
37 | int exec_type; |
||
38 | struct timespec exec_par_1; |
||
39 | struct timespec exec_par_2; |
||
40 | struct timespec exec_par_3; |
||
41 | int act_type; |
||
42 | struct timespec act_par_1; |
||
43 | struct timespec act_par_2; |
||
44 | struct timespec act_par_3; |
||
45 | struct timespec act_par_4; |
||
46 | struct loader_task *next; |
||
47 | }; |
||
48 | |||
1201 | giacomo | 49 | int line_parser(char *buf, int line_num, struct timespec *total, struct loader_task **last); |
1199 | giacomo | 50 | |
51 | #endif |
||
52 |