INSTALLATIONS
24
MB966 User’s Manual
//NewData : 1 for input, 0 for output
Set_W627DHG_LD(0x09);
//switch to logic device 9
Set_W627DHG_Reg(0xF0, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio3GetDirection(void)
{
unsigned char result;
Set_W627DHG_LD(0x09);
//switch to logic device 9
result = Get_W627DHG_Reg(0xF0);
return (result);
}
//---------------------------------------------------------------------------
Filename
:
W627DHG.cpp
//---------------------------------------------------------------------------
//
// 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 "W627DHG.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int W627DHG_BASE;
void Unlock_W627DHG (void);
void Lock_W627DHG (void);
//---------------------------------------------------------------------------
unsigned int Init_W627DHG(void)
{
unsigned int result;
unsigned char ucDid;
W627DHG_BASE = 0x4E;
result = W627DHG_BASE;
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0xA0)
//W83627DHG
{
goto Init_Finish;
}
else if (ucDid == 0xB0)
//W83627DHG-P
{
goto Init_Finish;
}
W627DHG_BASE = 0x2E;
result = W627DHG_BASE;
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0xA0)
//W83627DHG
{
goto Init_Finish;
}
else if (ucDid == 0xB0)
//W83627DHG-P
{
goto Init_Finish;
}
W627DHG_BASE = 0x00;
result = W627DHG_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_W627DHG (void)
{
outportb(W627DHG_INDEX_PORT, W627DHG_UNLOCK);
outportb(W627DHG_INDEX_PORT, W627DHG_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_W627DHG (void)
{
outportb(W627DHG_INDEX_PORT, W627DHG_LOCK);
}
//---------------------------------------------------------------------------
Содержание MB966
Страница 1: ...MB966 Intel Xeon Core i3 i5 i7 Motherboard USER S MANUAL Version 1 3 ...
Страница 5: ...MB966 User s Manual v This page is intentionally left blank ...
Страница 6: ......
Страница 11: ...INTRODUCTION MB966 User s Manual 5 Board Dimensions ...
Страница 12: ...INTRODUCTION 6 MB966 User s Manual This page is intentionally left blank ...
Страница 21: ...INSTALLATIONS MB966 User s Manual 15 Connector Locations on MB966 ...
Страница 58: ...BIOS SETUP 52 MB966 User s Manual This page is intentionally left blank aa ...