#define LP_TRUST_IRQ_ 0x0200 /* obsolete */ #define LP_NO_REVERSE 0x0400 /* No reverse mode available. */ #define LP_DATA_AVAIL 0x0800 /* Data is available. */
/* *bitdefinesfor8255statusport *base+1 *accessedwithLP_S(minor),whichgetsthebyte...
*/ #define LP_PBUSY 0x80 /* inverted input, active high */ #define LP_PACK 0x40 /* unchanged input, active low */ #define LP_POUTPA 0x20 /* unchanged input, active high */ #define LP_PSELECD 0x10 /* unchanged input, active high */ #define LP_PERRORP 0x08 /* unchanged input, active low */
/* timeout for each character. This is relative to bus cycles -- it *isthecountinabusyloop.THISISTHEVALUETOCHANGEifyou *haveextremelyslowprinting,orifthemachineseemstoslowdown *alotwhenyouprint.Ifyouhaveslowprinting,increasethis *numberandrecompile,andifyoursystemgetsboggeddown,decrease *thisnumber.Thiscanbechangedwiththetunelp(8)commandaswell.
*/
#define LP_INIT_CHAR 1000
/* The parallel port specs apparently say that there needs to be *a.5usecwaitbeforeandafterthestrobe.
*/
#define LP_INIT_WAIT 1
/* This is the amount of time that the driver waits for the printer to *catchupwhentheprinter'sbufferappearstobefilled.Ifyou *wanttotunethisandhaveafastprinter(i.e.HPIIIP),decrease *thisnumber,andifyouhaveaslowprinter,increasethisnumber. *Thisisinhundredthsofasecond,thedefault2being.05second. *Orusethetunelp(8)command,whichisespeciallyniceifyouwant *changebackandforthbetweencharacterandgraphicsprinting,which *arewildlydifferent...
*/
#define LP_INIT_TIME 2
/* IOCTL numbers */ #define LPCHAR 0x0601 /* corresponds to LP_INIT_CHAR */ #define LPTIME 0x0602 /* corresponds to LP_INIT_TIME */ #define LPABORT 0x0604 /* call with TRUE arg to abort on error,
FALSE to retry. Default is retry. */ #define LPSETIRQ 0x0605 /* call with new IRQ number,
or 0 for polling (no IRQ) */ #define LPGETIRQ 0x0606 /* get the current IRQ number */ #define LPWAIT 0x0608 /* corresponds to LP_INIT_WAIT */ /* NOTE: LPCAREFUL is obsoleted and it' s always the default right now -arca */ #define LPCAREFUL 0x0609 /* call with TRUE arg to require out-of-paper, off- line,anderrorindicatorsgoodonallwrites,
FALSE to ignore them. Default is ignore. */ #define LPABORTOPEN 0x060a /* call with TRUE arg to abort open() on error,
FALSE to ignore error. Default is ignore. */ #define LPGETSTATUS 0x060b /* return LP_S(minor) */ #define LPRESET 0x060c /* reset printer */ #ifdef LP_STATS #define LPGETSTATS 0x060d /* get statistics (struct lp_stats) */ #endif #define LPGETFLAGS 0x060e /* get status flags */ #define LPSETTIMEOUT_OLD 0x060f /* set parport timeout */ #define LPSETTIMEOUT_NEW \
_IOW(0x6, 0xf, __s64[2]) /* set parport timeout */ #if __BITS_PER_LONG == 64 #define LPSETTIMEOUT LPSETTIMEOUT_OLD #else #define LPSETTIMEOUT (sizeof(time_t) > sizeof(__kernel_long_t) ? \
LPSETTIMEOUT_NEW : LPSETTIMEOUT_OLD) #endif
/* timeout for printk'ing a timeout, in jiffies (100ths of a second). Thisisalsousedforre-checkingerrorconditionsifLP_ABORTis
not set. This is the default behavior. */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.