Rev 1202 | Rev 1206 | 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 |
||
1203 | giacomo | 13 | #define PAR_DEADLINE 9 |
1201 | giacomo | 14 | #define PAR_ERROR 10 |
15 | #define PAR_FOUND 11 |
||
16 | |||
17 | #define PAR_EXEC_CONST 12 |
||
18 | #define PAR_EXEC_MEAN 13 |
||
1203 | giacomo | 19 | #define PAR_EXEC_GAUSS 14 |
20 | #define PAR_EXEC_GAUSS_MAX 15 |
||
1201 | giacomo | 21 | |
22 | #define PAR_ACT_SINGLE 16 |
||
23 | #define PAR_ACT_PERIODIC 17 |
||
24 | #define PAR_ACT_MEAN 18 |
||
1203 | giacomo | 25 | #define PAR_ACT_GAUSS 19 |
26 | #define PAR_ACT_GAUSS_MAX 20 |
||
1201 | giacomo | 27 | |
28 | #define PAR_TASK_NRT 21 |
||
29 | #define PAR_TASK_HARD 22 |
||
30 | #define PAR_TASK_SOFT 23 |
||
31 | |||
1199 | giacomo | 32 | struct loader_task { |
33 | int number; |
||
1202 | giacomo | 34 | int group; |
1203 | giacomo | 35 | bandwidth_t bandwidth; |
1199 | giacomo | 36 | int task_level; |
37 | int task_type; |
||
1203 | giacomo | 38 | struct timespec deadline; |
1199 | giacomo | 39 | struct timespec wcet; |
40 | int exec_type; |
||
41 | struct timespec exec_par_1; |
||
42 | struct timespec exec_par_2; |
||
43 | struct timespec exec_par_3; |
||
44 | int act_type; |
||
45 | struct timespec act_par_1; |
||
46 | struct timespec act_par_2; |
||
47 | struct timespec act_par_3; |
||
48 | struct timespec act_par_4; |
||
49 | struct loader_task *next; |
||
50 | }; |
||
51 | |||
1201 | giacomo | 52 | int line_parser(char *buf, int line_num, struct timespec *total, struct loader_task **last); |
1199 | giacomo | 53 | |
54 | #endif |
||
55 |