xref: /illumos-gate/usr/src/uts/common/io/bnx/include/bits.h (revision 8a2b682e57a046b828f37bcde1776f131ef4629f)
1 /*
2  * Copyright 2014-2017 Cavium, Inc.
3  * The contents of this file are subject to the terms of the Common Development
4  * and Distribution License, v.1,  (the "License").
5  *
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the License at available
9  * at http://opensource.org/licenses/CDDL-1.0
10  *
11  * See the License for the specific language governing permissions and
12  * limitations under the License.
13  */
14 
15 #ifndef _BITS_H
16 #define	_BITS_H
17 
18 /*
19  * Bit Mask definitions
20  */
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #define	BIT_NONE	0x00
27 #define	BIT_0		0x01
28 #define	BIT_1		0x02
29 #define	BIT_2		0x04
30 #define	BIT_3		0x08
31 #define	BIT_4		0x10
32 #define	BIT_5		0x20
33 #define	BIT_6		0x40
34 #define	BIT_7		0x80
35 #define	BIT_8		0x0100
36 #define	BIT_9		0x0200
37 #define	BIT_10		0x0400
38 #define	BIT_11		0x0800
39 #define	BIT_12		0x1000
40 #define	BIT_13		0x2000
41 #define	BIT_14		0x4000
42 #define	BIT_15		0x8000
43 #define	BIT_16		0x010000
44 #define	BIT_17		0x020000
45 #define	BIT_18		0x040000
46 #define	BIT_19		0x080000
47 #define	BIT_20		0x100000
48 #define	BIT_21		0x200000
49 #define	BIT_22		0x400000
50 #define	BIT_23		0x800000
51 #define	BIT_24		0x01000000
52 #define	BIT_25		0x02000000
53 #define	BIT_26		0x04000000
54 #define	BIT_27		0x08000000
55 #define	BIT_28		0x10000000
56 #define	BIT_29		0x20000000
57 #define	BIT_30		0x40000000
58 #define	BIT_31		0x80000000
59 
60 #define	BIT_32		0x0100000000
61 #define	BIT_33		0x0200000000
62 #define	BIT_34		0x0400000000
63 #define	BIT_35		0x0800000000
64 #define	BIT_36		0x1000000000
65 #define	BIT_37		0x2000000000
66 #define	BIT_38		0x4000000000
67 #define	BIT_39		0x8000000000
68 #define	BIT_40		0x010000000000
69 #define	BIT_41		0x020000000000
70 #define	BIT_42		0x040000000000
71 #define	BIT_43		0x080000000000
72 #define	BIT_44		0x100000000000
73 #define	BIT_45		0x200000000000
74 #define	BIT_46		0x400000000000
75 #define	BIT_47		0x800000000000
76 #define	BIT_48		0x01000000000000
77 #define	BIT_49		0x02000000000000
78 #define	BIT_50		0x04000000000000
79 #define	BIT_51		0x08000000000000
80 #define	BIT_52		0x10000000000000
81 #define	BIT_53		0x20000000000000
82 #define	BIT_54		0x40000000000000
83 #define	BIT_55		0x80000000000000
84 #define	BIT_56		0x0100000000000000
85 #define	BIT_57		0x0200000000000000
86 #define	BIT_58		0x0400000000000000
87 #define	BIT_59		0x0800000000000000
88 #define	BIT_60		0x1000000000000000
89 #define	BIT_61		0x2000000000000000
90 #define	BIT_62		0x4000000000000000
91 #define	BIT_63		0x8000000000000000
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* _BITS_H */
98