![background image](http://html1.mh-extra.com/html/ibase-technology/mi805/mi805_user-manual_3312907059.webp)
APPENDIX
MI805 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 "6106.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int 6106_BASE;
void Unlock_6106 (void);
void Lock_6106 (void);
//---------------------------------------------------------------------------
unsigned int Init_6106(void)
{
unsigned int result;
unsigned char ucDid;
6106_BASE = 0x4E;
result = 6106_BASE;
ucDid = Get_6106_Reg(0x20);
if
(ucDid
==
0x07)
//6106
{
goto
Init_Finish;
}
6106_BASE = 0x2E;
result = 6106_BASE;
ucDid = Get_6106_Reg(0x20);
if
(ucDid
==
0x07)
//6106
{
goto
Init_Finish;
}
6106_BASE = 0x00;
result = 6106_BASE;
Init_Finish:
return
(result);
}
//---------------------------------------------------------------------------
void Unlock_6106 (void)
{
outportb(6106_INDEX_PORT,
6106_UNLOCK);
outportb(6106_INDEX_PORT,
6106_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_6106 (void)
{
outportb(6106_INDEX_PORT,
6106_LOCK);
}
//---------------------------------------------------------------------------
void Set_6106_LD( unsigned char LD)
{
Unlock_6106();
outportb(6106_INDEX_PORT,
6106_REG_LD);
outportb(6106_DATA_PORT,
LD);
Lock_6106();
}
//---------------------------------------------------------------------------
void Set_6106_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_6106();
outportb(6106_INDEX_PORT,
REG);
outportb(6106_DATA_PORT,
DATA);
Lock_6106();
}
//---------------------------------------------------------------------------
unsigned char Get_6106_Reg(unsigned char REG)
Summary of Contents for MI805
Page 1: ...MI805 Intel Celeron QC J1900 Mini ITX Motherboard USER S MANUAL Version 1 1...
Page 4: ...iv MI805 User s Manual This page is intentionally left blank...
Page 9: ...INTRODUCTION MI805 User s Manual 5 Board Dimensions...
Page 17: ...INSTALLATIONS MI805 User s Manual 13 JP8 Factory use only...
Page 19: ...INSTALLATIONS MI805 User s Manual 15 Connector Locations on MI805...
Page 54: ...DRIVERS INSTALLATION 50 MI805 User s Manual This page is intentionally left blank...