00001 #ifndef __LPT_H__
00002 #define __LPT_H__
00003
00004 int GetValidPpt(void);
00005 int InstallGiveIo(void);
00006 void SetPptCompMode(void);
00007
00008 extern int validPpt;
00009
00010 #define LPT1 0x378 // the search order is LPT1 then 2 then 3
00011 #define LPT2 0x278 // first valid address found is used (re-order if needed for multiple ports)
00012 #define LPT3 0x3bc // hardware base address for parallel port
00013
00014 #define OutputPpt(value) _outp((unsigned short)validPpt,value)
00015 #define InputPpt() _inp((unsigned short)(validPpt+0x1))
00016
00017 void OpenLpt(void);
00018
00019 #endif //__PPT_H__