System Installation
WADE-8078 User’s Manual
3-4
unsigned char IBF_status;
do
{
pw_udelay (20); // delay 20 us
outportb
(EC_CMD,
&IBF_status);
} while (IBF_status & 0x02);
return
1;
}
static int OBF_Check ()
{
unsigned char OBF_status;
do
{
pw_udelay (20); // delay 20 us
OBP_status = inportb (EC_CMD);
} while (!(OBF_status & 0x01));
return
1;
}
static void Write_EC (unsigned char index, unsigned char data)
{
IBF_Check
();
outportb (EC_CMD, EC_CMD_WRITE);
IBF_Check
();
outportb (EC_DATA, index);
IBF_Check
();
outportb (EC_DATA, data);
}
static unsigned char Read_EC (unsigned char address)
{
unsigned char data;
IBF_Check
();
outportb (EC_CMD, EC_CMD_READ);
IBF_Check
();
outportb (EC_DATA, address);
OBF_Check();
data = inportb (EC_DATA);
return
data;
}
void EC_WDT_Trigger ()
{
/* WDT Counter */
Write_EC (WDT_SEC, 0x05);
Содержание WADE-8078
Страница 7: ...System Overview WADE 8078 User s Manual 1 4 1 3 1 Mechanical Drawing...
Страница 8: ...System Overview WADE 8078 User s Manual 1 5...
Страница 11: ...Hardware Configuration WADE 8078 User s Manual 2 2 Figure 2 1 WADE 8078 Jumper and Connector Locations...
Страница 45: ...BIOS Setup Information WADE 8078 User s Manual 4 20 4 4 Others SIO Configuration...