IBASE Technology IB903F User Manual page 57

Amd embedded g-series 3.5” disk size sbc
Table of Contents

Advertisement

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
//---------------------------------------------------------------------------
#define F81846_INDEX_PORT
#define F81846_DATA_PORT
//---------------------------------------------------------------------------
#define F81846_REG_LD
//---------------------------------------------------------------------------
#define F81846_UNLOCK
#define F81846_LOCK
//---------------------------------------------------------------------------
unsigned int Init_F81846(void);
void Set_F81846_LD( unsigned char);
void Set_F81846_Reg( unsigned char, unsigned char);
unsigned char Get_F81846_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif //__F81846_H
1
(F81846_BASE)
(F81846_BASE+1)
0x07
0x87
0xAA
IB903F User's Manual
APPENDIX
53

Advertisement

Table of Contents
loading

Table of Contents