Merge tag 'io_uring-6.3-2023-03-09' of git://git.kernel.dk/linux
[linux-2.6-microblaze.git] / include / uapi / linux / uuid.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /* DO NOT USE in new code! This is solely for MEI due to legacy reasons */
3 /*
4  * MEI UUID definition
5  *
6  * Copyright (C) 2010, Intel Corp.
7  *      Huang Ying <ying.huang@intel.com>
8  */
9
10 #ifndef _UAPI_LINUX_UUID_H_
11 #define _UAPI_LINUX_UUID_H_
12
13 #include <linux/types.h>
14
15 typedef struct {
16         __u8 b[16];
17 } uuid_le;
18
19 #define UUID_LE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)                \
20 ((uuid_le)                                                              \
21 {{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \
22    (b) & 0xff, ((b) >> 8) & 0xff,                                       \
23    (c) & 0xff, ((c) >> 8) & 0xff,                                       \
24    (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }})
25
26 #define NULL_UUID_LE                                                    \
27         UUID_LE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00,     \
28              0x00, 0x00, 0x00, 0x00)
29
30 #endif /* _UAPI_LINUX_UUID_H_ */