AR-B1893CM6C User’s Guide
AR-B1893CM6C Celeron M Inside
with DDR SO DIMM, 4 Port built in LAN, 1 Mini PCI, 1 CF
38
outportb(config_data,0x00);
outportb(config_port,0x07); //Choose LD8 - Watchdog
outportb(config_data,0x08);
outportb(config_port,0x30); //Activate LD8
outportb(config_data,0x01);
if(time_unit ==1)
tmp=0x08;
else
tmp=0x00;
outportb(config_port,0xF5); //Choose watchdog time unit
outportb(config_data,tmp);
outportb(config_port,0xF6); //Set watchdog time-out
outportb(config_data,time_out);
}
void close_superio()
{
outportb(config_port,0xAA);
}
void print_help_message()
{
printf(" AR-M9942 Watchdog Test program\n");
printf("Usage: wdog [-h] [<number>s|m]\n");
printf("Example:\n");
printf("\twdog -h\t\t: printf this help message\n");
printf("\twdog \t\t: computer will reboot in 3 seconds (this is default)\n");
printf("\twdog 12s\t: computer will reboot in 12 seconds\n");
printf("\twdog 200m\t: computer will reboot in 200 minutes\n");
}