Subversion Repositories shark

Rev

Rev 582 | Rev 770 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
582 mauro 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
 *   Mauro Marinoni      <mauro.marinoni@unipv.it>
10
 *
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
/* Glue Layer Header Linux CPU Driver*/
20
 
21
#ifndef __SHARK_CPU26_H__
22
#define __SHARK_CPU26_H__
23
 
24
#define DVS_NONE                0
25
#define DVS_POWERNOW_K6         1
26
#define DVS_POWERNOW_K7         2
27
#define DVS_POWERNOW_K8         3
28
#define DVS_MEDIAGX_GEODE       4
29
#define DVS_P4_CLOCK_MOD        5
30
#define DVS_SS_CENTRINO         6
31
#define DVS_SS_ICH              7
32
#define DVS_SS_SMI              8
33
 
597 mauro 34
#define DVS_RELATION_L          0  /* lowest frequency at or above target */
35
#define DVS_RELATION_H          1  /* highest frequency below or at target */
36
 
37
#define DVS_LATENCY_ETERNAL     (-1)
38
 
582 mauro 39
int CPU26_installed(void);
40
int CPU26_init(void);
41
int CPU26_close(void);
42
 
43
void CPU26_showinfo(void);
44
 
45
int CPU26_initDVS(void);
46
int CPU26_closeDVS(void);
47
 
597 mauro 48
int CPU26_set_frequency(unsigned int target_freq, unsigned int relation);
49
int CPU26_get_cur_frequency(void);
50
int CPU26_get_min_frequency(void);
51
int CPU26_get_max_frequency(void);
52
int CPU26_get_latency(void);
53
 
582 mauro 54
#endif
55