#ifndef __PPT_H__ #define __PPT_H__ int GetValidPpt(void); int InstallGiveIo(void); void SetPptCompMode(void); extern int validPpt; #define LPT1 0x378 // the search order is LPT1 then 2 then 3 #define LPT2 0x278 // first valid address found is used (re-order if needed for multiple ports) #define LPT3 0x3bc // hardware base address for parallel port #ifdef __WINDOWS__ #define OutputPpt(value) _outp((unsigned short)validPpt,value) #define InputPpt() _inp((unsigned short)(validPpt+0x1)) #else extern void OutputPpt(unsigned char value); extern unsigned char InputPpt(void); #endif #endif //__PPT_H__