![AMI MI982 Скачать руководство пользователя страница 71](http://html.mh-extra.com/html/ami/mi982/mi982_user-manual_2932205071.webp)
APPENDIX
MI982 User’s Manual
67
//---------------------------------------------------------------------------
//
// T HIS CODE AND INFORMAT ION IS PROVIDED "AS IS" WIT HOUT WARRANT Y OF ANY
// KIND, EIT HER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMIT ED T O T HE
// IMPLIED WARRANT IES OF MERCHANT ABILIT Y AND/OR FIT NESS FOR A PART ICULAR
// PURPOSE.
//
//---------------------------------------------------------------------------
#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 == 0x07)
//Fintek 81866
{
goto Init_Finish;
}
F81866_BASE = 0x2E;
result = F81866_BASE;
ucDid = Get_F81866_Reg(0x20);
if (ucDid == 0x07)
//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_DAT A_PORT , LD);
Lock_F81866();
}
//---------------------------------------------------------------------------
void Set_F81866_Reg( unsigned char REG, unsigned char DAT A)
{
Unlock_F81866();
outportb(F81866_INDEX_PORT , REG);
outportb(F81866_DAT A_PORT , DAT A);
Содержание MI982
Страница 1: ...MI982 Intel H81 Based Mini ITX board Mini ITX Motherboard USER S MANUAL Version 1 0 ...
Страница 4: ...iv MI982 User s Manual This page is intentionally left blank ...
Страница 8: ...INTRODUCTION 4 MI982 User s Manual Board Dimensions ...
Страница 9: ...INSTALLATIONS MI982 User s Manual 5 ...
Страница 13: ...INSTALLATIONS MI982 User s Manual 9 Jumper Locations on MI982 ...
Страница 19: ...INSTALLATIONS MI982 User s Manual 15 Connector Locations on MI982 ...
Страница 20: ...INSTALLATIONS 16 MI982 User s Manual ...
Страница 31: ...INSTALLATIONS MI982 User s Manual 27 This page is intentionally left blank ...
Страница 57: ...BIOS SETUP MI982 User s Manual 53 ...
Страница 65: ...DRIVERS INSTALLATION MI982 User s Manual 61 This page is intentionally set blank ...
Страница 69: ...APPENDIX MI982 User s Manual 65 return 0 ...
Страница 72: ...APPENDIX 68 MI982 User s Manual Lock_F81866 ...