![background image](http://html1.mh-extra.com/html/ibase-technology/mi959/mi959_user-manual_3345528051.webp)
APPENDIX
MI959 User’s Manual
47
//---------------------------------------------------------------------------
//
// 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 MI959
Page 1: ...MI959 AMD R series APC A70M FCH Mini ITX Motherboard USER S MANUAL Version 1 0...
Page 4: ...iv MI959 User s Manual This page is intentionally left blank...
Page 8: ...INTRODUCTION 4 MI959 User s Manual Board Dimensions...
Page 15: ...INSTALLATIONS MI959 User s Manual 11 Connector Locations on MI959...