Subversion Repositories shark

Rev

Rev 845 | 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
 
1063 tullio 19
/*
20
 * This program is free software; you can redistribute it and/or modify
21
 * it under the terms of the GNU General Public License as published by
22
 * the Free Software Foundation; either version 2 of the License, or
23
 * (at your option) any later version.
24
 *
25
 * This program is distributed in the hope that it will be useful,
26
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
 * GNU General Public License for more details.
29
 *
30
 * You should have received a copy of the GNU General Public License
31
 * along with this program; if not, write to the Free Software
32
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
33
 *
34
 */
35
 
582 mauro 36
/* Glue Layer Header Linux CPU Driver*/
37
 
38
#ifndef __SHARK_CPU26_H__
39
#define __SHARK_CPU26_H__
40
 
41
#define DVS_NONE                0
42
#define DVS_POWERNOW_K6         1
43
#define DVS_POWERNOW_K7         2
44
#define DVS_POWERNOW_K8         3
45
#define DVS_MEDIAGX_GEODE       4
46
#define DVS_P4_CLOCK_MOD        5
47
#define DVS_SS_CENTRINO         6
48
#define DVS_SS_ICH              7
49
#define DVS_SS_SMI              8
50
 
597 mauro 51
#define DVS_RELATION_L          0  /* lowest frequency at or above target */
52
#define DVS_RELATION_H          1  /* highest frequency below or at target */
53
 
54
#define DVS_LATENCY_ETERNAL     (-1)
55
 
775 mauro 56
#define DVS_MAX_NUM_FREQS       50
57
 
58
extern int cpu26_freqs[DVS_MAX_NUM_FREQS];
59
 
582 mauro 60
int CPU26_installed(void);
61
int CPU26_init(void);
62
int CPU26_close(void);
63
 
64
void CPU26_showinfo(void);
65
 
779 giacomo 66
int CPU26_DVS_init(void);
67
int CPU26_DVS_close(void);
845 mauro 68
int CPU26_DVS_installed(void);
582 mauro 69
 
775 mauro 70
int CPU26_get_latency(void);
597 mauro 71
int CPU26_set_frequency(unsigned int target_freq, unsigned int relation);
72
int CPU26_get_cur_frequency(void);
73
int CPU26_get_min_frequency(void);
74
int CPU26_get_max_frequency(void);
779 giacomo 75
int CPU26_get_frequencies(int *buf);
76
int CPU26_show_frequencies(char *buf);
597 mauro 77
 
789 giacomo 78
int CPU26_set_suspend_modulation(unsigned char on_duration, unsigned char off_duration);
79
 
582 mauro 80
#endif
81