|
@@ -1,5 +1,5 @@
|
1
|
|
-#ifndef _IPXE_BITOPS_H
|
2
|
|
-#define _IPXE_BITOPS_H
|
|
1
|
+#ifndef _IPXE_PSEUDOBIT_H
|
|
2
|
+#define _IPXE_PSEUDOBIT_H
|
3
|
3
|
|
4
|
4
|
/*
|
5
|
5
|
* Copyright (C) 2008 Michael Brown <mbrown@fensystems.co.uk>.
|
|
@@ -29,7 +29,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
29
|
29
|
/**
|
30
|
30
|
* @file
|
31
|
31
|
*
|
32
|
|
- * Bit operations
|
|
32
|
+ * Pseudo-bit structures
|
33
|
33
|
*
|
34
|
34
|
*/
|
35
|
35
|
|
|
@@ -40,14 +40,14 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
40
|
40
|
*
|
41
|
41
|
* This is a property of the device, not a property of the host CPU.
|
42
|
42
|
*/
|
43
|
|
-#ifdef BITOPS_LITTLE_ENDIAN
|
|
43
|
+#ifdef PSEUDOBIT_LITTLE_ENDIAN
|
44
|
44
|
#define cpu_to_BIT64 cpu_to_le64
|
45
|
45
|
#define cpu_to_BIT32 cpu_to_le32
|
46
|
46
|
#define BIT64_to_cpu le64_to_cpu
|
47
|
47
|
#define BIT32_to_cpu le32_to_cpu
|
48
|
48
|
#define QWORD_SHIFT( offset, width ) (offset)
|
49
|
49
|
#endif
|
50
|
|
-#ifdef BITOPS_BIG_ENDIAN
|
|
50
|
+#ifdef PSEUDOBIT_BIG_ENDIAN
|
51
|
51
|
#define cpu_to_BIT64 cpu_to_be64
|
52
|
52
|
#define cpu_to_BIT32 cpu_to_be32
|
53
|
53
|
#define BIT64_to_cpu be64_to_cpu
|
|
@@ -246,4 +246,4 @@ typedef unsigned char pseudo_bit_t;
|
246
|
246
|
*__ptr |= cpu_to_BIT64 ( __value << __shift ); \
|
247
|
247
|
} while ( 0 )
|
248
|
248
|
|
249
|
|
-#endif /* _IPXE_BITOPS_H */
|
|
249
|
+#endif /* _IPXE_PSEUDOBIT_H */
|