blob: 1821145ce125e4ba5bff590855e7428213c6ef86 [file] [log] [blame]
/******************************************************************************
*
* (C)Copyright 2005 - 2011 Marvell. All Rights Reserved.
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MARVELL.
* The copyright notice above does not evidence any actual or intended
* publication of such source code.
* This Module contains Proprietary Information of Marvell and should be
* treated as Confidential.
* The information in this file is provided for the exclusive use of the
* licensees of Marvell.
* Such users have the right to use, modify, and incorporate this code into
* products for purposes authorized by the license agreement provided they
* include this notice and the associated copyright notice with any such
* product.
* The information in this file is provided "AS IS" without warranty.
******************************************************************************/
#ifndef __INC_PREDEFINES_H
#define __INC_PREDEFINES_H
#define BIT_0 ((unsigned int)(1 << 0))
#define BIT_1 ((unsigned int)(1 << 1))
#define BIT_2 ((unsigned int)(1 << 2))
#define BIT_3 ((unsigned int)(1 << 3))
#define BIT_4 ((unsigned int)(1 << 4))
#define BIT_5 ((unsigned int)(1 << 5))
#define BIT_6 ((unsigned int)(1 << 6))
#define BIT_7 ((unsigned int)(1 << 7))
#define BIT_8 ((unsigned int)(1 << 8))
#define BIT_9 ((unsigned int)(1 << 9))
#define BIT_10 ((unsigned int)(1 << 10))
#define BIT_11 ((unsigned int)(1 << 11))
#define BIT_12 ((unsigned int)(1 << 12))
#define BIT_13 ((unsigned int)(1 << 13))
#define BIT_14 ((unsigned int)(1 << 14))
#define BIT_15 ((unsigned int)(1 << 15))
#define BIT_16 ((unsigned int)(1 << 16))
#define BIT_17 ((unsigned int)(1 << 17))
#define BIT_18 ((unsigned int)(1 << 18))
#define BIT_19 ((unsigned int)(1 << 19))
#define BIT_20 ((unsigned int)(1 << 20))
#define BIT_21 ((unsigned int)(1 << 21))
#define BIT_22 ((unsigned int)(1 << 22))
#define BIT_23 ((unsigned int)(1 << 23))
#define BIT_24 ((unsigned int)(1 << 24))
#define BIT_25 ((unsigned int)(1 << 25))
#define BIT_26 ((unsigned int)(1 << 26))
#define BIT_27 ((unsigned int)(1 << 27))
#define BIT_28 ((unsigned int)(1 << 28))
#define BIT_29 ((unsigned int)(1 << 29))
#define BIT_30 ((unsigned int)(1 << 30))
#define BIT_31 ((unsigned int)(1u << 31))
#define SHIFT0(Val) ((unsigned int) Val)
#define SHIFT1(Val) (((unsigned int)Val) << 1)
#define SHIFT2(Val) (((unsigned int)Val) << 2)
#define SHIFT3(Val) (((unsigned int)Val) << 3)
#define SHIFT4(Val) (((unsigned int)Val) << 4)
#define SHIFT5(Val) (((unsigned int)Val) << 5)
#define SHIFT6(Val) (((unsigned int)Val) << 6)
#define SHIFT7(Val) (((unsigned int)Val) << 7)
#define SHIFT8(Val) (((unsigned int)Val) << 8)
#define SHIFT9(Val) (((unsigned int)Val) << 9)
#define SHIFT10(Val) (((unsigned int)Val) << 10)
#define SHIFT11(Val) (((unsigned int)Val) << 11)
#define SHIFT12(Val) (((unsigned int)Val) << 12)
#define SHIFT13(Val) (((unsigned int)Val) << 13)
#define SHIFT14(Val) (((unsigned int)Val) << 14)
#define SHIFT15(Val) (((unsigned int)Val) << 15)
#define SHIFT16(Val) (((unsigned int)Val) << 16)
#define SHIFT17(Val) (((unsigned int)Val) << 17)
#define SHIFT18(Val) (((unsigned int)Val) << 18)
#define SHIFT19(Val) (((unsigned int)Val) << 19)
#define SHIFT20(Val) (((unsigned int)Val) << 20)
#define SHIFT21(Val) (((unsigned int)Val) << 21)
#define SHIFT22(Val) (((unsigned int)Val) << 22)
#define SHIFT23(Val) (((unsigned int)Val) << 23)
#define SHIFT24(Val) (((unsigned int)Val) << 24)
#define SHIFT25(Val) (((unsigned int)Val) << 25)
#define SHIFT26(Val) (((unsigned int)Val) << 26)
#define SHIFT27(Val) (((unsigned int)Val) << 27)
#define SHIFT28(Val) (((unsigned int)Val) << 28)
#define SHIFT29(Val) (((unsigned int)Val) << 29)
#define SHIFT30(Val) (((unsigned int)Val) << 30)
#define SHIFT31(Val) (((unsigned int)Val) << 31)
#endif /* __INC_PREDEFINES_H */