Rev 597 |
Rev 779 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*
* Project: S.Ha.R.K.
*
* Coordinators:
* Giorgio Buttazzo <giorgio@sssup.it>
* Paolo Gai <pj@gandalf.sssup.it>
*
* Authors :
* Mauro Marinoni <mauro.marinoni@unipv.it>
*
*
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
*
* http://www.sssup.it
* http://retis.sssup.it
* http://shark.sssup.it
*/
/* Glue Layer Header Linux CPU Driver*/
#ifndef __SHARK_CPU26_H__
#define __SHARK_CPU26_H__
#define DVS_NONE 0
#define DVS_POWERNOW_K6 1
#define DVS_POWERNOW_K7 2
#define DVS_POWERNOW_K8 3
#define DVS_MEDIAGX_GEODE 4
#define DVS_P4_CLOCK_MOD 5
#define DVS_SS_CENTRINO 6
#define DVS_SS_ICH 7
#define DVS_SS_SMI 8
#define DVS_RELATION_L 0 /* lowest frequency at or above target */
#define DVS_RELATION_H 1 /* highest frequency below or at target */
#define DVS_LATENCY_ETERNAL (-1)
int CPU26_installed(void);
int CPU26_init(void);
int CPU26_close(void);
void CPU26_showinfo(void);
int CPU26_initDVS(void);
int CPU26_closeDVS(void);
int CPU26_set_frequency(unsigned int target_freq, unsigned int relation);
int CPU26_get_cur_frequency(void);
int CPU26_get_min_frequency(void);
int CPU26_get_max_frequency(void);
int CPU26_get_frequencys(char *buf);
int CPU26_get_latency(void);
#endif