• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __ISST_IF_H
20 #define __ISST_IF_H
21 #include <linux/types.h>
22 struct isst_if_platform_info {
23   __u16 api_version;
24   __u16 driver_version;
25   __u16 max_cmds_per_ioctl;
26   __u8 mbox_supported;
27   __u8 mmio_supported;
28 };
29 struct isst_if_cpu_map {
30   __u32 logical_cpu;
31   __u32 physical_cpu;
32 };
33 struct isst_if_cpu_maps {
34   __u32 cmd_count;
35   struct isst_if_cpu_map cpu_map[1];
36 };
37 struct isst_if_io_reg {
38   __u32 read_write;
39   __u32 logical_cpu;
40   __u32 reg;
41   __u32 value;
42 };
43 struct isst_if_io_regs {
44   __u32 req_count;
45   struct isst_if_io_reg io_reg[1];
46 };
47 struct isst_if_mbox_cmd {
48   __u32 logical_cpu;
49   __u32 parameter;
50   __u32 req_data;
51   __u32 resp_data;
52   __u16 command;
53   __u16 sub_command;
54   __u32 reserved;
55 };
56 struct isst_if_mbox_cmds {
57   __u32 cmd_count;
58   struct isst_if_mbox_cmd mbox_cmd[1];
59 };
60 struct isst_if_msr_cmd {
61   __u32 read_write;
62   __u32 logical_cpu;
63   __u64 msr;
64   __u64 data;
65 };
66 struct isst_if_msr_cmds {
67   __u32 cmd_count;
68   struct isst_if_msr_cmd msr_cmd[1];
69 };
70 #define ISST_IF_MAGIC 0xFE
71 #define ISST_IF_GET_PLATFORM_INFO _IOR(ISST_IF_MAGIC, 0, struct isst_if_platform_info *)
72 #define ISST_IF_GET_PHY_ID _IOWR(ISST_IF_MAGIC, 1, struct isst_if_cpu_map *)
73 #define ISST_IF_IO_CMD _IOW(ISST_IF_MAGIC, 2, struct isst_if_io_regs *)
74 #define ISST_IF_MBOX_COMMAND _IOWR(ISST_IF_MAGIC, 3, struct isst_if_mbox_cmds *)
75 #define ISST_IF_MSR_COMMAND _IOWR(ISST_IF_MAGIC, 4, struct isst_if_msr_cmds *)
76 #endif
77