isicom.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #ifndef _LINUX_ISICOM_H
  2. #define _LINUX_ISICOM_H
  3. #define YES 1
  4. #define NO 0
  5. /*
  6. * ISICOM Driver definitions ...
  7. *
  8. */
  9. #define ISICOM_NAME "ISICom"
  10. /*
  11. * PCI definitions
  12. */
  13. #define DEVID_COUNT 9
  14. #define VENDOR_ID 0x10b5
  15. /*
  16. * These are now officially allocated numbers
  17. */
  18. #define ISICOM_NMAJOR 112 /* normal */
  19. #define ISICOM_CMAJOR 113 /* callout */
  20. #define ISICOM_MAGIC (('M' << 8) | 'T')
  21. #define WAKEUP_CHARS 256 /* hard coded for now */
  22. #define TX_SIZE 254
  23. #define BOARD_COUNT 4
  24. #define PORT_COUNT (BOARD_COUNT*16)
  25. /* character sizes */
  26. #define ISICOM_CS5 0x0000
  27. #define ISICOM_CS6 0x0001
  28. #define ISICOM_CS7 0x0002
  29. #define ISICOM_CS8 0x0003
  30. /* stop bits */
  31. #define ISICOM_1SB 0x0000
  32. #define ISICOM_2SB 0x0004
  33. /* parity */
  34. #define ISICOM_NOPAR 0x0000
  35. #define ISICOM_ODPAR 0x0008
  36. #define ISICOM_EVPAR 0x0018
  37. /* flow control */
  38. #define ISICOM_CTSRTS 0x03
  39. #define ISICOM_INITIATE_XONXOFF 0x04
  40. #define ISICOM_RESPOND_XONXOFF 0x08
  41. #define BOARD(line) (((line) >> 4) & 0x3)
  42. /* isi kill queue bitmap */
  43. #define ISICOM_KILLTX 0x01
  44. #define ISICOM_KILLRX 0x02
  45. /* isi_board status bitmap */
  46. #define FIRMWARE_LOADED 0x0001
  47. #define BOARD_ACTIVE 0x0002
  48. #define BOARD_INIT 0x0004
  49. /* isi_port status bitmap */
  50. #define ISI_CTS 0x1000
  51. #define ISI_DSR 0x2000
  52. #define ISI_RI 0x4000
  53. #define ISI_DCD 0x8000
  54. #define ISI_DTR 0x0100
  55. #define ISI_RTS 0x0200
  56. #define ISI_TXOK 0x0001
  57. #endif /* ISICOM_H */