38 lines
986 B
C
38 lines
986 B
C
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
#ifdef DOS
|
||
|
typedef unsigned char Byte;
|
||
|
typedef unsigned int Word;
|
||
|
typedef unsigned long Long;
|
||
|
|
||
|
#define EYECAST (char huge *)
|
||
|
extern void far HL_ON (int Port, Word ModAd);
|
||
|
extern void far HL_OFF (int Port);
|
||
|
extern int far K_EYE (int Port, char huge *Inp, int BlkCnt);
|
||
|
extern void far HL_WR (int Port, int Register, Word Val);
|
||
|
extern Word far HL_RD (int Port, int Register);
|
||
|
|
||
|
extern void far INT_ON (void);
|
||
|
extern void far INT_OFF (void);
|
||
|
|
||
|
#else
|
||
|
#define INT_ON()
|
||
|
#define INT_OFF()
|
||
|
#define EYECAST
|
||
|
|
||
|
typedef unsigned long Long;
|
||
|
typedef unsigned short Word;
|
||
|
typedef unsigned char Byte;
|
||
|
|
||
|
void HL_ON (Word, Word); /* Activate the Hardlock */
|
||
|
void HL_OFF (Word); /* Deactivate the Hardlock */
|
||
|
Word HL_RD (Word, Word); /* Read from the EEProm */
|
||
|
void HL_WR (Word, Word, Word); /* Write to the EEProm */
|
||
|
Word K_EYE (Word, Byte *, Word); /* Encrypt Blocks */
|
||
|
#endif
|
||
|
#ifdef __cplusplus
|
||
|
};
|
||
|
#endif
|