1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI__RFKILL_H 7 #define _UAPI__RFKILL_H 8 #include <linux/types.h> 9 #define RFKILL_STATE_SOFT_BLOCKED 0 10 #define RFKILL_STATE_UNBLOCKED 1 11 #define RFKILL_STATE_HARD_BLOCKED 2 12 enum rfkill_type { 13 RFKILL_TYPE_ALL = 0, 14 RFKILL_TYPE_WLAN, 15 RFKILL_TYPE_BLUETOOTH, 16 RFKILL_TYPE_UWB, 17 RFKILL_TYPE_WIMAX, 18 RFKILL_TYPE_WWAN, 19 RFKILL_TYPE_GPS, 20 RFKILL_TYPE_FM, 21 RFKILL_TYPE_NFC, 22 NUM_RFKILL_TYPES, 23 }; 24 enum rfkill_operation { 25 RFKILL_OP_ADD = 0, 26 RFKILL_OP_DEL, 27 RFKILL_OP_CHANGE, 28 RFKILL_OP_CHANGE_ALL, 29 }; 30 struct rfkill_event { 31 __u32 idx; 32 __u8 type; 33 __u8 op; 34 __u8 soft, hard; 35 } __attribute__((packed)); 36 #define RFKILL_EVENT_SIZE_V1 8 37 #define RFKILL_IOC_MAGIC 'R' 38 #define RFKILL_IOC_NOINPUT 1 39 #define RFKILL_IOCTL_NOINPUT _IO(RFKILL_IOC_MAGIC, RFKILL_IOC_NOINPUT) 40 #endif 41