| Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -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 |  ****************************************************************************/ | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #ifndef _UAPI__RFKILL_H | 
 | 20 | #define _UAPI__RFKILL_H | 
 | 21 | #include <linux/types.h> | 
 | 22 | #define RFKILL_STATE_SOFT_BLOCKED 0 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define RFKILL_STATE_UNBLOCKED 1 | 
 | 24 | #define RFKILL_STATE_HARD_BLOCKED 2 | 
 | 25 | enum rfkill_type { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 |   RFKILL_TYPE_ALL = 0, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 |   RFKILL_TYPE_WLAN, | 
 | 28 |   RFKILL_TYPE_BLUETOOTH, | 
 | 29 |   RFKILL_TYPE_UWB, | 
 | 30 |   RFKILL_TYPE_WIMAX, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 |   RFKILL_TYPE_WWAN, | 
 | 32 |   RFKILL_TYPE_GPS, | 
 | 33 |   RFKILL_TYPE_FM, | 
 | 34 |   RFKILL_TYPE_NFC, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 |   NUM_RFKILL_TYPES, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 36 | }; | 
 | 37 | enum rfkill_operation { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 38 |   RFKILL_OP_ADD = 0, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 |   RFKILL_OP_DEL, | 
 | 40 |   RFKILL_OP_CHANGE, | 
 | 41 |   RFKILL_OP_CHANGE_ALL, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | struct rfkill_event { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 |   __u32 idx; | 
 | 45 |   __u8 type; | 
 | 46 |   __u8 op; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 |   __u8 soft, hard; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | } __attribute__((packed)); | 
 | 49 | #define RFKILL_EVENT_SIZE_V1 8 | 
 | 50 | #define RFKILL_IOC_MAGIC 'R' | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define RFKILL_IOC_NOINPUT 1 | 
 | 52 | #define RFKILL_IOCTL_NOINPUT _IO(RFKILL_IOC_MAGIC, RFKILL_IOC_NOINPUT) | 
| Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 53 | #endif |