VIA Technologies NAB-7400 User Manual page 75

Hide thumbs Also See for NAB-7400:
Table of Contents

Advertisement

//input: none
//output: 1 = not correct SuperIO
//
0 = correct SuperIO
int detect_sio(void)
{
//check the SuperIO version
if(read_sio_reg(0,CR20_REG)==Fintek_ID)
else
}
unsigned char read_sio_reg(int bank_no, int reg_no)
{
unsigned char reg_data;
enter_sio_config();
outportb(SUPERIO_INDEX, BANK_REG);
delay(1);
outportb(SUPERIO_DATA, bank_no);
delay(1);
outportb(SUPERIO_INDEX, reg_no);
delay(1);
reg_data=inportb(SUPERIO_DATA);
exit_sio_config();
return reg_data;
return 0;
return 1;
67
Watchdog Timer Configuration

Advertisement

Table of Contents
loading

Table of Contents