linux/drivers/staging/silicom/bits.h
<<
>>
Prefs
   1/******************************************************************************/
   2/*                                                                            */
   3/* Broadcom BCM5700 Linux Network Driver, Copyright (c) 2000 - 2004 Broadcom  */
   4/* Corporation.                                                               */
   5/* All rights reserved.                                                       */
   6/*                                                                            */
   7/* This program is free software; you can redistribute it and/or modify       */
   8/* it under the terms of the GNU General Public License as published by       */
   9/* the Free Software Foundation, located in the file LICENSE.                 */
  10/*                                                                            */
  11/* History:                                                                   */
  12/*    02/25/00 Hav Khauv        Initial version.                              */
  13/******************************************************************************/
  14
  15#ifndef BITS_H
  16#define BITS_H
  17
  18/******************************************************************************/
  19/* Bit Mask definitions */
  20/******************************************************************************/
  21
  22#define BIT_NONE            0x00
  23#define BIT_0               0x01
  24#define BIT_1               0x02
  25#define BIT_2               0x04
  26#define BIT_3               0x08
  27#define BIT_4               0x10
  28#define BIT_5               0x20
  29#define BIT_6               0x40
  30#define BIT_7               0x80
  31#define BIT_8               0x0100
  32#define BIT_9               0x0200
  33#define BIT_10              0x0400
  34#define BIT_11              0x0800
  35#define BIT_12              0x1000
  36#define BIT_13              0x2000
  37#define BIT_14              0x4000
  38#define BIT_15              0x8000
  39#define BIT_16              0x010000
  40#define BIT_17              0x020000
  41#define BIT_18              0x040000
  42#define BIT_19              0x080000
  43#define BIT_20              0x100000
  44#define BIT_21              0x200000
  45#define BIT_22              0x400000
  46#define BIT_23              0x800000
  47#define BIT_24              0x01000000
  48#define BIT_25              0x02000000
  49#define BIT_26              0x04000000
  50#define BIT_27              0x08000000
  51#define BIT_28              0x10000000
  52#define BIT_29              0x20000000
  53#define BIT_30              0x40000000
  54#define BIT_31              0x80000000
  55
  56#endif                          /* BITS_H */
  57