/drivers/staging/cxt1e1/pmcc4_defs.h

https://bitbucket.org/wisechild/galaxy-nexus · C++ Header · 82 lines · 31 code · 14 blank · 37 comment · 2 complexity · 243141ab6fe2941247c906fed10b9508 MD5 · raw file

  1. /*
  2. * $Id: pmcc4_defs.h,v 1.0 2005/09/28 00:10:09 rickd PMCC4_3_1B $
  3. */
  4. #ifndef _INC_PMCC4_DEFS_H_
  5. #define _INC_PMCC4_DEFS_H_
  6. /*-----------------------------------------------------------------------------
  7. * c4_defs.h -
  8. *
  9. * Implementation elements of the wanPMC-C4T1E1 device driver
  10. *
  11. * Copyright (C) 2005 SBE, Inc.
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * For further information, contact via email: support@sbei.com
  24. * SBE, Inc. San Ramon, California U.S.A.
  25. *-----------------------------------------------------------------------------
  26. * RCS info:
  27. * RCS revision: $Revision: 1.0 $
  28. * Last changed on $Date: 2005/09/28 00:10:09 $
  29. * Changed by $Author: rickd $
  30. *-----------------------------------------------------------------------------
  31. * $Log: pmcc4_defs.h,v $
  32. * Revision 1.0 2005/09/28 00:10:09 rickd
  33. * Initial revision
  34. *
  35. *-----------------------------------------------------------------------------
  36. */
  37. #define MAX_BOARDS 8
  38. #define MAX_CHANS_USED 128
  39. #ifdef SBE_PMCC4_ENABLE
  40. #define MUSYCC_NPORTS 4 /* CN8474 */
  41. #endif
  42. #ifdef SBE_WAN256T3_ENABLE
  43. #define MUSYCC_NPORTS 8 /* CN8478 */
  44. #endif
  45. #define MUSYCC_NCHANS 32 /* actually, chans per port */
  46. #define MUSYCC_NIQD 0x1000 /* power of 2 */
  47. #define MUSYCC_MRU 2048 /* default */
  48. #define MUSYCC_MTU 2048 /* default */
  49. #define MUSYCC_TXDESC_MIN 10 /* HDLC mode default */
  50. #define MUSYCC_RXDESC_MIN 18 /* HDLC mode default */
  51. #define MUSYCC_TXDESC_TRANS 4 /* Transparent mode minimum # of TX descriptors */
  52. #define MUSYCC_RXDESC_TRANS 12 /* Transparent mode minimum # of RX descriptors */
  53. #define MAX_DEFAULT_IFQLEN 32 /* network qlen */
  54. #define SBE_IFACETMPL "pmcc4-%d"
  55. #ifdef IFNAMSIZ
  56. #define SBE_IFACETMPL_SIZE IFNAMSIZ
  57. #else
  58. #define SBE_IFACETMPL_SIZE 16
  59. #endif
  60. /* we want the PMCC4 watchdog to fire off every 250ms */
  61. #define WATCHDOG_TIMEOUT 250000
  62. /* if we restart the watchdog every 250ms, then we'll time out
  63. * an additional 300ms later */
  64. #define WATCHDOG_UTIMEOUT (WATCHDOG_TIMEOUT+300000)
  65. #if !defined(SBE_ISR_TASKLET) && !defined(SBE_ISR_IMMEDIATE) && !defined(SBE_ISR_INLINE)
  66. #define SBE_ISR_TASKLET
  67. #endif
  68. #endif /*** _INC_PMCC4_DEFS_H_ ***/