1*1fb1ea0dSAndy Shevchenko /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2*1fb1ea0dSAndy Shevchenko /* 3*1fb1ea0dSAndy Shevchenko * MEI UUID definition 4*1fb1ea0dSAndy Shevchenko * 5*1fb1ea0dSAndy Shevchenko * Copyright (C) 2010, Intel Corp. 6*1fb1ea0dSAndy Shevchenko * Huang Ying <ying.huang@intel.com> 7*1fb1ea0dSAndy Shevchenko */ 8*1fb1ea0dSAndy Shevchenko 9*1fb1ea0dSAndy Shevchenko #ifndef _UAPI_LINUX_MEI_UUID_H_ 10*1fb1ea0dSAndy Shevchenko #define _UAPI_LINUX_MEI_UUID_H_ 11*1fb1ea0dSAndy Shevchenko 12*1fb1ea0dSAndy Shevchenko #include <linux/types.h> 13*1fb1ea0dSAndy Shevchenko 14*1fb1ea0dSAndy Shevchenko typedef struct { 15*1fb1ea0dSAndy Shevchenko __u8 b[16]; 16*1fb1ea0dSAndy Shevchenko } uuid_le; 17*1fb1ea0dSAndy Shevchenko 18*1fb1ea0dSAndy Shevchenko #define UUID_LE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \ 19*1fb1ea0dSAndy Shevchenko ((uuid_le) \ 20*1fb1ea0dSAndy Shevchenko {{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \ 21*1fb1ea0dSAndy Shevchenko (b) & 0xff, ((b) >> 8) & 0xff, \ 22*1fb1ea0dSAndy Shevchenko (c) & 0xff, ((c) >> 8) & 0xff, \ 23*1fb1ea0dSAndy Shevchenko (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }}) 24*1fb1ea0dSAndy Shevchenko 25*1fb1ea0dSAndy Shevchenko #define NULL_UUID_LE \ 26*1fb1ea0dSAndy Shevchenko UUID_LE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, \ 27*1fb1ea0dSAndy Shevchenko 0x00, 0x00, 0x00, 0x00) 28*1fb1ea0dSAndy Shevchenko 29*1fb1ea0dSAndy Shevchenko #endif /* _UAPI_LINUX_MEI_UUID_H_ */ 30