| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 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> | 
| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 23 | #define WIL_IOCTL_MEMIO (SIOCDEVPRIVATE + 2) | 
 | 24 | #define WIL_IOCTL_MEMIO_BLOCK (SIOCDEVPRIVATE + 3) | 
 | 25 | enum wil_memio_op { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 |   wil_mmio_read = 0, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 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, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 |   wil_mmio_addr_bar = 2 << 8, | 
 | 32 |   wil_mmio_addr_mask = 0xff00, | 
| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 33 | }; | 
 | 34 | struct wil_memio { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 |   uint32_t op; | 
 | 36 |   uint32_t addr; | 
 | 37 |   uint32_t val; | 
| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 38 | }; | 
| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 39 | struct wil_memio_block { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 40 |   uint32_t op; | 
 | 41 |   uint32_t addr; | 
 | 42 |   uint32_t size; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 |   void __user * block; | 
| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 44 | }; | 
 | 45 | #endif |