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 #define WIL_IOCTL_MEMIO (SIOCDEVPRIVATE + 2) 24 #define WIL_IOCTL_MEMIO_BLOCK (SIOCDEVPRIVATE + 3) 25 enum wil_memio_op { 26 wil_mmio_read = 0, 27 wil_mmio_write = 1, 28 wil_mmio_op_mask = 0xff, 29 wil_mmio_addr_linker = 0 << 8, 30 wil_mmio_addr_ahb = 1 << 8, 31 wil_mmio_addr_bar = 2 << 8, 32 wil_mmio_addr_mask = 0xff00, 33 }; 34 struct wil_memio { 35 uint32_t op; 36 uint32_t addr; 37 uint32_t val; 38 }; 39 struct wil_memio_block { 40 uint32_t op; 41 uint32_t addr; 42 uint32_t size; 43 void __user * block; 44 }; 45 #endif 46