155 lines
3.0 KiB
C
155 lines
3.0 KiB
C
/******************************************************************************
|
|
*
|
|
* (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 (1 << 0)
|
|
|
|
#define BIT_1 (1 << 1)
|
|
|
|
#define BIT_2 (1 << 2)
|
|
|
|
#define BIT_3 (1 << 3)
|
|
|
|
#define BIT_4 (1 << 4)
|
|
|
|
#define BIT_5 (1 << 5)
|
|
|
|
#define BIT_6 (1 << 6)
|
|
|
|
#define BIT_7 (1 << 7)
|
|
|
|
#define BIT_8 (1 << 8)
|
|
|
|
#define BIT_9 (1 << 9)
|
|
|
|
#define BIT_10 (1 << 10)
|
|
|
|
#define BIT_11 (1 << 11)
|
|
|
|
#define BIT_12 (1 << 12)
|
|
|
|
#define BIT_13 (1 << 13)
|
|
|
|
#define BIT_14 (1 << 14)
|
|
|
|
#define BIT_15 (1 << 15)
|
|
|
|
#define BIT_16 (1 << 16)
|
|
|
|
#define BIT_17 (1 << 17)
|
|
|
|
#define BIT_18 (1 << 18)
|
|
|
|
#define BIT_19 (1 << 19)
|
|
|
|
#define BIT_20 (1 << 20)
|
|
|
|
#define BIT_21 (1 << 21)
|
|
|
|
#define BIT_22 (1 << 22)
|
|
|
|
#define BIT_23 (1 << 23)
|
|
|
|
#define BIT_24 (1 << 24)
|
|
|
|
#define BIT_25 (1 << 25)
|
|
|
|
#define BIT_26 (1 << 26)
|
|
|
|
#define BIT_27 (1 << 27)
|
|
|
|
#define BIT_28 (1 << 28)
|
|
|
|
#define BIT_29 (1 << 29)
|
|
|
|
#define BIT_30 (1 << 30)
|
|
|
|
|
|
|
|
#define SHIFT0(Val) (Val)
|
|
|
|
#define SHIFT1(Val) ((Val) << 1)
|
|
|
|
#define SHIFT2(Val) ((Val) << 2)
|
|
|
|
#define SHIFT3(Val) ((Val) << 3)
|
|
|
|
#define SHIFT4(Val) ((Val) << 4)
|
|
|
|
#define SHIFT5(Val) ((Val) << 5)
|
|
|
|
#define SHIFT6(Val) ((Val) << 6)
|
|
|
|
#define SHIFT7(Val) ((Val) << 7)
|
|
|
|
#define SHIFT8(Val) ((Val) << 8)
|
|
|
|
#define SHIFT9(Val) ((Val) << 9)
|
|
|
|
#define SHIFT10(Val) ((Val) << 10)
|
|
|
|
#define SHIFT11(Val) ((Val) << 11)
|
|
|
|
#define SHIFT12(Val) ((Val) << 12)
|
|
|
|
#define SHIFT13(Val) ((Val) << 13)
|
|
|
|
#define SHIFT14(Val) ((Val) << 14)
|
|
|
|
#define SHIFT15(Val) ((Val) << 15)
|
|
|
|
#define SHIFT16(Val) ((Val) << 16)
|
|
|
|
#define SHIFT17(Val) ((Val) << 17)
|
|
|
|
#define SHIFT18(Val) ((Val) << 18)
|
|
|
|
#define SHIFT19(Val) ((Val) << 19)
|
|
|
|
#define SHIFT20(Val) ((Val) << 20)
|
|
|
|
#define SHIFT21(Val) ((Val) << 21)
|
|
|
|
#define SHIFT22(Val) ((Val) << 22)
|
|
|
|
#define SHIFT23(Val) ((Val) << 23)
|
|
|
|
#define SHIFT24(Val) ((Val) << 24)
|
|
|
|
#define SHIFT25(Val) ((Val) << 25)
|
|
|
|
#define SHIFT26(Val) ((Val) << 26)
|
|
|
|
#define SHIFT27(Val) ((Val) << 27)
|
|
|
|
#define SHIFT28(Val) ((Val) << 28)
|
|
|
|
#define SHIFT29(Val) ((Val) << 29)
|
|
|
|
#define SHIFT30(Val) ((Val) << 30)
|
|
|
|
#define SHIFT31(Val) ((Val) << 31)
|
|
|
|
|
|
|
|
#endif /* __INC_PREDEFINES_H */
|