APPENDIX
MI945 User’s Manual
59
//===========================================================================
//
// 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 = 0x2E;
result = W627DHG_BASE;
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0x88)
{
goto Init_Finish;
}
W627DHG_BASE = 0x4E;
result = W627DHG_BASE;
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0x88)
{
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);
}
//===========================================================================
void Set_W627DHG_LD( unsigned char LD)
{
Unlock_W627DHG();
outportb(W627DHG_INDEX_PORT, W627DHG_REG_LD);
outportb(W627DHG_DATA_PORT, LD);
Lock_W627DHG();
}
Содержание MI945
Страница 1: ...MI945 Intel CoreTM 2 Duo GM45 Mini ITX Motherboard USER S MANUAL Version 1 0A ...
Страница 8: ...INTRODUCTION 4 MI945 User s Manual Board Dimensions ...
Страница 17: ...INSTALLATIONS MI945 User s Manual 13 Connector Locations on MI945 ...
Страница 50: ...BIOS SETUP 46 MI945 User s Manual This page is intentionally left blank ...