blob: 879623cfbf70487710b85059c02e131f55e218ac [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 _LINUX_CAIF_SOCKET_H
20#define _LINUX_CAIF_SOCKET_H
21#include <linux/types.h>
22#include <linux/socket.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24enum caif_link_selector {
Tao Baod7db5942015-01-28 10:07:51 -080025 CAIF_LINK_HIGH_BANDW,
26 CAIF_LINK_LOW_LATENCY
Ben Cheng655a7c02013-10-16 16:09:24 -070027};
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29enum caif_channel_priority {
Tao Baod7db5942015-01-28 10:07:51 -080030 CAIF_PRIO_MIN = 0x01,
31 CAIF_PRIO_LOW = 0x04,
32 CAIF_PRIO_NORMAL = 0x0f,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 CAIF_PRIO_HIGH = 0x14,
35 CAIF_PRIO_MAX = 0x1F
Ben Cheng655a7c02013-10-16 16:09:24 -070036};
37enum caif_protocol_type {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 CAIFPROTO_AT,
40 CAIFPROTO_DATAGRAM,
41 CAIFPROTO_DATAGRAM_LOOP,
42 CAIFPROTO_UTIL,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 CAIFPROTO_RFM,
45 CAIFPROTO_DEBUG,
46 _CAIFPROTO_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define CAIFPROTO_MAX _CAIFPROTO_MAX
50enum caif_at_type {
Tao Baod7db5942015-01-28 10:07:51 -080051 CAIF_ATTYPE_PLAIN = 2
Ben Cheng655a7c02013-10-16 16:09:24 -070052};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54enum caif_debug_type {
Tao Baod7db5942015-01-28 10:07:51 -080055 CAIF_DEBUG_TRACE_INTERACTIVE = 0,
56 CAIF_DEBUG_TRACE,
57 CAIF_DEBUG_INTERACTIVE,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60enum caif_debug_service {
Tao Baod7db5942015-01-28 10:07:51 -080061 CAIF_RADIO_DEBUG_SERVICE = 1,
62 CAIF_APP_DEBUG_SERVICE
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65struct sockaddr_caif {
Tao Baod7db5942015-01-28 10:07:51 -080066 __kernel_sa_family_t family;
67 union {
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 struct {
70 __u8 type;
71 } at;
72 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 char service[16];
75 } util;
76 union {
77 __u32 connection_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u8 nsapi;
80 } dgm;
81 struct {
82 __u32 connection_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 char volume[16];
85 } rfm;
86 struct {
87 __u8 type;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u8 service;
90 } dbg;
91 } u;
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94enum caif_socket_opts {
Tao Baod7db5942015-01-28 10:07:51 -080095 CAIFSO_LINK_SELECT = 127,
96 CAIFSO_REQ_PARAM = 128,
97 CAIFSO_RSP_PARAM = 129,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99};
100#endif