64
Utilities
Sample Code
The sample program written in C shown below offers an interac-
tive way to test the Watchdog Timer under DOS.
#include<stdio.h>
#include<dos.h>
static unsigned int W83627UHG_ioPort = 0x2e;
void Enter_W83627UHG_Config(unsigned int flag)
{
if(flag) W83627UHG_ioPort = 0x4e;
outportb(W83627UHG_ioPort, 0x87);
outportb(W83627UHG_ioPort, 0x87);
}
void Get_W83627UHG_ID(unsigned int &ID1, unsigned int
&ID2)
{
outportb(W83627UHG_ioPort, 0x20);
ID1 = inportb(W83627UHG1);
outportb(W83627UHG_ioPort, 0x21);
ID2 = inportb(W83627UHG1);
}
void W83627UHG_WDT_Run(unsigned int count_value, unsigned
int PLEDflag)
{
unsigned int tempCount, registerValue;
outportb(W83627UHG_ioPort, 0x07);
outportb(W83627UHG1, 8); // CR07 set Logical
Device 8
if(count_value >= 60)
{
outportb(W83627UHG_ioPort, 0xf5);
registerValue = inportb(W83627UHG1);
registerValue |= 0x04;
outportb(W83627UHG1, registerValue); /
/ set Minute mode
Содержание cPCI-6930
Страница 6: ...vi Preface This page intentionally left blank ...
Страница 10: ...x Table of Contents This page intentionally left blank ...
Страница 12: ...xii List of Figures This page intentionally left blank ...
Страница 14: ...xiv List of Tables This page intentionally left blank ...
Страница 20: ...6 Introduction This page intentionally left blank ...
Страница 28: ...14 Specifications This page intentionally left blank ...
Страница 34: ...20 Functional Description This page intentionally left blank ...
Страница 52: ...38 Board Interfaces This page intentionally left blank ...
Страница 72: ...58 Getting Started 8 Mezzanine card installation is completed ...
Страница 74: ...60 Getting Started This page intentionally left blank ...
Страница 76: ...62 Driver Installation ...
Страница 96: ...82 BIOS Setup 8 3 5 SAS Configuration ...
Страница 98: ...84 BIOS Setup 8 3 7 H W Monitor You can use this screen to check system health status ...
Страница 104: ...90 BIOS Setup 8 3 11 iSCSI iSCSI Initiator Name The worldwide unique name of the initiator Only IQN format is accepted ...
Страница 110: ...96 BIOS Setup DIMM Information ...
Страница 138: ...124 IPMI User Guide This page intentionally left blank ...