Blame |
Last modification |
View Log
| RSS feed
#ifndef __PARSER_H__
#define __PARSER_H__
#include <kernel/kern.h>
#define PAR_TOTAL_EXEC_TIME 0
#define PAR_TIME 1
#define PAR_ACT_TYPE 2
#define PAR_TASK_NUMBER 3
#define PAR_EXEC_TYPE 4
#define PAR_TASK_TYPE 5
#define PAR_NOTHING 6
#define PAR_DEADLINE 7
#define PAR_ERROR 8
#define PAR_FOUND 9
#define PAR_CRIT_SESSION 10
#define PAR_END 11
#define PAR_EXEC_CONST 12
#define PAR_EXEC_MEAN 13
#define PAR_EXEC_GAUSS 14
#define PAR_EXEC_GAUSS_MAX 15
#define PAR_ACT_SINGLE 16
#define PAR_ACT_PERIODIC 17
#define PAR_ACT_MEAN 18
#define PAR_ACT_GAUSS 19
#define PAR_ACT_GAUSS_MAX 20
#define PAR_TASK_NRT 21
#define PAR_TASK_HARD 22
#define PAR_TASK_SOFT 23
#define PAR_TASK_BACK 24
#define PAR_TASK_FSF 25
#define PAR_NO_CRIT 26
#define PAR_CRIT 27
#define PAR_FSF_SERVER 28
#define PAR_LOCAL_SCHEDULER 29
#define PAR_POSIX 30
#define PAR_EDF 31
#define PAR_RM 32
struct loader_task {
int number;
int group;
bandwidth_t bandwidth;
int task_level;
int task_type;
struct timespec deadline;
struct timespec wcet;
int exec_type;
struct timespec exec_par_1;
struct timespec exec_par_2;
struct timespec exec_par_3;
int act_type;
struct timespec act_par_1;
struct timespec act_par_2;
struct timespec act_par_3;
struct timespec act_par_4;
int crit_type;
int resource;
struct timespec crit_par_1;
struct timespec crit_par_2;
struct timespec crit_par_3;
struct timespec crit_par_4;
int server;
int local_scheduler;
struct loader_task *next;
};
int line_parser(char **buf, int line_num, struct timespec *total, struct loader_task **last);
#endif