summaryrefslogtreecommitdiff
path: root/platform/sysroot/usr/include/linux/caif/caif_socket.h
blob: 999d1b7db19fbc17f36303e19253a155986e9571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/****************************************************************************
 ****************************************************************************
 ***
 ***   This header was automatically generated from a Linux kernel header
 ***   of the same name, to make information necessary for userspace to
 ***   call into the kernel available to libc.  It contains only constants,
 ***   structures, and macros generated from the original header, and thus,
 ***   contains no copyrightable information.
 ***
 ***   To edit the content of this header, modify the corresponding
 ***   source file (e.g. under external/kernel-headers/original/) then
 ***   run bionic/libc/kernel/tools/update_all.py
 ***
 ***   Any manual change here will be lost the next time this script will
 ***   be run. You've been warned!
 ***
 ****************************************************************************
 ****************************************************************************/
#ifndef _LINUX_CAIF_SOCKET_H
#define _LINUX_CAIF_SOCKET_H
#include <linux/types.h>
#include <linux/socket.h>
enum caif_link_selector {
  CAIF_LINK_HIGH_BANDW,
  CAIF_LINK_LOW_LATENCY
};
enum caif_channel_priority {
  CAIF_PRIO_MIN = 0x01,
  CAIF_PRIO_LOW = 0x04,
  CAIF_PRIO_NORMAL = 0x0f,
  CAIF_PRIO_HIGH = 0x14,
  CAIF_PRIO_MAX = 0x1F
};
enum caif_protocol_type {
  CAIFPROTO_AT,
  CAIFPROTO_DATAGRAM,
  CAIFPROTO_DATAGRAM_LOOP,
  CAIFPROTO_UTIL,
  CAIFPROTO_RFM,
  CAIFPROTO_DEBUG,
  _CAIFPROTO_MAX
};
#define CAIFPROTO_MAX _CAIFPROTO_MAX
enum caif_at_type {
  CAIF_ATTYPE_PLAIN = 2
};
enum caif_debug_type {
  CAIF_DEBUG_TRACE_INTERACTIVE = 0,
  CAIF_DEBUG_TRACE,
  CAIF_DEBUG_INTERACTIVE,
};
enum caif_debug_service {
  CAIF_RADIO_DEBUG_SERVICE = 1,
  CAIF_APP_DEBUG_SERVICE
};
struct sockaddr_caif {
  __kernel_sa_family_t family;
  union {
    struct {
      __u8 type;
    } at;
    struct {
      char service[16];
    } util;
    union {
      __u32 connection_id;
      __u8 nsapi;
    } dgm;
    struct {
      __u32 connection_id;
      char volume[16];
    } rfm;
    struct {
      __u8 type;
      __u8 service;
    } dbg;
  } u;
};
enum caif_socket_opts {
  CAIFSO_LINK_SELECT = 127,
  CAIFSO_REQ_PARAM = 128,
  CAIFSO_RSP_PARAM = 129,
};
#endif