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 __WIL6210_UAPI_H__
20 #define __WIL6210_UAPI_H__
21 #define __user
22 #include <linux/sockios.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define WIL_IOCTL_MEMIO (SIOCDEVPRIVATE + 2)
25 #define WIL_IOCTL_MEMIO_BLOCK (SIOCDEVPRIVATE + 3)
26 enum wil_memio_op {
27   wil_mmio_read = 0,
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   wil_mmio_write = 1,
30   wil_mmio_op_mask = 0xff,
31   wil_mmio_addr_linker = 0 << 8,
32   wil_mmio_addr_ahb = 1 << 8,
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   wil_mmio_addr_bar = 2 << 8,
35   wil_mmio_addr_mask = 0xff00,
36 };
37 struct wil_memio {
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   uint32_t op;
40   uint32_t addr;
41   uint32_t val;
42 };
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 struct wil_memio_block {
45   uint32_t op;
46   uint32_t addr;
47   uint32_t size;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   void __user * block;
50 };
51 #endif
52