Base Clock
From Wiki.cyring.fr
Source code to read the Base Clock of the ASUS Rampage II GENE
// bclk.c
#include
#include
#include
int bios_bclk()
{
int fd = -1;
ssize_t br = 1;
char buf[2];
int clk = 0;
if( (fd = open("/dev/mem", O_RDONLY)) != -1 )
{
if( (lseek(fd, 0xf08d9 + 0x12, SEEK_SET ) != -1)
&& ((br = read(fd, buf, 2)) !=1) )
clk = ((unsigned char) (buf[0])) + ((unsigned char) (buf[1] << 8));
close(fd);
}
else
clk = 0;
return(clk);
}
int main(int argc, char **argv)
{
printf( "BCLK=%d MHzn", bios_bclk() );
}