Browse Source

[pseudobit] Rename bitops.h to pseudobit.h

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
2246a6b274
3 changed files with 10 additions and 10 deletions
  1. 2
    2
      src/drivers/infiniband/linda.h
  2. 2
    2
      src/drivers/infiniband/qib7322.h
  3. 6
    6
      src/include/ipxe/pseudobit.h

+ 2
- 2
src/drivers/infiniband/linda.h View File

@@ -33,8 +33,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
33 33
  *
34 34
  */
35 35
 
36
-#define BITOPS_LITTLE_ENDIAN
37
-#include <ipxe/bitops.h>
36
+#define PSEUDOBIT_LITTLE_ENDIAN
37
+#include <ipxe/pseudobit.h>
38 38
 #include "qib_7220_regs.h"
39 39
 
40 40
 struct ib_device;

+ 2
- 2
src/drivers/infiniband/qib7322.h View File

@@ -33,8 +33,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
33 33
  *
34 34
  */
35 35
 
36
-#define BITOPS_LITTLE_ENDIAN
37
-#include <ipxe/bitops.h>
36
+#define PSEUDOBIT_LITTLE_ENDIAN
37
+#include <ipxe/pseudobit.h>
38 38
 #include "qib_7322_regs.h"
39 39
 
40 40
 /** A QIB7322 GPIO register */

src/include/ipxe/bitops.h → src/include/ipxe/pseudobit.h View File

@@ -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 */

Loading…
Cancel
Save