Home | History | Annotate | Download | only in caif
      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  ****************************************************************************/
     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 */
     24 enum caif_link_selector {
     25  CAIF_LINK_HIGH_BANDW,
     26  CAIF_LINK_LOW_LATENCY
     27 };
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 enum caif_channel_priority {
     30  CAIF_PRIO_MIN = 0x01,
     31  CAIF_PRIO_LOW = 0x04,
     32  CAIF_PRIO_NORMAL = 0x0f,
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  CAIF_PRIO_HIGH = 0x14,
     35  CAIF_PRIO_MAX = 0x1F
     36 };
     37 enum caif_protocol_type {
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  CAIFPROTO_AT,
     40  CAIFPROTO_DATAGRAM,
     41  CAIFPROTO_DATAGRAM_LOOP,
     42  CAIFPROTO_UTIL,
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  CAIFPROTO_RFM,
     45  CAIFPROTO_DEBUG,
     46  _CAIFPROTO_MAX
     47 };
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define CAIFPROTO_MAX _CAIFPROTO_MAX
     50 enum caif_at_type {
     51  CAIF_ATTYPE_PLAIN = 2
     52 };
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 enum caif_debug_type {
     55  CAIF_DEBUG_TRACE_INTERACTIVE = 0,
     56  CAIF_DEBUG_TRACE,
     57  CAIF_DEBUG_INTERACTIVE,
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 };
     60 enum caif_debug_service {
     61  CAIF_RADIO_DEBUG_SERVICE = 1,
     62  CAIF_APP_DEBUG_SERVICE
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 };
     65 struct sockaddr_caif {
     66  __kernel_sa_family_t family;
     67  union {
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  struct {
     70  __u8 type;
     71  } at;
     72  struct {
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  char service[16];
     75  } util;
     76  union {
     77  __u32 connection_id;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  __u8 nsapi;
     80  } dgm;
     81  struct {
     82  __u32 connection_id;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  char volume[16];
     85  } rfm;
     86  struct {
     87  __u8 type;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  __u8 service;
     90  } dbg;
     91  } u;
     92 };
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 enum caif_socket_opts {
     95  CAIFSO_LINK_SELECT = 127,
     96  CAIFSO_REQ_PARAM = 128,
     97  CAIFSO_RSP_PARAM = 129,
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 };
    100 #endif
    101