linux/include/uapi/linux/phantom.h

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
 *  Copyright (C) 2005-2007 Jiri Slaby <[email protected]>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 */

#ifndef __PHANTOM_H
#define __PHANTOM_H

#include <linux/types.h>

/* PHN_(G/S)ET_REG param */
struct phm_reg {};

/* PHN_(G/S)ET_REGS param */
struct phm_regs {};

#define PH_IOC_MAGIC
#define PHN_GET_REG
#define PHN_SET_REG
#define PHN_GET_REGS
#define PHN_SET_REGS
/* this ioctl tells the driver, that the caller is not OpenHaptics and might
 * use improved registers update (no more phantom switchoffs when using
 * libphantom) */
#define PHN_NOT_OH
#define PHN_GETREG
#define PHN_SETREG
#define PHN_GETREGS
#define PHN_SETREGS

#define PHN_CONTROL
#define PHN_CTL_AMP
#define PHN_CTL_BUT
#define PHN_CTL_IRQ

#define PHN_ZERO_FORCE

#endif