applicom.h 2.5 KB

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