BIOS Setup Information
29
GMB-C2165-LLVA User
‟
s Manual
int Get_IT8783_Byte_Val(
int IOINDEX,
int offset
);
void Set_IT8783_Byte_Val(
int IOINDEX,
int offset,
int Data
);
//MAIN Code Start
int main(){
return;
}
/*******************************************************
Procedure Name: Get Super IO GPIO Base address
Check defines in config file name
input 1 : INT IOINDEX
return : GPIO BASE
*******************************************************/
Int Get_IT8783_GPIOBase(int IOINDEX){
int IODATA = I 1;
int GPIOBASE;
//SIO Enter Key
Enter_IT8783_SIO(IOINDEX);
//Change LDN to 7 (GPIO)
Set_IT8783_LDN(IOINDEX,0x07);
//Get GPIO BASE
GPIOBASE = Get_IT8783_Byte_Val(IOINDEX,0x62) * 0x100;
GPIOBASE = GP Get_IT8783_Byte_Val(IOINDEX,0x63);
return GPIOBASE;
}
/*******************************************************
Procedure Name : Enter IT8783 Super IO
Check defines in config file name
input 1 : INT IOINDEX
*******************************************************/
void Enter_IT8783_SIO(int IOINDEX){
int IODATA = I 1;
outportb(IOINDEX,0x87);
outportb(IOINDEX,0x01);
outportb(IOINDEX,0x55);