Skip to content

Commit

Permalink
[pseudobit] Rename bitops.h to pseudobit.h
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 16, 2016
1 parent 36fbc3f commit 2246a6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/drivers/infiniband/linda.h
Expand Up @@ -33,8 +33,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*
*/

#define BITOPS_LITTLE_ENDIAN
#include <ipxe/bitops.h>
#define PSEUDOBIT_LITTLE_ENDIAN
#include <ipxe/pseudobit.h>
#include "qib_7220_regs.h"

struct ib_device;
Expand Down
4 changes: 2 additions & 2 deletions src/drivers/infiniband/qib7322.h
Expand Up @@ -33,8 +33,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*
*/

#define BITOPS_LITTLE_ENDIAN
#include <ipxe/bitops.h>
#define PSEUDOBIT_LITTLE_ENDIAN
#include <ipxe/pseudobit.h>
#include "qib_7322_regs.h"

/** A QIB7322 GPIO register */
Expand Down
12 changes: 6 additions & 6 deletions src/include/ipxe/bitops.h → src/include/ipxe/pseudobit.h
@@ -1,5 +1,5 @@
#ifndef _IPXE_BITOPS_H
#define _IPXE_BITOPS_H
#ifndef _IPXE_PSEUDOBIT_H
#define _IPXE_PSEUDOBIT_H

/*
* Copyright (C) 2008 Michael Brown <mbrown@fensystems.co.uk>.
Expand Down Expand Up @@ -29,7 +29,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/**
* @file
*
* Bit operations
* Pseudo-bit structures
*
*/

Expand All @@ -40,14 +40,14 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
*
* This is a property of the device, not a property of the host CPU.
*/
#ifdef BITOPS_LITTLE_ENDIAN
#ifdef PSEUDOBIT_LITTLE_ENDIAN
#define cpu_to_BIT64 cpu_to_le64
#define cpu_to_BIT32 cpu_to_le32
#define BIT64_to_cpu le64_to_cpu
#define BIT32_to_cpu le32_to_cpu
#define QWORD_SHIFT( offset, width ) (offset)
#endif
#ifdef BITOPS_BIG_ENDIAN
#ifdef PSEUDOBIT_BIG_ENDIAN
#define cpu_to_BIT64 cpu_to_be64
#define cpu_to_BIT32 cpu_to_be32
#define BIT64_to_cpu be64_to_cpu
Expand Down Expand Up @@ -246,4 +246,4 @@ typedef unsigned char pseudo_bit_t;
*__ptr |= cpu_to_BIT64 ( __value << __shift ); \
} while ( 0 )

#endif /* _IPXE_BITOPS_H */
#endif /* _IPXE_PSEUDOBIT_H */

0 comments on commit 2246a6b

Please sign in to comment.