![Fortec Star ET876 User Manual Download Page 65](http://html1.mh-extra.com/html/fortec-star/et876/et876_user-manual_2321397065.webp)
Appendix
ET876 Series
User’s Manual
55
// 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.
//
//---------------------------------------------------------------------------
#include "F81804.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int F81804_BASE;
void Unlock_F81804 (void);
void Lock_F81804 (void);
//---------------------------------------------------------------------------
unsigned int Init_F81804(void)
{
unsigned int result;
unsigned char ucDid;
F81804_BASE = 0x4E;
result = F81804_BASE;
ucDid = Get_F81804_Reg(0x20);
if (ucDid == 0x07)
//Fintek 81804
{
goto Init_Finish;
}
F81804_BASE = 0x2E;
result = F81804_BASE;
ucDid = Get_F81804_Reg(0x20);
if (ucDid == 0x07)
//Fintek 81804
{
goto Init_Finish;
}
F81804_BASE = 0x00;
result = F81804_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_F81804 (void)
{
outportb(F81804_INDEX_PORT, F81804_UNLOCK);
outportb(F81804_INDEX_PORT, F81804_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_F81804 (void)
{
outportb(F81804_INDEX_PORT, F81804_LOCK);
}
//---------------------------------------------------------------------------
void Set_F81804_LD( unsigned char LD)
{
Unlock_F81804();
outportb(F81804_INDEX_PORT, F81804_REG_LD);
outportb(F81804_DATA_PORT, LD);
Lock_F81804();
}
Summary of Contents for ET876
Page 1: ......
Page 9: ...ET876 Series User s Manual vii This page is intentionally left blank...
Page 10: ......
Page 15: ...General Information ET876 Series User s Manual 5 1 1 6 Block Diagram...
Page 20: ...10 ET876 Series User s Manual This page is intentionally left blank...
Page 30: ...20 ET876 Series User s Manual This page is intentionally left blank...
Page 38: ...28 ET876 Series User s Manual...
Page 39: ...BIOS Setup ET876 Series User s Manual 29 4...
Page 42: ...32 ET876 Series User s Manual 4 4 5 2 Serial Port 2 Configuration...
Page 48: ...38 ET876 Series User s Manual 4 5 Chipset Settings...