BIOS Setup Information
31
GMB-C2165-LLVA User
‟
s Manual
}
/*******************************************************
Procedure Name: Set IT8783 offset data
Description: Set Byte data to IT8783 offset
input 1 : INT IOINDEX
input 2 : INT offset
input 3 : INT Data
*******************************************************/
void Set_IT8783_Byte_Val(
int IOINDEX,
int offset,
int Data ) {
int IODATA = I 1;
outportb(IOINDEX,offset);
outportb(IODATA, Data);
return;
}
/*******************************************************
Procedure Name: Set GPIO Pin 1 Mode & In/Out data
Description: Set GPIO Pin I/O Mode
if GPIOMode is Input, input 2 data will
don‟t care and this function will return
read value.
Pin 1: GP60
input 1 : INT GPIOMode
input 2 : INT Data
Out 1: INT Data
*******************************************************/
int SET_GPIO_PIN1(
int GPIOMode,
int Data ) {
//GPIO Mode is Output
if(GPIOMode = 0){
Set_IT8783_Byte_Val(0x2E,0xCD,Get_IT8783_Byte_Val(0x2E,0xCD)|
(1<<0));
//if Data is HIGH
if(Data==1){
outportb( 5, 1<<0);
}
//if Data is LOW
if(Data==0){
outportb( 5, (inportb( 5) & ~(1<<0) ) );
}
return NULL;