blob: 596e43b73ba184df0efde2cc6d4d70bc02e096bf [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __PHANTOM_H
8#define __PHANTOM_H
9#include <linux/types.h>
10struct phm_reg {
Tao Baod7db5942015-01-28 10:07:51 -080011 __u32 reg;
12 __u32 value;
Ben Cheng655a7c02013-10-16 16:09:24 -070013};
14struct phm_regs {
Tao Baod7db5942015-01-28 10:07:51 -080015 __u32 count;
16 __u32 mask;
17 __u32 values[8];
Ben Cheng655a7c02013-10-16 16:09:24 -070018};
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define PH_IOC_MAGIC 'p'
20#define PHN_GET_REG _IOWR(PH_IOC_MAGIC, 0, struct phm_reg *)
21#define PHN_SET_REG _IOW(PH_IOC_MAGIC, 1, struct phm_reg *)
22#define PHN_GET_REGS _IOWR(PH_IOC_MAGIC, 2, struct phm_regs *)
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define PHN_SET_REGS _IOW(PH_IOC_MAGIC, 3, struct phm_regs *)
24#define PHN_NOT_OH _IO(PH_IOC_MAGIC, 4)
25#define PHN_GETREG _IOWR(PH_IOC_MAGIC, 5, struct phm_reg)
26#define PHN_SETREG _IOW(PH_IOC_MAGIC, 6, struct phm_reg)
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define PHN_GETREGS _IOWR(PH_IOC_MAGIC, 7, struct phm_regs)
28#define PHN_SETREGS _IOW(PH_IOC_MAGIC, 8, struct phm_regs)
29#define PHN_CONTROL 0x6
30#define PHN_CTL_AMP 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define PHN_CTL_BUT 0x2
32#define PHN_CTL_IRQ 0x10
33#define PHN_ZERO_FORCE 2048
Nick Kralevicha67e4de2013-01-14 11:28:26 -080034#endif