1 #ifndef _LINUX_GUID_H_ 2 #define _LINUX_GUID_H_ 3 4 #include <string.h> 5 #include <stdio.h> 6 7 typedef unsigned char u8; 8 typedef unsigned short u16; 9 typedef unsigned int u32; 10 typedef unsigned long long u64; 11 12 typedef unsigned char __u8; 13 typedef unsigned short __u16; 14 typedef unsigned int __u32; 15 typedef unsigned long long __u64; 16 17 typedef 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