• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef __UAPI_MCTP_H
8 #define __UAPI_MCTP_H
9 #include <linux/types.h>
10 #include <linux/socket.h>
11 #include <linux/netdevice.h>
12 typedef __u8 mctp_eid_t;
13 struct mctp_addr {
14   mctp_eid_t s_addr;
15 };
16 struct sockaddr_mctp {
17   __kernel_sa_family_t smctp_family;
18   __u16 __smctp_pad0;
19   unsigned int smctp_network;
20   struct mctp_addr smctp_addr;
21   __u8 smctp_type;
22   __u8 smctp_tag;
23   __u8 __smctp_pad1;
24 };
25 struct sockaddr_mctp_ext {
26   struct sockaddr_mctp smctp_base;
27   int smctp_ifindex;
28   __u8 smctp_halen;
29   __u8 __smctp_pad0[3];
30   __u8 smctp_haddr[MAX_ADDR_LEN];
31 };
32 #define MCTP_NET_ANY 0x0
33 #define MCTP_ADDR_NULL 0x00
34 #define MCTP_ADDR_ANY 0xff
35 #define MCTP_TAG_MASK 0x07
36 #define MCTP_TAG_OWNER 0x08
37 #define MCTP_TAG_PREALLOC 0x10
38 #define MCTP_OPT_ADDR_EXT 1
39 #define SIOCMCTPALLOCTAG (SIOCPROTOPRIVATE + 0)
40 #define SIOCMCTPDROPTAG (SIOCPROTOPRIVATE + 1)
41 #define SIOCMCTPALLOCTAG2 (SIOCPROTOPRIVATE + 2)
42 #define SIOCMCTPDROPTAG2 (SIOCPROTOPRIVATE + 3)
43 struct mctp_ioc_tag_ctl {
44   mctp_eid_t peer_addr;
45   __u8 tag;
46   __u16 flags;
47 };
48 struct mctp_ioc_tag_ctl2 {
49   unsigned int net;
50   mctp_eid_t peer_addr;
51   mctp_eid_t local_addr;
52   __u16 flags;
53   __u8 tag;
54 };
55 #endif
56