Subversion Repositories shark

Rev

Rev 1618 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
961 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
 *   (see the web pages for full authors list)
10
 *   Giacomo Guidi       <giacomo@gandalf.sssup.it>
11
 *
12
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
13
 *
14
 * http://www.sssup.it
15
 * http://retis.sssup.it
16
 * http://shark.sssup.it
17
 */
18
 
19
/*
20
 * Copyright (C) 2000 Paolo Gai
21
 *
22
 * This program is free software; you can redistribute it and/or modify
23
 * it under the terms of the GNU General Public License as published by
24
 * the Free Software Foundation; either version 2 of the License, or
25
 * (at your option) any later version.
26
 *
27
 * This program is distributed in the hope that it will be useful,
28
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
 * GNU General Public License for more details.
31
 *
32
 * You should have received a copy of the GNU General Public License
33
 * along with this program; if not, write to the Free Software
34
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
35
 *
36
 */
37
 
38
 
39
#ifndef __INTDRIVE_H__
40
#define __INTDRIVE_H__
41
 
42
#include <ll/ll.h>
43
#include <kernel/config.h>
44
#include <sys/types.h>
45
#include <kernel/types.h>
1621 fabio 46
#include <arch/sys/cdefs.h>
961 pj 47
 
48
__BEGIN_DECLS
49
 
50
#define INTDRIVE_CHECK_WCET 1
51
 
1004 mauro 52
LEVEL INTDRIVE_register_level(TIME capacity, TIME q_theta, int U, int flags);
961 pj 53
 
54
/*+ Returns the used bandwidth of a level +*/
55
bandwidth_t INTDRIVE_usedbandwidth(LEVEL l);
56
 
57
/*+ Set the Q-theta value for the server - Return the accepted value +*/
58
TIME INTDRIVE_set_q_theta(LEVEL l, TIME new_q_theta);
59
 
60
__END_DECLS
61
#endif