APPENDIX
MI957 User’s Manual
67
//---------------------------------------------------------------------------
//
// 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 "F81865.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int F81865_BASE;
void Unlock_F81865 (void);
void Lock_F81865 (void);
//---------------------------------------------------------------------------
unsigned int Init_F81865(void)
{
unsigned int result;
unsigned char ucDid;
F81865_BASE = 0x4E;
result = F81865_BASE;
ucDid = Get_F81865_Reg(0x20);
if
(ucDid
==
0x07)
//Fintek
81865
{
goto
Init_Finish;
}
F81865_BASE = 0x2E;
result = F81865_BASE;
ucDid = Get_F81865_Reg(0x20);
if
(ucDid
==
0x07)
//Fintek
81865
{
goto
Init_Finish;
}
F81865_BASE = 0x00;
result = F81865_BASE;
Init_Finish:
return
(result);
}
//---------------------------------------------------------------------------
void Unlock_F81865 (void)
{
outportb(F81865_INDEX_PORT,
F81865_UNLOCK);
outportb(F81865_INDEX_PORT,
F81865_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_F81865 (void)
{
outportb(F81865_INDEX_PORT,
F81865_LOCK);
}
//---------------------------------------------------------------------------
void Set_F81865_LD( unsigned char LD)
{
Unlock_F81865();
outportb(F81865_INDEX_PORT,
F81865_REG_LD);
outportb(F81865_DATA_PORT,
LD);
Lock_F81865();
}
//---------------------------------------------------------------------------
void Set_F81865_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81865();
outportb(F81865_INDEX_PORT,
REG);
outportb(F81865_DATA_PORT,
DATA);
Lock_F81865();
}
//---------------------------------------------------------------------------
Содержание MI957
Страница 1: ...MI957 Intel ArrandaleTM PCH Mini ITX Motherboard USER S MANUAL Version 1 0A ...
Страница 8: ...INTRODUCTION Board Dimensions 4 MI957 User s Manual ...
Страница 9: ...INTRODUCTION MI957 User s Manual 5 ...
Страница 18: ...INSTALLATIONS Connector Locations on MI957 14 MI957 User s Manual ...
Страница 63: ...DRIVERS INSTALLATION 6 When InstallShield Wizard is complete click Finish MI957 User s Manual 59 ...
Страница 66: ...DRIVER INSTALLATION 62 MI957 User s Manual ...