APPENDIX
MI945X User’s Manual
57
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0xA0)
//W83627DHG??
{
goto Init_Finish;
}
else if (ucDid == 0xB0)
//W83627DHG-P??
{
goto Init_Finish;
}
W627DHG_BASE = 0x2E;
result = W627DHG_BASE;
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0xA0)
//W83627DHG??
{
goto Init_Finish;
}
else if (ucDid == 0xB0)
//W83627DHG-P??
{
goto Init_Finish;
}
W627DHG_BASE = 0x00;
result = W627DHG_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_W627DHG (void)
{
outportb(W627DHG_INDEX_PORT, W627DHG_UNLOCK);
outportb(W627DHG_INDEX_PORT, W627DHG_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_W627DHG (void)
{
outportb(W627DHG_INDEX_PORT, W627DHG_LOCK);
}
//---------------------------------------------------------------------------
void Set_W627DHG_LD( unsigned char LD)
{
Unlock_W627DHG();
outportb(W627DHG_INDEX_PORT, W627DHG_REG_LD);
outportb(W627DHG_DATA_PORT, LD);
Lock_W627DHG();
}
//---------------------------------------------------------------------------
void Set_W627DHG_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_W627DHG();
outportb(W627DHG_INDEX_PORT, REG);
outportb(W627DHG_DATA_PORT, DATA);
Lock_W627DHG();
}
//---------------------------------------------------------------------------
unsigned char Get_W627DHG_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_W627DHG();
outportb(W627DHG_INDEX_PORT, REG);
Result = inportb(W627DHG_DATA_PORT);
Lock_W627DHG();
return Result;
}
//---------------------------------------------------------------------------
Summary of Contents for MI945X
Page 1: ...MI945X Intel CoreTM 2 Duo GM45 Mini ITX Motherboard USER S MANUAL Version 1 0B ...
Page 8: ...INTRODUCTION 4 MI945X User s Manual Board Dimensions ...
Page 9: ...INTRODUCTION MI945X User s Manual 5 ...
Page 10: ...INTRODUCTION 6 MI945X User s Manual This page is intentionally left blank ...
Page 62: ...APPENDIX 58 MI945X User s Manual This page is intentionally left blank ...