Subversion Repositories shark

Rev

Rev 1202 | Blame | Compare with Previous | 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 2
#define PAR_ACT_TYPE 3
#define PAR_TASK_NUMBER 4
#define PAR_EXEC_TYPE 5
#define PAR_TASK_TYPE 6
#define PAR_NOTHING 8
#define PAR_DEADLINE 9
#define PAR_ERROR 10
#define PAR_FOUND 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

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;
  struct loader_task *next;
};

int line_parser(char *buf, int line_num, struct timespec *total, struct loader_task **last);

#endif