![background image](http://html1.mh-extra.com/html/ibase-technology/ib903f/ib903f_user-manual_3251008056.webp)
APPENDIX
52
IB903F User’s Manual
//---------------------------------------------------------------------------
//
// 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 "F81846.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int F81846_BASE;
void Unlock_F81846 (void);
void Lock_F81846 (void);
//---------------------------------------------------------------------------
unsigned int Init_F81846(void)
{
unsigned int result;
unsigned char ucDid;
F81846_BASE = 0x4E;
result = F81846_BASE;
ucDid = Get_F81846_Reg(0x20);
if (ucDid == 0x07)
//Fintek 81866
{
goto Init_Finish;
}
F81846_BASE = 0x2E;
result = F81846_BASE;
ucDid = Get_F81846_Reg(0x20);
if (ucDid == 0x07)
//Fintek 81866
{
goto Init_Finish;
}
F81846_BASE = 0x00;
result = F81846_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_F81846 (void)
{
outportb(F81846_INDEX_PORT, F81846_UNLOCK);
outportb(F81846_INDEX_PORT, F81846_UNLOCK);
}
//---------------------------------------------------------------------------
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();
}
//---------------------------------------------------------------------------
Summary of Contents for IB903F
Page 1: ...IB903F AMD Embedded G Series 3 5 Disk Size SBC USER S MANUAL Version 1 0...
Page 4: ...iv IB903F User s Manual This page is intentionally left blank...
Page 8: ...INTRODUCTION 4 IB903F User s Manual Board Dimensions...
Page 16: ...INSTALLATIONS 12 IB903F User s Manual Connector Locations on IB903F...
Page 58: ...APPENDIX 54 IB903F User s Manual This page is intentionally left blank...