cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

uuid.h (1007B)


      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 * UUID/GUID 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
     15typedef struct {
     16	__u8 b[16];
     17} guid_t;
     18
     19#define GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)			\
     20((guid_t)								\
     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/* backwards compatibility, don't use in new code */
     27typedef guid_t uuid_le;
     28#define UUID_LE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)		\
     29	GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)
     30#define NULL_UUID_LE							\
     31	UUID_LE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00,	\
     32	     0x00, 0x00, 0x00, 0x00)
     33
     34#endif /* _UAPI_LINUX_UUID_H_ */