Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: ppdev.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* linux/include/linux/ppdev.h
[2] Fix | Delete
*
[3] Fix | Delete
* User-space parallel port device driver (header file).
[4] Fix | Delete
*
[5] Fix | Delete
* Copyright (C) 1998-9 Tim Waugh <tim@cyberelk.demon.co.uk>
[6] Fix | Delete
*
[7] Fix | Delete
* This program is free software; you can redistribute it and/or
[8] Fix | Delete
* modify it under the terms of the GNU General Public License
[9] Fix | Delete
* as published by the Free Software Foundation; either version
[10] Fix | Delete
* 2 of the License, or (at your option) any later version.
[11] Fix | Delete
*
[12] Fix | Delete
* Added PPGETTIME/PPSETTIME, Fred Barnes, 1999
[13] Fix | Delete
* Added PPGETMODES/PPGETMODE/PPGETPHASE, Fred Barnes <frmb2@ukc.ac.uk>, 03/01/2001
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
#define PP_IOCTL 'p'
[17] Fix | Delete
[18] Fix | Delete
/* Set mode for read/write (e.g. IEEE1284_MODE_EPP) */
[19] Fix | Delete
#define PPSETMODE _IOW(PP_IOCTL, 0x80, int)
[20] Fix | Delete
[21] Fix | Delete
/* Read status */
[22] Fix | Delete
#define PPRSTATUS _IOR(PP_IOCTL, 0x81, unsigned char)
[23] Fix | Delete
#define PPWSTATUS OBSOLETE__IOW(PP_IOCTL, 0x82, unsigned char)
[24] Fix | Delete
[25] Fix | Delete
/* Read/write control */
[26] Fix | Delete
#define PPRCONTROL _IOR(PP_IOCTL, 0x83, unsigned char)
[27] Fix | Delete
#define PPWCONTROL _IOW(PP_IOCTL, 0x84, unsigned char)
[28] Fix | Delete
[29] Fix | Delete
struct ppdev_frob_struct {
[30] Fix | Delete
unsigned char mask;
[31] Fix | Delete
unsigned char val;
[32] Fix | Delete
};
[33] Fix | Delete
#define PPFCONTROL _IOW(PP_IOCTL, 0x8e, struct ppdev_frob_struct)
[34] Fix | Delete
[35] Fix | Delete
/* Read/write data */
[36] Fix | Delete
#define PPRDATA _IOR(PP_IOCTL, 0x85, unsigned char)
[37] Fix | Delete
#define PPWDATA _IOW(PP_IOCTL, 0x86, unsigned char)
[38] Fix | Delete
[39] Fix | Delete
/* Read/write econtrol (not used) */
[40] Fix | Delete
#define PPRECONTROL OBSOLETE__IOR(PP_IOCTL, 0x87, unsigned char)
[41] Fix | Delete
#define PPWECONTROL OBSOLETE__IOW(PP_IOCTL, 0x88, unsigned char)
[42] Fix | Delete
[43] Fix | Delete
/* Read/write FIFO (not used) */
[44] Fix | Delete
#define PPRFIFO OBSOLETE__IOR(PP_IOCTL, 0x89, unsigned char)
[45] Fix | Delete
#define PPWFIFO OBSOLETE__IOW(PP_IOCTL, 0x8a, unsigned char)
[46] Fix | Delete
[47] Fix | Delete
/* Claim the port to start using it */
[48] Fix | Delete
#define PPCLAIM _IO(PP_IOCTL, 0x8b)
[49] Fix | Delete
[50] Fix | Delete
/* Release the port when you aren't using it */
[51] Fix | Delete
#define PPRELEASE _IO(PP_IOCTL, 0x8c)
[52] Fix | Delete
[53] Fix | Delete
/* Yield the port (release it if another driver is waiting,
[54] Fix | Delete
* then reclaim) */
[55] Fix | Delete
#define PPYIELD _IO(PP_IOCTL, 0x8d)
[56] Fix | Delete
[57] Fix | Delete
/* Register device exclusively (must be before PPCLAIM). */
[58] Fix | Delete
#define PPEXCL _IO(PP_IOCTL, 0x8f)
[59] Fix | Delete
[60] Fix | Delete
/* Data line direction: non-zero for input mode. */
[61] Fix | Delete
#define PPDATADIR _IOW(PP_IOCTL, 0x90, int)
[62] Fix | Delete
[63] Fix | Delete
/* Negotiate a particular IEEE 1284 mode. */
[64] Fix | Delete
#define PPNEGOT _IOW(PP_IOCTL, 0x91, int)
[65] Fix | Delete
[66] Fix | Delete
/* Set control lines when an interrupt occurs. */
[67] Fix | Delete
#define PPWCTLONIRQ _IOW(PP_IOCTL, 0x92, unsigned char)
[68] Fix | Delete
[69] Fix | Delete
/* Clear (and return) interrupt count. */
[70] Fix | Delete
#define PPCLRIRQ _IOR(PP_IOCTL, 0x93, int)
[71] Fix | Delete
[72] Fix | Delete
/* Set the IEEE 1284 phase that we're in (e.g. IEEE1284_PH_FWD_IDLE) */
[73] Fix | Delete
#define PPSETPHASE _IOW(PP_IOCTL, 0x94, int)
[74] Fix | Delete
[75] Fix | Delete
/* Set and get port timeout (struct timeval's) */
[76] Fix | Delete
#define PPGETTIME _IOR(PP_IOCTL, 0x95, struct timeval)
[77] Fix | Delete
#define PPSETTIME _IOW(PP_IOCTL, 0x96, struct timeval)
[78] Fix | Delete
[79] Fix | Delete
/* Get available modes (what the hardware can do) */
[80] Fix | Delete
#define PPGETMODES _IOR(PP_IOCTL, 0x97, unsigned int)
[81] Fix | Delete
[82] Fix | Delete
/* Get the current mode and phaze */
[83] Fix | Delete
#define PPGETMODE _IOR(PP_IOCTL, 0x98, int)
[84] Fix | Delete
#define PPGETPHASE _IOR(PP_IOCTL, 0x99, int)
[85] Fix | Delete
[86] Fix | Delete
/* get/set flags */
[87] Fix | Delete
#define PPGETFLAGS _IOR(PP_IOCTL, 0x9a, int)
[88] Fix | Delete
#define PPSETFLAGS _IOW(PP_IOCTL, 0x9b, int)
[89] Fix | Delete
[90] Fix | Delete
/* flags visible to the world */
[91] Fix | Delete
#define PP_FASTWRITE (1<<2)
[92] Fix | Delete
#define PP_FASTREAD (1<<3)
[93] Fix | Delete
#define PP_W91284PIC (1<<4)
[94] Fix | Delete
[95] Fix | Delete
/* only masks user-visible flags */
[96] Fix | Delete
#define PP_FLAGMASK (PP_FASTWRITE | PP_FASTREAD | PP_W91284PIC)
[97] Fix | Delete
[98] Fix | Delete
[99] Fix | Delete
[100] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function