![background image](http://html1.mh-extra.com/html/ibase-technology/mbd301/mbd301_user-manual_605016065.webp)
Appendix
MBD301
User’s Manual
57
//---------------------------------------------------------------------------
void Lock_F81846 (void)
{
outportb(F81846_INDEX_PORT, F81846_LOCK);
}
//---------------------------------------------------------------------------
void Set_F81846_LD( unsigned char LD)
{
Unlock_F81846();
outportb(F81846_INDEX_PORT, F81846_REG_LD);
outportb(F81846_DATA_PORT, LD);
Lock_F81846();
}
//---------------------------------------------------------------------------
void Set_F81846_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81846();
outportb(F81846_INDEX_PORT, REG);
outportb(F81846_DATA_PORT, DATA);
Lock_F81846();
}
//---------------------------------------------------------------------------
unsigned char Get_F81846_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_F81846();
outportb(F81846_INDEX_PORT, REG);
Result = inportb(F81846_DATA_PORT);
Lock_F81846();
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 F81846_H
#define F81846_H
1
//---------------------------------------------------------------------------
#define
F81846_INDEX_PORT
(F81846_BASE)
#define
F81846_DATA_PORT
(F8181)
//---------------------------------------------------------------------------
#define
F81846_REG_LD
0x07
//---------------------------------------------------------------------------
#define
F81846_UNLOCK
0x87
#define
F81846_LOCK
0xAA
//---------------------------------------------------------------------------
unsigned int Init_F81846(void);
void Set_F81846_LD( unsigned char);
Summary of Contents for MBD301
Page 8: ...viii MBD301 User s Manual This page is intentionally left blank ...
Page 13: ...General Information MBD301 User s Manual 5 1 1 6 Block Diagram ...
Page 16: ...8 MBD301 User s Manual This page is intentionally left blank ...
Page 42: ...34 MBD301 User s Manual ...
Page 49: ...BIOS Setup MBD301 User s Manual 41 4 4 4 6 CPU Configuration 4 4 7 USB Configuration ...