blob: 1821145ce125e4ba5bff590855e7428213c6ef86 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/******************************************************************************
2 *
3 * (C)Copyright 2005 - 2011 Marvell. All Rights Reserved.
4 *
5 * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MARVELL.
6 * The copyright notice above does not evidence any actual or intended
7 * publication of such source code.
8 * This Module contains Proprietary Information of Marvell and should be
9 * treated as Confidential.
10 * The information in this file is provided for the exclusive use of the
11 * licensees of Marvell.
12 * Such users have the right to use, modify, and incorporate this code into
13 * products for purposes authorized by the license agreement provided they
14 * include this notice and the associated copyright notice with any such
15 * product.
16 * The information in this file is provided "AS IS" without warranty.
17
18 ******************************************************************************/
19
20#ifndef __INC_PREDEFINES_H
21
22#define __INC_PREDEFINES_H
23
24
25
26#define BIT_0 ((unsigned int)(1 << 0))
27
28#define BIT_1 ((unsigned int)(1 << 1))
29
30#define BIT_2 ((unsigned int)(1 << 2))
31
32#define BIT_3 ((unsigned int)(1 << 3))
33
34#define BIT_4 ((unsigned int)(1 << 4))
35
36#define BIT_5 ((unsigned int)(1 << 5))
37
38#define BIT_6 ((unsigned int)(1 << 6))
39
40#define BIT_7 ((unsigned int)(1 << 7))
41
42#define BIT_8 ((unsigned int)(1 << 8))
43
44#define BIT_9 ((unsigned int)(1 << 9))
45
46#define BIT_10 ((unsigned int)(1 << 10))
47
48#define BIT_11 ((unsigned int)(1 << 11))
49
50#define BIT_12 ((unsigned int)(1 << 12))
51
52#define BIT_13 ((unsigned int)(1 << 13))
53
54#define BIT_14 ((unsigned int)(1 << 14))
55
56#define BIT_15 ((unsigned int)(1 << 15))
57
58#define BIT_16 ((unsigned int)(1 << 16))
59
60#define BIT_17 ((unsigned int)(1 << 17))
61
62#define BIT_18 ((unsigned int)(1 << 18))
63
64#define BIT_19 ((unsigned int)(1 << 19))
65
66#define BIT_20 ((unsigned int)(1 << 20))
67
68#define BIT_21 ((unsigned int)(1 << 21))
69
70#define BIT_22 ((unsigned int)(1 << 22))
71
72#define BIT_23 ((unsigned int)(1 << 23))
73
74#define BIT_24 ((unsigned int)(1 << 24))
75
76#define BIT_25 ((unsigned int)(1 << 25))
77
78#define BIT_26 ((unsigned int)(1 << 26))
79
80#define BIT_27 ((unsigned int)(1 << 27))
81
82#define BIT_28 ((unsigned int)(1 << 28))
83
84#define BIT_29 ((unsigned int)(1 << 29))
85
86#define BIT_30 ((unsigned int)(1 << 30))
87
88#define BIT_31 ((unsigned int)(1u << 31))
89
90
91#define SHIFT0(Val) ((unsigned int) Val)
92
93#define SHIFT1(Val) (((unsigned int)Val) << 1)
94
95#define SHIFT2(Val) (((unsigned int)Val) << 2)
96
97#define SHIFT3(Val) (((unsigned int)Val) << 3)
98
99#define SHIFT4(Val) (((unsigned int)Val) << 4)
100
101#define SHIFT5(Val) (((unsigned int)Val) << 5)
102
103#define SHIFT6(Val) (((unsigned int)Val) << 6)
104
105#define SHIFT7(Val) (((unsigned int)Val) << 7)
106
107#define SHIFT8(Val) (((unsigned int)Val) << 8)
108
109#define SHIFT9(Val) (((unsigned int)Val) << 9)
110
111#define SHIFT10(Val) (((unsigned int)Val) << 10)
112
113#define SHIFT11(Val) (((unsigned int)Val) << 11)
114
115#define SHIFT12(Val) (((unsigned int)Val) << 12)
116
117#define SHIFT13(Val) (((unsigned int)Val) << 13)
118
119#define SHIFT14(Val) (((unsigned int)Val) << 14)
120
121#define SHIFT15(Val) (((unsigned int)Val) << 15)
122
123#define SHIFT16(Val) (((unsigned int)Val) << 16)
124
125#define SHIFT17(Val) (((unsigned int)Val) << 17)
126
127#define SHIFT18(Val) (((unsigned int)Val) << 18)
128
129#define SHIFT19(Val) (((unsigned int)Val) << 19)
130
131#define SHIFT20(Val) (((unsigned int)Val) << 20)
132
133#define SHIFT21(Val) (((unsigned int)Val) << 21)
134
135#define SHIFT22(Val) (((unsigned int)Val) << 22)
136
137#define SHIFT23(Val) (((unsigned int)Val) << 23)
138
139#define SHIFT24(Val) (((unsigned int)Val) << 24)
140
141#define SHIFT25(Val) (((unsigned int)Val) << 25)
142
143#define SHIFT26(Val) (((unsigned int)Val) << 26)
144
145#define SHIFT27(Val) (((unsigned int)Val) << 27)
146
147#define SHIFT28(Val) (((unsigned int)Val) << 28)
148
149#define SHIFT29(Val) (((unsigned int)Val) << 29)
150
151#define SHIFT30(Val) (((unsigned int)Val) << 30)
152
153#define SHIFT31(Val) (((unsigned int)Val) << 31)
154
155
156
157#endif /* __INC_PREDEFINES_H */