Subversion Repositories shark

Rev

Rev 789 | 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
 
775 mauro 39
#define DVS_MAX_NUM_FREQS       50
40
 
41
extern int cpu26_freqs[DVS_MAX_NUM_FREQS];
42
 
582 mauro 43
int CPU26_installed(void);
44
int CPU26_init(void);
45
int CPU26_close(void);
46
 
47
void CPU26_showinfo(void);
48
 
779 giacomo 49
int CPU26_DVS_init(void);
50
int CPU26_DVS_close(void);
845 mauro 51
int CPU26_DVS_installed(void);
582 mauro 52
 
775 mauro 53
int CPU26_get_latency(void);
597 mauro 54
int CPU26_set_frequency(unsigned int target_freq, unsigned int relation);
55
int CPU26_get_cur_frequency(void);
56
int CPU26_get_min_frequency(void);
57
int CPU26_get_max_frequency(void);
779 giacomo 58
int CPU26_get_frequencies(int *buf);
59
int CPU26_show_frequencies(char *buf);
597 mauro 60
 
789 giacomo 61
int CPU26_set_suspend_modulation(unsigned char on_duration, unsigned char off_duration);
62
 
582 mauro 63
#endif
64