APPENDIX
60
MB950 User’s Manual
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();
}
//---------------------------------------------------------------------------
unsigned char Get_F81865_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_F81865();
outportb(F81865_INDEX_PORT, REG);
Result = inportb(F81865_DATA_PORT);
Lock_F81865();
return Result;
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
// 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.
//
//---------------------------------------------------------------------------
#ifndef __F81865_H
#define __F81865_H
1
//---------------------------------------------------------------------------
#define
F81865_INDEX_PORT
(F81865_BASE)
#define
F81865_DATA_PORT
(F8181)
//---------------------------------------------------------------------------
#define
F81865_REG_LD
0x07
//---------------------------------------------------------------------------
#define F81865_UNLOCK
0x87
#define
F81865_LOCK
0xAA
//---------------------------------------------------------------------------
unsigned int Init_F81865(void);
void Set_F81865_LD( unsigned char);
void Set_F81865_Reg( unsigned char, unsigned char);
unsigned char Get_F81865_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif
//__F81865_H
Summary of Contents for MB950
Page 1: ...MB950 Intel Core i3 i5 i7 ATX Motherboard USER S MANUAL Version 1 0A ...
Page 8: ...INTRODUCTION 4 MB950 User s Manual Board Dimensions ...
Page 58: ...DRIVER INSTALLATION 54 MB950 User s Manual This page is intentionally left blank ...
Page 62: ...APPENDIX 58 MB950 User s Manual Set_F81865_Reg 0x2B bBuf Enable WDTO ...