Subversion Repositories shark

Rev

Rev 3 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
 
22
/**
23
 ------------
24
 CVS :        $Id: types.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
25
 
26
 File:        $File$
27
 Revision:    $Revision: 1.1.1.1 $
28
 Last update: $Date: 2002-03-29 14:12:51 $
29
 ------------
30
 
31
**/
32
 
33
/*
34
 * Copyright (C) 2000 Paolo Gai
35
 *
36
 * This program is free software; you can redistribute it and/or modify
37
 * it under the terms of the GNU General Public License as published by
38
 * the Free Software Foundation; either version 2 of the License, or
39
 * (at your option) any later version.
40
 *
41
 * This program is distributed in the hope that it will be useful,
42
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
43
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44
 * GNU General Public License for more details.
45
 *
46
 * You should have received a copy of the GNU General Public License
47
 * along with this program; if not, write to the Free Software
48
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
49
 *
50
 */
51
 
52
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
53
   HARTIK SYSTEM TYPES
54
   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
55
 
56
#ifndef __KERNEL_TYPES_H__
57
#define __KERNEL_TYPES_H__
58
 
59
 
60
/*+ Used to manage task queues +*/
61
typedef int QUEUE;
62
 
63
/*+ Used to manage task queues with tail +*/
64
typedef struct {
65
  int first;      /*+ first element of a task queue, NIL if empty +*/
66
  int last;       /*+ last element of a task qqueue, NIL if empty +*/
67
} QQUEUE;
68
 
69
 
70
/*+ Used to manage mutex queues +*/
71
//typedef int MQUEUE;
72
 
73
#define TASK void *
74
 
75
/*+ ... a task index +*/
76
typedef int PID;
77
 
78
/*+ ... a scheduling level index +*/
79
typedef int LEVEL;
80
 
81
/*+ ... a resource level index +*/
82
typedef int RLEVEL;
83
 
84
/*+ the type used in the on-line guarantee +*/
85
typedef unsigned int bandwidth_t;
86
 
87
/*+ keys for task specific data */
88
typedef int task_key_t;
89
 
90
 
91
#endif