Drivers installations 54, Mi958 user’s manual – IBASE MI958 User Manual

Page 58

Advertising
background image

DRIVERS INSTALLATIONS

54

MI958 User’s Manual

outportb(F81865_INDEX_PORT,

REG);

Result = inportb(F81865_DATA_PORT);

Lock_F81865();
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 __F81865_H
#define

__F81865_H

1

//---------------------------------------------------------------------------
#define F81865_INDEX_PORT

(F81865_BASE)

#define F81865_DATA_PORT (F81865_BASE+1)
//---------------------------------------------------------------------------
#define F81865_REG_LD

0x07

//---------------------------------------------------------------------------
#define

F81865_UNLOCK

0x87

#define F81865_LOCK 0xAA
//---------------------------------------------------------------------------
unsigned int Init_F81865(void);
void Set_F81865_LD( unsigned char);
void Set_F81865_Reg( unsigned char, unsigned char);
unsigned char Get_F81865_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif //__F81865_H

Advertising