66
Utilities
Sample Code
The sample program written in C shown below offers an interactive
way to test the Watchdog Timer under DOS.
#include<stdio.h>
#include<dos.h>
static unsigned int IT8712_ioPort = 0x2e;
void Enter_IT8712_Config(unsigned int flag)
{
if(flag) IT8712_ioPort = 0x4e;
else IT8712_ioPort = 0x2e;
switch(IT8712_ioPort)
{
case 0x2E: //Address port = 0x2E, enter keys =
0x87, 0x01, 0x55, 0x55
outportb(0x2E, 0x87);
outportb(0x2E, 0x01);
outportb(0x2E, 0x55);
outportb(0x2E, 0x55);
break;
case 0x4E: //Address port = 0x4E, enter keys =
0x87, 0x01, 0x55, 0xAA
outportb(0x4E, 0x87);
outportb(0x4E, 0x01);
outportb(0x4E, 0x55);
outportb(0x4E, 0xAA);
break;
default:
break;
}
}
void Exit_IT8712_Config(unsigned int flag)
{
if(flag) IT8712_ioPort = 0x4e;
outportb(IT8712_ioPort, 0x02);
outportb(IT87121, 0x02);
}
Summary of Contents for cPCI-6965 Series
Page 6: ...vi Preface This page intentionally left blank ...
Page 12: ...vi List of Tables This page intentionally left blank ...
Page 14: ...viii List of Figures This page intentionally left blank ...
Page 36: ...22 Functional Description This page intentionally left blank ...
Page 62: ...48 Board Interfaces This page intentionally left blank ...
Page 76: ...62 Getting Started This page intentionally left blank ...
Page 84: ...70 Utilities This page intentionally left blank ...
Page 112: ...98 BIOS Setup Utility This page intentionally left blank ...