EasyManua.ls Logo

AMD MD740 - Page 57

AMD MD740
62 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APPENDIX
MB740 User’s Manual 53
result = 1;
goto Init_Finish;
}
ITE8705_BASE = 0x00;
result = 0;
Init_Finish:
return (result);
}
//============================================================
void Unlock_ITE8705 (void)
{
outportb(ITE8705_INDEX_PORT, ITE8705_UNLOCK1);
outportb(ITE8705_INDEX_PORT, ITE8705_UNLOCK2);
outportb(ITE8705_INDEX_PORT, ITE8705_UNLOCK3);
if (ITE8705_BASE == 0x2E)
outportb(ITE8705_INDEX_PORT, ITE8705_UNLOCK3);
else
outportb(ITE8705_INDEX_PORT, ITE8705_UNLOCK4);
}
//============================================================
void Lock_ITE8705 (void)
{
outportb(ITE8705_INDEX_PORT, ITE8705_LOCK);
}
//============================================================
void Set_ITE8705_LD( unsigned char LD)
{
Unlock_ITE8705();
outportb(ITE8705_INDEX_PORT, ITE8705_REG_LD);
outportb(ITE8705_DATA_PORT, LD);
Lock_ITE8705();
}
//============================================================
void Set_ITE8705_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_ITE8705();
outportb(ITE8705_INDEX_PORT, REG);
outportb(ITE8705_DATA_PORT, DATA);
Lock_ITE8705();
}
//============================================================
unsigned char Get_ITE8705_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_ITE8705();
outportb(ITE8705_INDEX_PORT, REG);
Result = inportb(ITE8705_DATA_PORT);
Lock_ITE8705();
return Result;
}
//==============================
==============================

Table of Contents

Related product manuals