From 2246a6b2749410c641e1472d31ab2d887860c2e9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 16 Mar 2016 17:03:33 +0000 Subject: [PATCH] [pseudobit] Rename bitops.h to pseudobit.h Signed-off-by: Michael Brown --- src/drivers/infiniband/linda.h | 4 ++-- src/drivers/infiniband/qib7322.h | 4 ++-- src/include/ipxe/{bitops.h => pseudobit.h} | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) rename src/include/ipxe/{bitops.h => pseudobit.h} (98%) diff --git a/src/drivers/infiniband/linda.h b/src/drivers/infiniband/linda.h index 46a920a17..44c7686f4 100644 --- a/src/drivers/infiniband/linda.h +++ b/src/drivers/infiniband/linda.h @@ -33,8 +33,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); * */ -#define BITOPS_LITTLE_ENDIAN -#include +#define PSEUDOBIT_LITTLE_ENDIAN +#include #include "qib_7220_regs.h" struct ib_device; diff --git a/src/drivers/infiniband/qib7322.h b/src/drivers/infiniband/qib7322.h index 72797b240..dab95cfc0 100644 --- a/src/drivers/infiniband/qib7322.h +++ b/src/drivers/infiniband/qib7322.h @@ -33,8 +33,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); * */ -#define BITOPS_LITTLE_ENDIAN -#include +#define PSEUDOBIT_LITTLE_ENDIAN +#include #include "qib_7322_regs.h" /** A QIB7322 GPIO register */ diff --git a/src/include/ipxe/bitops.h b/src/include/ipxe/pseudobit.h similarity index 98% rename from src/include/ipxe/bitops.h rename to src/include/ipxe/pseudobit.h index 93eb663e2..431b106fa 100644 --- a/src/include/ipxe/bitops.h +++ b/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 . @@ -29,7 +29,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); /** * @file * - * Bit operations + * Pseudo-bit structures * */ @@ -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 @@ -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 */