errors.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. ** -----------------------------------------------------------------------------
  3. **
  4. ** Perle Specialix driver for Linux
  5. ** Ported from existing RIO Driver for SCO sources.
  6. *
  7. * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. **
  23. ** Module : errors.h
  24. ** SID : 1.2
  25. ** Last Modified : 11/6/98 11:34:10
  26. ** Retrieved : 11/6/98 11:34:21
  27. **
  28. ** ident @(#)errors.h 1.2
  29. **
  30. ** -----------------------------------------------------------------------------
  31. */
  32. #ifndef __rio_errors_h__
  33. #define __rio_errors_h__
  34. /*
  35. ** error codes
  36. */
  37. #define NOTHING_WRONG_AT_ALL 0
  38. #define BAD_CHARACTER_IN_NAME 1
  39. #define TABLE_ENTRY_ISNT_PROPERLY_NULL 2
  40. #define UNKNOWN_HOST_NUMBER 3
  41. #define ZERO_RTA_ID 4
  42. #define BAD_RTA_ID 5
  43. #define DUPLICATED_RTA_ID 6
  44. #define DUPLICATE_UNIQUE_NUMBER 7
  45. #define BAD_TTY_NUMBER 8
  46. #define TTY_NUMBER_IN_USE 9
  47. #define NAME_USED_TWICE 10
  48. #define HOST_ID_NOT_ZERO 11
  49. #define BOOT_IN_PROGRESS 12
  50. #define COPYIN_FAILED 13
  51. #define HOST_FILE_TOO_LARGE 14
  52. #define COPYOUT_FAILED 15
  53. #define NOT_SUPER_USER 16
  54. #define RIO_ALREADY_POLLING 17
  55. #define ID_NUMBER_OUT_OF_RANGE 18
  56. #define PORT_NUMBER_OUT_OF_RANGE 19
  57. #define HOST_NUMBER_OUT_OF_RANGE 20
  58. #define RUP_NUMBER_OUT_OF_RANGE 21
  59. #define TTY_NUMBER_OUT_OF_RANGE 22
  60. #define LINK_NUMBER_OUT_OF_RANGE 23
  61. #define HOST_NOT_RUNNING 24
  62. #define IOCTL_COMMAND_UNKNOWN 25
  63. #define RIO_SYSTEM_HALTED 26
  64. #define WAIT_FOR_DRAIN_BROKEN 27
  65. #define PORT_NOT_MAPPED_INTO_SYSTEM 28
  66. #define EXCLUSIVE_USE_SET 29
  67. #define WAIT_FOR_NOT_CLOSING_BROKEN 30
  68. #define WAIT_FOR_PORT_TO_OPEN_BROKEN 31
  69. #define WAIT_FOR_CARRIER_BROKEN 32
  70. #define WAIT_FOR_NOT_IN_USE_BROKEN 33
  71. #define WAIT_FOR_CAN_ADD_COMMAND_BROKEN 34
  72. #define WAIT_FOR_ADD_COMMAND_BROKEN 35
  73. #define WAIT_FOR_NOT_PARAM_BROKEN 36
  74. #define WAIT_FOR_RETRY_BROKEN 37
  75. #define HOST_HAS_ALREADY_BEEN_BOOTED 38
  76. #define UNIT_IS_IN_USE 39
  77. #define COULDNT_FIND_ENTRY 40
  78. #define RTA_UNIQUE_NUMBER_ZERO 41
  79. #define CLOSE_COMMAND_FAILED 42
  80. #define WAIT_FOR_CLOSE_BROKEN 43
  81. #define CPS_VALUE_OUT_OF_RANGE 44
  82. #define ID_ALREADY_IN_USE 45
  83. #define SIGNALS_ALREADY_SET 46
  84. #define NOT_RECEIVING_PROCESS 47
  85. #define RTA_NUMBER_WRONG 48
  86. #define NO_SUCH_PRODUCT 49
  87. #define HOST_SYSPORT_BAD 50
  88. #define ID_NOT_TENTATIVE 51
  89. #define XPRINT_CPS_OUT_OF_RANGE 52
  90. #define NOT_ENOUGH_CORE_FOR_PCI_COPY 53
  91. #endif /* __rio_errors_h__ */