applicom.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* $Id: applicom.h,v 1.2 1999/08/28 15:09:49 dwmw2 Exp $ */
  3. #ifndef __LINUX_APPLICOM_H__
  4. #define __LINUX_APPLICOM_H__
  5. #define DATA_TO_PC_READY 0x00
  6. #define TIC_OWNER_TO_PC 0x01
  7. #define NUMCARD_OWNER_TO_PC 0x02
  8. #define TIC_DES_TO_PC 0x03
  9. #define NUMCARD_DES_TO_PC 0x04
  10. #define DATA_FROM_PC_READY 0x05
  11. #define TIC_OWNER_FROM_PC 0x06
  12. #define NUMCARD_OWNER_FROM_PC 0x07
  13. #define TIC_DES_FROM_PC 0x08
  14. #define NUMCARD_DES_FROM_PC 0x09
  15. #define ACK_FROM_PC_READY 0x0E
  16. #define TIC_ACK_FROM_PC 0x0F
  17. #define NUMCARD_ACK_FROM_PC 0x010
  18. #define TYP_ACK_FROM_PC 0x011
  19. #define CONF_END_TEST 0x012
  20. #define ERROR_CODE 0x016
  21. #define PARAMETER_ERROR 0x018
  22. #define VERS 0x01E
  23. #define RAM_TO_PC 0x040
  24. #define RAM_FROM_PC 0x0170
  25. #define TYPE_CARD 0x03C0
  26. #define SERIAL_NUMBER 0x03DA
  27. #define RAM_IT_FROM_PC 0x03FE
  28. #define RAM_IT_TO_PC 0x03FF
  29. struct mailbox{
  30. u16 stjb_codef; /* offset 00 */
  31. s16 stjb_status; /* offset 02 */
  32. u16 stjb_ticuser_root; /* offset 04 */
  33. u8 stjb_piduser[4]; /* offset 06 */
  34. u16 stjb_mode; /* offset 0A */
  35. u16 stjb_time; /* offset 0C */
  36. u16 stjb_stop; /* offset 0E */
  37. u16 stjb_nfonc; /* offset 10 */
  38. u16 stjb_ncard; /* offset 12 */
  39. u16 stjb_nchan; /* offset 14 */
  40. u16 stjb_nes; /* offset 16 */
  41. u16 stjb_nb; /* offset 18 */
  42. u16 stjb_typvar; /* offset 1A */
  43. u32 stjb_adr; /* offset 1C */
  44. u16 stjb_ticuser_dispcyc; /* offset 20 */
  45. u16 stjb_ticuser_protocol; /* offset 22 */
  46. u8 stjb_filler[12]; /* offset 24 */
  47. u8 stjb_data[256]; /* offset 30 */
  48. };
  49. struct st_ram_io
  50. {
  51. unsigned char data_to_pc_ready;
  52. unsigned char tic_owner_to_pc;
  53. unsigned char numcard_owner_to_pc;
  54. unsigned char tic_des_to_pc;
  55. unsigned char numcard_des_to_pc;
  56. unsigned char data_from_pc_ready;
  57. unsigned char tic_owner_from_pc;
  58. unsigned char numcard_owner_from_pc;
  59. unsigned char tic_des_from_pc;
  60. unsigned char numcard_des_from_pc;
  61. unsigned char ack_to_pc_ready;
  62. unsigned char tic_ack_to_pc;
  63. unsigned char numcard_ack_to_pc;
  64. unsigned char typ_ack_to_pc;
  65. unsigned char ack_from_pc_ready;
  66. unsigned char tic_ack_from_pc;
  67. unsigned char numcard_ack_from_pc;
  68. unsigned char typ_ack_from_pc;
  69. unsigned char conf_end_test[4];
  70. unsigned char error_code[2];
  71. unsigned char parameter_error[4];
  72. unsigned char time_base;
  73. unsigned char nul_inc;
  74. unsigned char vers;
  75. unsigned char num_card;
  76. unsigned char reserv1[32];
  77. };
  78. #endif /* __LINUX_APPLICOM_H__ */