APPENDIX
64
MI808 User’s Manual
//---------------------------------------------------------------------------
#include "F81866.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int F81866_BASE;
void Unlock_F81866 (void);
void Lock_F81866 (void);
//---------------------------------------------------------------------------
unsigned int Init_F81866(void)
{
unsigned int result;
unsigned char ucDid;
F81866_BASE = 0x4E;
result = F81866_BASE;
ucDid = Get_F81866_Reg(0x20);
if
(ucDid
==
0x10)
//Fintek
81866
{
goto
Init_Finish;
}
F81866_BASE = 0x2E;
result = F81866_BASE;
ucDid = Get_F81866_Reg(0x20);
if
(ucDid
==
0x10)
//Fintek
81866
{
goto
Init_Finish;
}
F81866_BASE = 0x00;
result = F81866_BASE;
Init_Finish:
return
(result);
}
//---------------------------------------------------------------------------
void Unlock_F81866 (void)
{
outportb(F81866_INDEX_PORT,
F81866_UNLOCK);
outportb(F81866_INDEX_PORT,
F81866_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_F81866 (void)
{
outportb(F81866_INDEX_PORT,
F81866_LOCK);
}
//---------------------------------------------------------------------------
void Set_F81866_LD( unsigned char LD)
{
Unlock_F81866();
outportb(F81866_INDEX_PORT,
F81866_REG_LD);
outportb(F81866_DATA_PORT,
LD);
Lock_F81866();
}
//---------------------------------------------------------------------------
void Set_F81866_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81866();
outportb(F81866_INDEX_PORT,
REG);
outportb(F81866_DATA_PORT,
DATA);
Lock_F81866();
}
//---------------------------------------------------------------------------
unsigned char Get_F81866_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_F81866();
outportb(F81866_INDEX_PORT,
REG);
Result = inportb(F81866_DATA_PORT);
Lock_F81866();
return
Result;
Содержание MI808
Страница 1: ...MI808 Mini ITX Motherboard USER S MANUAL Version 1 1...
Страница 4: ...iv MI808 User s Manual This page is intentionally left blank...
Страница 8: ...INTRODUCTION 4 MI808 User s Manual CFast x 1 solder side Except MI808FW 370A...
Страница 10: ...INTRODUCTION 6 MI808 User s Manual Board Dimensions...
Страница 19: ...INSTALLATIONS MI808 User s Manual 15 J22 ATX AT Mode Setting Function Open ATX Default Close AT...
Страница 21: ...INSTALLATIONS MI808 User s Manual 17 Connector Locations on MI808 Connector Locations on MI808...
Страница 24: ...INSTALLATIONS 20 MI808 User s Manual CN9 CFAST Connector J1 J2 LVDS Connectors Hirose DF20G 20DP 1V 1 19 2 20...
Страница 28: ...INSTALLATIONS 24 MI808 User s Manual J10 DDR3L SO DIMM CH A Sockets J13 DDR3L SO DIMM CH B Sockets...
Страница 30: ...INSTALLATIONS 26 MI808 User s Manual J15 Amplifier Connector Pin Signal Name 1 OUTL 2 OUTL 3 OUTR 4 OUTR 4 1...
Страница 35: ...INSTALLATIONS MI808 User s Manual 31 J7 SIM Card Slot JP5 JP6 Reserved J14 LPT Port Connector...