sba_def.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /******************************************************************************
  2. *
  3. * (C)Copyright 1998,1999 SysKonnect,
  4. * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * The information in this file is provided "AS IS" without warranty.
  12. *
  13. ******************************************************************************/
  14. #define PHYS 0 /* physical addr */
  15. #define PERM_ADDR 0x80 /* permanet address */
  16. #define SB_STATIC 0x00000001
  17. #define MAX_PAYLOAD 1562
  18. #define PRIMARY_RING 0x00000001
  19. #ifndef NULL
  20. #define NULL 0x00
  21. #endif
  22. /*********************** SB_Input Variable Values ***********************/
  23. /* may be needed when ever the SBA state machine is called */
  24. #define UNKNOWN_SYNC_SOURCE 0x0001
  25. #define REQ_ALLOCATION 0x0002
  26. #define REPORT_RESP 0x0003
  27. #define CHANGE_RESP 0x0004
  28. #define TNEG 0x0005
  29. #define NIF 0x0006
  30. #define SB_STOP 0x0007
  31. #define SB_START 0x0008
  32. #define REPORT_TIMER 0x0009
  33. #define CHANGE_REQUIRED 0x000A
  34. #define DEFAULT_OV 50
  35. #ifdef SBA
  36. /**************************** SBA STATES *****************************/
  37. #define SBA_STANDBY 0x00000000
  38. #define SBA_ACTIVE 0x00000001
  39. #define SBA_RECOVERY 0x00000002
  40. #define SBA_REPORT 0x00000003
  41. #define SBA_CHANGE 0x00000004
  42. /**************************** OTHERS *********************************/
  43. #define FIFTY_PERCENT 50 /* bytes per second */
  44. #define MAX_SESSIONS 150
  45. #define TWO_MINUTES 13079 /* 9.175 ms/tick */
  46. #define FIFTY_BYTES 50
  47. #define SBA_DENIED 0x0000000D
  48. #define I_NEED_ONE 0x00000000
  49. #define MAX_NODES 50
  50. /*#define T_REPORT 0x59682F00L*/ /* 120s/80ns in Hex */
  51. #define TWO_MIN 120 /* seconds */
  52. #define SBA_ST_UNKNOWN 0x00000002
  53. #define SBA_ST_ACTIVE 0x00000001
  54. #define S_CLEAR 0x00000000L
  55. #define ZERO 0x00000000
  56. #define FULL 0x00000000 /* old: 0xFFFFFFFFF */
  57. #define S_SET 0x00000001L
  58. #define LOW_PRIO 0x02 /* ??????? */
  59. #define OK 0x01 /* ??????? */
  60. #define NOT_OK 0x00 /* ??????? */
  61. /****************************************/
  62. /* deallocate_status[ni][si] values */
  63. /****************************************/
  64. #define TX_CHANGE 0X00000001L
  65. #define PENDING 0x00000002L
  66. #define NONE 0X00000000L
  67. #endif