Appendix
ET875 Series
User’s Manual
49
//
// 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();
Содержание ET875 Series
Страница 8: ...viii ET875 Series User s Manual This page is intentionally left blank...
Страница 13: ...General Information ET875 Series User s Manual 5 1 1 6 Block Diagram...
Страница 18: ...10 ET875 Series User s Manual This page is intentionally left blank...
Страница 28: ...20 ET875 Series User s Manual This page is intentionally left blank...
Страница 42: ...34 ET875 Series User s Manual 4 5 Chipset Settings...