Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: parport.h
/*
[0] Fix | Delete
* Any part of this program may be used in documents licensed under
[1] Fix | Delete
* the GNU Free Documentation License, Version 1.1 or any later version
[2] Fix | Delete
* published by the Free Software Foundation.
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
#ifndef _PARPORT_H_
[6] Fix | Delete
#define _PARPORT_H_
[7] Fix | Delete
[8] Fix | Delete
/* Start off with user-visible constants */
[9] Fix | Delete
[10] Fix | Delete
/* Maximum of 16 ports per machine */
[11] Fix | Delete
#define PARPORT_MAX 16
[12] Fix | Delete
[13] Fix | Delete
/* Magic numbers */
[14] Fix | Delete
#define PARPORT_IRQ_NONE -1
[15] Fix | Delete
#define PARPORT_DMA_NONE -1
[16] Fix | Delete
#define PARPORT_IRQ_AUTO -2
[17] Fix | Delete
#define PARPORT_DMA_AUTO -2
[18] Fix | Delete
#define PARPORT_DMA_NOFIFO -3
[19] Fix | Delete
#define PARPORT_DISABLE -2
[20] Fix | Delete
#define PARPORT_IRQ_PROBEONLY -3
[21] Fix | Delete
#define PARPORT_IOHI_AUTO -1
[22] Fix | Delete
[23] Fix | Delete
#define PARPORT_CONTROL_STROBE 0x1
[24] Fix | Delete
#define PARPORT_CONTROL_AUTOFD 0x2
[25] Fix | Delete
#define PARPORT_CONTROL_INIT 0x4
[26] Fix | Delete
#define PARPORT_CONTROL_SELECT 0x8
[27] Fix | Delete
[28] Fix | Delete
#define PARPORT_STATUS_ERROR 0x8
[29] Fix | Delete
#define PARPORT_STATUS_SELECT 0x10
[30] Fix | Delete
#define PARPORT_STATUS_PAPEROUT 0x20
[31] Fix | Delete
#define PARPORT_STATUS_ACK 0x40
[32] Fix | Delete
#define PARPORT_STATUS_BUSY 0x80
[33] Fix | Delete
[34] Fix | Delete
/* Type classes for Plug-and-Play probe. */
[35] Fix | Delete
typedef enum {
[36] Fix | Delete
PARPORT_CLASS_LEGACY = 0, /* Non-IEEE1284 device */
[37] Fix | Delete
PARPORT_CLASS_PRINTER,
[38] Fix | Delete
PARPORT_CLASS_MODEM,
[39] Fix | Delete
PARPORT_CLASS_NET,
[40] Fix | Delete
PARPORT_CLASS_HDC, /* Hard disk controller */
[41] Fix | Delete
PARPORT_CLASS_PCMCIA,
[42] Fix | Delete
PARPORT_CLASS_MEDIA, /* Multimedia device */
[43] Fix | Delete
PARPORT_CLASS_FDC, /* Floppy disk controller */
[44] Fix | Delete
PARPORT_CLASS_PORTS,
[45] Fix | Delete
PARPORT_CLASS_SCANNER,
[46] Fix | Delete
PARPORT_CLASS_DIGCAM,
[47] Fix | Delete
PARPORT_CLASS_OTHER, /* Anything else */
[48] Fix | Delete
PARPORT_CLASS_UNSPEC, /* No CLS field in ID */
[49] Fix | Delete
PARPORT_CLASS_SCSIADAPTER
[50] Fix | Delete
} parport_device_class;
[51] Fix | Delete
[52] Fix | Delete
/* The "modes" entry in parport is a bit field representing the
[53] Fix | Delete
capabilities of the hardware. */
[54] Fix | Delete
#define PARPORT_MODE_PCSPP (1<<0) /* IBM PC registers available. */
[55] Fix | Delete
#define PARPORT_MODE_TRISTATE (1<<1) /* Can tristate. */
[56] Fix | Delete
#define PARPORT_MODE_EPP (1<<2) /* Hardware EPP. */
[57] Fix | Delete
#define PARPORT_MODE_ECP (1<<3) /* Hardware ECP. */
[58] Fix | Delete
#define PARPORT_MODE_COMPAT (1<<4) /* Hardware 'printer protocol'. */
[59] Fix | Delete
#define PARPORT_MODE_DMA (1<<5) /* Hardware can DMA. */
[60] Fix | Delete
#define PARPORT_MODE_SAFEININT (1<<6) /* SPP registers accessible in IRQ. */
[61] Fix | Delete
[62] Fix | Delete
/* IEEE1284 modes:
[63] Fix | Delete
Nibble mode, byte mode, ECP, ECPRLE and EPP are their own
[64] Fix | Delete
'extensibility request' values. Others are special.
[65] Fix | Delete
'Real' ECP modes must have the IEEE1284_MODE_ECP bit set. */
[66] Fix | Delete
#define IEEE1284_MODE_NIBBLE 0
[67] Fix | Delete
#define IEEE1284_MODE_BYTE (1<<0)
[68] Fix | Delete
#define IEEE1284_MODE_COMPAT (1<<8)
[69] Fix | Delete
#define IEEE1284_MODE_BECP (1<<9) /* Bounded ECP mode */
[70] Fix | Delete
#define IEEE1284_MODE_ECP (1<<4)
[71] Fix | Delete
#define IEEE1284_MODE_ECPRLE (IEEE1284_MODE_ECP | (1<<5))
[72] Fix | Delete
#define IEEE1284_MODE_ECPSWE (1<<10) /* Software-emulated */
[73] Fix | Delete
#define IEEE1284_MODE_EPP (1<<6)
[74] Fix | Delete
#define IEEE1284_MODE_EPPSL (1<<11) /* EPP 1.7 */
[75] Fix | Delete
#define IEEE1284_MODE_EPPSWE (1<<12) /* Software-emulated */
[76] Fix | Delete
#define IEEE1284_DEVICEID (1<<2) /* This is a flag */
[77] Fix | Delete
#define IEEE1284_EXT_LINK (1<<14) /* This flag causes the
[78] Fix | Delete
* extensibility link to
[79] Fix | Delete
* be requested, using
[80] Fix | Delete
* bits 0-6. */
[81] Fix | Delete
[82] Fix | Delete
/* For the benefit of parport_read/write, you can use these with
[83] Fix | Delete
* parport_negotiate to use address operations. They have no effect
[84] Fix | Delete
* other than to make parport_read/write use address transfers. */
[85] Fix | Delete
#define IEEE1284_ADDR (1<<13) /* This is a flag */
[86] Fix | Delete
#define IEEE1284_DATA 0 /* So is this */
[87] Fix | Delete
[88] Fix | Delete
/* Flags for block transfer operations. */
[89] Fix | Delete
#define PARPORT_EPP_FAST (1<<0) /* Unreliable counts. */
[90] Fix | Delete
#define PARPORT_W91284PIC (1<<1) /* have a Warp9 w91284pic in the device */
[91] Fix | Delete
[92] Fix | Delete
/* The rest is for the kernel only */
[93] Fix | Delete
#endif /* _PARPORT_H_ */
[94] Fix | Delete
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function