Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: phantom.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* Copyright (C) 2005-2007 Jiri Slaby <jirislaby@gmail.com>
[2] Fix | Delete
*
[3] Fix | Delete
* This program is free software; you can redistribute it and/or modify
[4] Fix | Delete
* it under the terms of the GNU General Public License as published by
[5] Fix | Delete
* the Free Software Foundation; either version 2 of the License, or
[6] Fix | Delete
* (at your option) any later version.
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
#ifndef __PHANTOM_H
[10] Fix | Delete
#define __PHANTOM_H
[11] Fix | Delete
[12] Fix | Delete
#include <linux/types.h>
[13] Fix | Delete
[14] Fix | Delete
/* PHN_(G/S)ET_REG param */
[15] Fix | Delete
struct phm_reg {
[16] Fix | Delete
__u32 reg;
[17] Fix | Delete
__u32 value;
[18] Fix | Delete
};
[19] Fix | Delete
[20] Fix | Delete
/* PHN_(G/S)ET_REGS param */
[21] Fix | Delete
struct phm_regs {
[22] Fix | Delete
__u32 count;
[23] Fix | Delete
__u32 mask;
[24] Fix | Delete
__u32 values[8];
[25] Fix | Delete
};
[26] Fix | Delete
[27] Fix | Delete
#define PH_IOC_MAGIC 'p'
[28] Fix | Delete
#define PHN_GET_REG _IOWR(PH_IOC_MAGIC, 0, struct phm_reg *)
[29] Fix | Delete
#define PHN_SET_REG _IOW(PH_IOC_MAGIC, 1, struct phm_reg *)
[30] Fix | Delete
#define PHN_GET_REGS _IOWR(PH_IOC_MAGIC, 2, struct phm_regs *)
[31] Fix | Delete
#define PHN_SET_REGS _IOW(PH_IOC_MAGIC, 3, struct phm_regs *)
[32] Fix | Delete
/* this ioctl tells the driver, that the caller is not OpenHaptics and might
[33] Fix | Delete
* use improved registers update (no more phantom switchoffs when using
[34] Fix | Delete
* libphantom) */
[35] Fix | Delete
#define PHN_NOT_OH _IO(PH_IOC_MAGIC, 4)
[36] Fix | Delete
#define PHN_GETREG _IOWR(PH_IOC_MAGIC, 5, struct phm_reg)
[37] Fix | Delete
#define PHN_SETREG _IOW(PH_IOC_MAGIC, 6, struct phm_reg)
[38] Fix | Delete
#define PHN_GETREGS _IOWR(PH_IOC_MAGIC, 7, struct phm_regs)
[39] Fix | Delete
#define PHN_SETREGS _IOW(PH_IOC_MAGIC, 8, struct phm_regs)
[40] Fix | Delete
[41] Fix | Delete
#define PHN_CONTROL 0x6 /* control byte in iaddr space */
[42] Fix | Delete
#define PHN_CTL_AMP 0x1 /* switch after torques change */
[43] Fix | Delete
#define PHN_CTL_BUT 0x2 /* is button switched */
[44] Fix | Delete
#define PHN_CTL_IRQ 0x10 /* is irq enabled */
[45] Fix | Delete
[46] Fix | Delete
#define PHN_ZERO_FORCE 2048 /* zero torque on motor */
[47] Fix | Delete
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function