blob: 914cc1da62bbf49717e8f75df8554901c3bf289b [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI__RFKILL_H
20#define _UAPI__RFKILL_H
21#include <linux/types.h>
22#define RFKILL_STATE_SOFT_BLOCKED 0
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070024#define RFKILL_STATE_UNBLOCKED 1
25#define RFKILL_STATE_HARD_BLOCKED 2
26enum rfkill_type {
27 RFKILL_TYPE_ALL = 0,
Nick Kralevicha67e4de2013-01-14 11:28:26 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029 RFKILL_TYPE_WLAN,
30 RFKILL_TYPE_BLUETOOTH,
31 RFKILL_TYPE_UWB,
32 RFKILL_TYPE_WIMAX,
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034 RFKILL_TYPE_WWAN,
35 RFKILL_TYPE_GPS,
36 RFKILL_TYPE_FM,
37 RFKILL_TYPE_NFC,
Nick Kralevicha67e4de2013-01-14 11:28:26 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039 NUM_RFKILL_TYPES,
40};
41enum rfkill_operation {
42 RFKILL_OP_ADD = 0,
Nick Kralevicha67e4de2013-01-14 11:28:26 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044 RFKILL_OP_DEL,
45 RFKILL_OP_CHANGE,
46 RFKILL_OP_CHANGE_ALL,
47};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049struct rfkill_event {
50 __u32 idx;
51 __u8 type;
52 __u8 op;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __u8 soft, hard;
55} __attribute__((packed));
56#define RFKILL_EVENT_SIZE_V1 8
57#define RFKILL_IOC_MAGIC 'R'
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define RFKILL_IOC_NOINPUT 1
60#define RFKILL_IOCTL_NOINPUT _IO(RFKILL_IOC_MAGIC, RFKILL_IOC_NOINPUT)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080061#endif