1#ifndef _LINUX_GUID_H_ 2#define _LINUX_GUID_H_ 3 4#include <string.h> 5#include <stdio.h> 6 7typedef unsigned char u8; 8typedef unsigned short u16; 9typedef unsigned int u32; 10typedef unsigned long long u64; 11 12typedef unsigned char __u8; 13typedef unsigned short __u16; 14typedef unsigned int __u32; 15typedef unsigned long long __u64; 16 17typedef struct { 18 u8 b[16]; 19} lguid_t; 20 21#define LGUID(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \ 22((lguid_t) \ 23{{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \ 24 (b) & 0xff, ((b) >> 8) & 0xff, \ 25 (c) & 0xff, ((c) >> 8) & 0xff, \ 26 (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }}) 27 28#endif 29