Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 774 → Rev 775

/shark/trunk/drivers/cpu/shark/shark_cpu.c
19,7 → 19,7
#include <kernel/func.h>
#include "../include/drivers/shark_cpu26.h"
 
#define __CPU26_DEBUG__
//#define __CPU26_DEBUG__
 
/* CPU Initialization */
extern void early_cpu_init(void);
57,10 → 57,12
extern int cpufreq_get_min_freq(void);
extern int cpufreq_get_max_freq(void);
extern int cpufreq_get_latency(void);
extern int cpufreq_get_available_freqs(int *buf);
extern int cpufreq_show_available_freqs(char *buf);
 
static int cpu_installed = FALSE;
static int dvs_installed = DVS_NONE;
int cpu26_freqs[DVS_MAX_NUM_FREQS];
 
/* DVS user function */
inline int CPU26_set_frequency(unsigned int target_freq, unsigned int relation)
83,8 → 85,13
return cpufreq_get_max_freq();
}
 
inline int CPU26_get_frequencys(char *buf)
inline int CPU26_get_frequencys(int *buf)
{
return cpufreq_get_available_freqs (buf);
}
 
inline int CPU26_show_frequencys(char *buf)
{
return cpufreq_show_available_freqs (buf);
}