IBASE Technology AGS102 User Manual page 79

Advanced gateway & ultra-compact fanless system
Hide thumbs Also See for AGS102:
Table of Contents

Advertisement

outportb(F81964_DATA_PORT, LD); Lock_F81964();
}
//---------------------------------------------------------------------------
void Set_F81964_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81964();
outportb(F81964_INDEX_PORT, REG);
outportb(F81964_DATA_PORT, DATA);
Lock_F81964();
}
//---------------------------------------------------------------------------
unsigned char Get_F81964_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_F81964();
outportb(F81964_INDEX_PORT, REG);
Result = inportb(F81964_DATA_PORT);
Lock_F81964();
return Result;
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
//---------------------------------------------------------------------------
#ifndef
F81964_H
#define
F81964_H
//---------------------------------------------------------------------------
#define
F81964_INDEX_PORT
#define
F81964_DATA_PORT
//---------------------------------------------------------------------------
#define
F81964_REG_LD
//---------------------------------------------------------------------------
#define F81964_UNLOCK 0x87
#define
F81964_LOCK 0xAA
//---------------------------------------------------------------------------
unsigned int Init_F81964(void);
void Set_F81964_LD( unsigned char);
void Set_F81964_Reg( unsigned char, unsigned char); unsigned char
Get_F81964_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif //
F81964_H
AGS100/T & AGS102/T User Manual
1
(F81964_BASE)
(F81964_BASE+1)
0x07
Appendix
71

Advertisement

Table of Contents
loading

Table of Contents