Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
parport.h File Reference

Go to the source code of this file.

Macros

#define PARPORT_MAX   16
 
#define PARPORT_IRQ_NONE   -1
 
#define PARPORT_DMA_NONE   -1
 
#define PARPORT_IRQ_AUTO   -2
 
#define PARPORT_DMA_AUTO   -2
 
#define PARPORT_DMA_NOFIFO   -3
 
#define PARPORT_DISABLE   -2
 
#define PARPORT_IRQ_PROBEONLY   -3
 
#define PARPORT_IOHI_AUTO   -1
 
#define PARPORT_CONTROL_STROBE   0x1
 
#define PARPORT_CONTROL_AUTOFD   0x2
 
#define PARPORT_CONTROL_INIT   0x4
 
#define PARPORT_CONTROL_SELECT   0x8
 
#define PARPORT_STATUS_ERROR   0x8
 
#define PARPORT_STATUS_SELECT   0x10
 
#define PARPORT_STATUS_PAPEROUT   0x20
 
#define PARPORT_STATUS_ACK   0x40
 
#define PARPORT_STATUS_BUSY   0x80
 
#define PARPORT_MODE_PCSPP   (1<<0) /* IBM PC registers available. */
 
#define PARPORT_MODE_TRISTATE   (1<<1) /* Can tristate. */
 
#define PARPORT_MODE_EPP   (1<<2) /* Hardware EPP. */
 
#define PARPORT_MODE_ECP   (1<<3) /* Hardware ECP. */
 
#define PARPORT_MODE_COMPAT   (1<<4) /* Hardware 'printer protocol'. */
 
#define PARPORT_MODE_DMA   (1<<5) /* Hardware can DMA. */
 
#define PARPORT_MODE_SAFEININT   (1<<6) /* SPP registers accessible in IRQ. */
 
#define IEEE1284_MODE_NIBBLE   0
 
#define IEEE1284_MODE_BYTE   (1<<0)
 
#define IEEE1284_MODE_COMPAT   (1<<8)
 
#define IEEE1284_MODE_BECP   (1<<9) /* Bounded ECP mode */
 
#define IEEE1284_MODE_ECP   (1<<4)
 
#define IEEE1284_MODE_ECPRLE   (IEEE1284_MODE_ECP | (1<<5))
 
#define IEEE1284_MODE_ECPSWE   (1<<10) /* Software-emulated */
 
#define IEEE1284_MODE_EPP   (1<<6)
 
#define IEEE1284_MODE_EPPSL   (1<<11) /* EPP 1.7 */
 
#define IEEE1284_MODE_EPPSWE   (1<<12) /* Software-emulated */
 
#define IEEE1284_DEVICEID   (1<<2) /* This is a flag */
 
#define IEEE1284_EXT_LINK
 
#define IEEE1284_ADDR   (1<<13) /* This is a flag */
 
#define IEEE1284_DATA   0 /* So is this */
 
#define PARPORT_EPP_FAST   (1<<0) /* Unreliable counts. */
 
#define PARPORT_W91284PIC   (1<<1) /* have a Warp9 w91284pic in the device */
 

Enumerations

enum  parport_device_class {
  PARPORT_CLASS_LEGACY = 0, PARPORT_CLASS_PRINTER, PARPORT_CLASS_MODEM, PARPORT_CLASS_NET,
  PARPORT_CLASS_HDC, PARPORT_CLASS_PCMCIA, PARPORT_CLASS_MEDIA, PARPORT_CLASS_FDC,
  PARPORT_CLASS_PORTS, PARPORT_CLASS_SCANNER, PARPORT_CLASS_DIGCAM, PARPORT_CLASS_OTHER,
  PARPORT_CLASS_UNSPEC, PARPORT_CLASS_SCSIADAPTER
}
 

Macro Definition Documentation

#define IEEE1284_ADDR   (1<<13) /* This is a flag */

Definition at line 84 of file parport.h.

#define IEEE1284_DATA   0 /* So is this */

Definition at line 85 of file parport.h.

#define IEEE1284_DEVICEID   (1<<2) /* This is a flag */

Definition at line 78 of file parport.h.

#define IEEE1284_EXT_LINK
Value:
(1<<14) /* This flag causes the
* extensibility link to
* be requested, using
* bits 0-6. */

Definition at line 79 of file parport.h.

#define IEEE1284_MODE_BECP   (1<<9) /* Bounded ECP mode */

Definition at line 71 of file parport.h.

#define IEEE1284_MODE_BYTE   (1<<0)

Definition at line 69 of file parport.h.

#define IEEE1284_MODE_COMPAT   (1<<8)

Definition at line 70 of file parport.h.

#define IEEE1284_MODE_ECP   (1<<4)

Definition at line 72 of file parport.h.

#define IEEE1284_MODE_ECPRLE   (IEEE1284_MODE_ECP | (1<<5))

Definition at line 73 of file parport.h.

#define IEEE1284_MODE_ECPSWE   (1<<10) /* Software-emulated */

Definition at line 74 of file parport.h.

#define IEEE1284_MODE_EPP   (1<<6)

Definition at line 75 of file parport.h.

#define IEEE1284_MODE_EPPSL   (1<<11) /* EPP 1.7 */

Definition at line 76 of file parport.h.

#define IEEE1284_MODE_EPPSWE   (1<<12) /* Software-emulated */

Definition at line 77 of file parport.h.

#define IEEE1284_MODE_NIBBLE   0

Definition at line 68 of file parport.h.

#define PARPORT_CONTROL_AUTOFD   0x2

Definition at line 26 of file parport.h.

#define PARPORT_CONTROL_INIT   0x4

Definition at line 27 of file parport.h.

#define PARPORT_CONTROL_SELECT   0x8

Definition at line 28 of file parport.h.

#define PARPORT_CONTROL_STROBE   0x1

Definition at line 25 of file parport.h.

#define PARPORT_DISABLE   -2

Definition at line 21 of file parport.h.

#define PARPORT_DMA_AUTO   -2

Definition at line 19 of file parport.h.

#define PARPORT_DMA_NOFIFO   -3

Definition at line 20 of file parport.h.

#define PARPORT_DMA_NONE   -1

Definition at line 17 of file parport.h.

#define PARPORT_EPP_FAST   (1<<0) /* Unreliable counts. */

Definition at line 88 of file parport.h.

#define PARPORT_IOHI_AUTO   -1

Definition at line 23 of file parport.h.

#define PARPORT_IRQ_AUTO   -2

Definition at line 18 of file parport.h.

#define PARPORT_IRQ_NONE   -1

Definition at line 16 of file parport.h.

#define PARPORT_IRQ_PROBEONLY   -3

Definition at line 22 of file parport.h.

#define PARPORT_MAX   16

Definition at line 13 of file parport.h.

#define PARPORT_MODE_COMPAT   (1<<4) /* Hardware 'printer protocol'. */

Definition at line 60 of file parport.h.

#define PARPORT_MODE_DMA   (1<<5) /* Hardware can DMA. */

Definition at line 61 of file parport.h.

#define PARPORT_MODE_ECP   (1<<3) /* Hardware ECP. */

Definition at line 59 of file parport.h.

#define PARPORT_MODE_EPP   (1<<2) /* Hardware EPP. */

Definition at line 58 of file parport.h.

#define PARPORT_MODE_PCSPP   (1<<0) /* IBM PC registers available. */

Definition at line 56 of file parport.h.

#define PARPORT_MODE_SAFEININT   (1<<6) /* SPP registers accessible in IRQ. */

Definition at line 62 of file parport.h.

#define PARPORT_MODE_TRISTATE   (1<<1) /* Can tristate. */

Definition at line 57 of file parport.h.

#define PARPORT_STATUS_ACK   0x40

Definition at line 33 of file parport.h.

#define PARPORT_STATUS_BUSY   0x80

Definition at line 34 of file parport.h.

#define PARPORT_STATUS_ERROR   0x8

Definition at line 30 of file parport.h.

#define PARPORT_STATUS_PAPEROUT   0x20

Definition at line 32 of file parport.h.

#define PARPORT_STATUS_SELECT   0x10

Definition at line 31 of file parport.h.

#define PARPORT_W91284PIC   (1<<1) /* have a Warp9 w91284pic in the device */

Definition at line 89 of file parport.h.

Enumeration Type Documentation

Enumerator:
PARPORT_CLASS_LEGACY 
PARPORT_CLASS_PRINTER 
PARPORT_CLASS_MODEM 
PARPORT_CLASS_NET 
PARPORT_CLASS_HDC 
PARPORT_CLASS_PCMCIA 
PARPORT_CLASS_MEDIA 
PARPORT_CLASS_FDC 
PARPORT_CLASS_PORTS 
PARPORT_CLASS_SCANNER 
PARPORT_CLASS_DIGCAM 
PARPORT_CLASS_OTHER 
PARPORT_CLASS_UNSPEC 
PARPORT_CLASS_SCSIADAPTER 

Definition at line 37 of file parport.h.