blob: e68b6c83532d52092acbeaf997df5f73fd433241 [file] [log] [blame]
Christopher Ferris82d75042015-01-26 10:57:07 -08001/****************************************************************************
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 Ferris82d75042015-01-26 10:57:07 -080023#define WIL_IOCTL_MEMIO (SIOCDEVPRIVATE + 2)
24#define WIL_IOCTL_MEMIO_BLOCK (SIOCDEVPRIVATE + 3)
25enum wil_memio_op {
Tao Baod7db5942015-01-28 10:07:51 -080026 wil_mmio_read = 0,
Tao Baod7db5942015-01-28 10:07:51 -080027 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 Baod7db5942015-01-28 10:07:51 -080031 wil_mmio_addr_bar = 2 << 8,
32 wil_mmio_addr_mask = 0xff00,
Christopher Ferris82d75042015-01-26 10:57:07 -080033};
34struct wil_memio {
Tao Baod7db5942015-01-28 10:07:51 -080035 uint32_t op;
36 uint32_t addr;
37 uint32_t val;
Christopher Ferris82d75042015-01-26 10:57:07 -080038};
Christopher Ferris82d75042015-01-26 10:57:07 -080039struct wil_memio_block {
Tao Baod7db5942015-01-28 10:07:51 -080040 uint32_t op;
41 uint32_t addr;
42 uint32_t size;
Tao Baod7db5942015-01-28 10:07:51 -080043 void __user * block;
Christopher Ferris82d75042015-01-26 10:57:07 -080044};
45#endif