diff options
Diffstat (limited to 'usr/src/uts/common/io/bnx/include/bits.h')
-rw-r--r-- | usr/src/uts/common/io/bnx/include/bits.h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/bnx/include/bits.h b/usr/src/uts/common/io/bnx/include/bits.h new file mode 100644 index 0000000000..e3e2464dc2 --- /dev/null +++ b/usr/src/uts/common/io/bnx/include/bits.h @@ -0,0 +1,97 @@ +/* + * Copyright 2014-2017 Cavium, Inc. + * The contents of this file are subject to the terms of the Common Development + * and Distribution License, v.1, (the "License"). + * + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the License at available + * at http://opensource.org/licenses/CDDL-1.0 + * + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _BITS_H +#define _BITS_H + +/* + * Bit Mask definitions + */ + +#ifdef __cplusplus +extern "C" { +#endif + +#define BIT_NONE 0x00 +#define BIT_0 0x01 +#define BIT_1 0x02 +#define BIT_2 0x04 +#define BIT_3 0x08 +#define BIT_4 0x10 +#define BIT_5 0x20 +#define BIT_6 0x40 +#define BIT_7 0x80 +#define BIT_8 0x0100 +#define BIT_9 0x0200 +#define BIT_10 0x0400 +#define BIT_11 0x0800 +#define BIT_12 0x1000 +#define BIT_13 0x2000 +#define BIT_14 0x4000 +#define BIT_15 0x8000 +#define BIT_16 0x010000 +#define BIT_17 0x020000 +#define BIT_18 0x040000 +#define BIT_19 0x080000 +#define BIT_20 0x100000 +#define BIT_21 0x200000 +#define BIT_22 0x400000 +#define BIT_23 0x800000 +#define BIT_24 0x01000000 +#define BIT_25 0x02000000 +#define BIT_26 0x04000000 +#define BIT_27 0x08000000 +#define BIT_28 0x10000000 +#define BIT_29 0x20000000 +#define BIT_30 0x40000000 +#define BIT_31 0x80000000 + +#define BIT_32 0x0100000000 +#define BIT_33 0x0200000000 +#define BIT_34 0x0400000000 +#define BIT_35 0x0800000000 +#define BIT_36 0x1000000000 +#define BIT_37 0x2000000000 +#define BIT_38 0x4000000000 +#define BIT_39 0x8000000000 +#define BIT_40 0x010000000000 +#define BIT_41 0x020000000000 +#define BIT_42 0x040000000000 +#define BIT_43 0x080000000000 +#define BIT_44 0x100000000000 +#define BIT_45 0x200000000000 +#define BIT_46 0x400000000000 +#define BIT_47 0x800000000000 +#define BIT_48 0x01000000000000 +#define BIT_49 0x02000000000000 +#define BIT_50 0x04000000000000 +#define BIT_51 0x08000000000000 +#define BIT_52 0x10000000000000 +#define BIT_53 0x20000000000000 +#define BIT_54 0x40000000000000 +#define BIT_55 0x80000000000000 +#define BIT_56 0x0100000000000000 +#define BIT_57 0x0200000000000000 +#define BIT_58 0x0400000000000000 +#define BIT_59 0x0800000000000000 +#define BIT_60 0x1000000000000000 +#define BIT_61 0x2000000000000000 +#define BIT_62 0x4000000000000000 +#define BIT_63 0x8000000000000000 + +#ifdef __cplusplus +} +#endif + +#endif /* _BITS_H */ |