Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
lp.h File Reference
#include <linux/wait.h>
#include <linux/mutex.h>
#include <uapi/linux/lp.h>

Go to the source code of this file.

Data Structures

struct  lp_struct
 

Macros

#define LP_PARPORT_UNSPEC   -4
 
#define LP_PARPORT_AUTO   -3
 
#define LP_PARPORT_OFF   -2
 
#define LP_PARPORT_NONE   -1
 
#define LP_F(minor)   lp_table[(minor)].flags /* flags for busy, etc. */
 
#define LP_CHAR(minor)   lp_table[(minor)].chars /* busy timeout */
 
#define LP_TIME(minor)   lp_table[(minor)].time /* wait time */
 
#define LP_WAIT(minor)   lp_table[(minor)].wait /* strobe wait */
 
#define LP_IRQ(minor)   lp_table[(minor)].dev->port->irq /* interrupt # */
 
#define LP_BUFFER_SIZE   PAGE_SIZE
 
#define LP_BASE(x)   lp_table[(x)].dev->port->base
 
#define LP_PINTEN   0x10 /* high to read data in or-ed with data out */
 
#define LP_PSELECP   0x08 /* inverted output, active low */
 
#define LP_PINITP   0x04 /* unchanged output, active low */
 
#define LP_PAUTOLF   0x02 /* inverted output, active low */
 
#define LP_PSTROBE   0x01 /* short high output on raising edge */
 
#define LP_DUMMY   0x00
 
#define LP_DELAY   50
 

Macro Definition Documentation

#define LP_BASE (   x)    lp_table[(x)].dev->port->base

Definition at line 32 of file lp.h.

#define LP_BUFFER_SIZE   PAGE_SIZE

Definition at line 30 of file lp.h.

#define LP_CHAR (   minor)    lp_table[(minor)].chars /* busy timeout */

Definition at line 22 of file lp.h.

#define LP_DELAY   50

Definition at line 98 of file lp.h.

#define LP_DUMMY   0x00

Definition at line 92 of file lp.h.

#define LP_F (   minor)    lp_table[(minor)].flags /* flags for busy, etc. */

Definition at line 21 of file lp.h.

#define LP_IRQ (   minor)    lp_table[(minor)].dev->port->irq /* interrupt # */

Definition at line 25 of file lp.h.

#define LP_PARPORT_AUTO   -3

Definition at line 17 of file lp.h.

#define LP_PARPORT_NONE   -1

Definition at line 19 of file lp.h.

#define LP_PARPORT_OFF   -2

Definition at line 18 of file lp.h.

#define LP_PARPORT_UNSPEC   -4

Definition at line 16 of file lp.h.

#define LP_PAUTOLF   0x02 /* inverted output, active low */

Definition at line 84 of file lp.h.

#define LP_PINITP   0x04 /* unchanged output, active low */

Definition at line 83 of file lp.h.

#define LP_PINTEN   0x10 /* high to read data in or-ed with data out */

Definition at line 81 of file lp.h.

#define LP_PSELECP   0x08 /* inverted output, active low */

Definition at line 82 of file lp.h.

#define LP_PSTROBE   0x01 /* short high output on raising edge */

Definition at line 85 of file lp.h.

#define LP_TIME (   minor)    lp_table[(minor)].time /* wait time */

Definition at line 23 of file lp.h.

#define LP_WAIT (   minor)    lp_table[(minor)].wait /* strobe wait */

Definition at line 24 of file lp.h.