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