xref: /linux-6.15/include/uapi/linux/mctp.h (revision b416beb2)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * Management Component Transport Protocol (MCTP)
4  *
5  * Copyright (c) 2021 Code Construct
6  * Copyright (c) 2021 Google
7  */
8 
9 #ifndef __UAPI_MCTP_H
10 #define __UAPI_MCTP_H
11 
12 #include <linux/types.h>
13 #include <linux/socket.h>
14 
15 typedef __u8			mctp_eid_t;
16 
17 struct mctp_addr {
18 	mctp_eid_t		s_addr;
19 };
20 
21 struct sockaddr_mctp {
22 	__kernel_sa_family_t	smctp_family;
23 	unsigned int		smctp_network;
24 	struct mctp_addr	smctp_addr;
25 	__u8			smctp_type;
26 	__u8			smctp_tag;
27 };
28 
29 #define MCTP_NET_ANY		0x0
30 
31 #define MCTP_ADDR_NULL		0x00
32 #define MCTP_ADDR_ANY		0xff
33 
34 #define MCTP_TAG_MASK		0x07
35 #define MCTP_TAG_OWNER		0x08
36 
37 #endif /* __UAPI_MCTP_H */
38