Home | History | Annotate | Download | only in linux
      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_QRTR_H
     20 #define _LINUX_QRTR_H
     21 #include <linux/socket.h>
     22 #include <linux/types.h>
     23 #define QRTR_NODE_BCAST 0xffffffffu
     24 #define QRTR_PORT_CTRL 0xfffffffeu
     25 struct sockaddr_qrtr {
     26   __kernel_sa_family_t sq_family;
     27   __u32 sq_node;
     28   __u32 sq_port;
     29 };
     30 enum qrtr_pkt_type {
     31   QRTR_TYPE_DATA = 1,
     32   QRTR_TYPE_HELLO = 2,
     33   QRTR_TYPE_BYE = 3,
     34   QRTR_TYPE_NEW_SERVER = 4,
     35   QRTR_TYPE_DEL_SERVER = 5,
     36   QRTR_TYPE_DEL_CLIENT = 6,
     37   QRTR_TYPE_RESUME_TX = 7,
     38   QRTR_TYPE_EXIT = 8,
     39   QRTR_TYPE_PING = 9,
     40   QRTR_TYPE_NEW_LOOKUP = 10,
     41   QRTR_TYPE_DEL_LOOKUP = 11,
     42 };
     43 struct qrtr_ctrl_pkt {
     44   __le32 cmd;
     45   union {
     46     struct {
     47       __le32 service;
     48       __le32 instance;
     49       __le32 node;
     50       __le32 port;
     51     } server;
     52     struct {
     53       __le32 node;
     54       __le32 port;
     55     } client;
     56   };
     57 } __packed;
     58 #endif
     59