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
  *
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
 #include "qib_7220_regs.h"
38
 #include "qib_7220_regs.h"
39
 
39
 
40
 struct ib_device;
40
 struct ib_device;

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

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
 #include "qib_7322_regs.h"
38
 #include "qib_7322_regs.h"
39
 
39
 
40
 /** A QIB7322 GPIO register */
40
 /** A QIB7322 GPIO register */

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

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

Loading…
Cancel
Save