0001
0002
0003
0004
0005 #ifndef __LINUX_APPLICOM_H__
0006 #define __LINUX_APPLICOM_H__
0007
0008
0009 #define DATA_TO_PC_READY 0x00
0010 #define TIC_OWNER_TO_PC 0x01
0011 #define NUMCARD_OWNER_TO_PC 0x02
0012 #define TIC_DES_TO_PC 0x03
0013 #define NUMCARD_DES_TO_PC 0x04
0014 #define DATA_FROM_PC_READY 0x05
0015 #define TIC_OWNER_FROM_PC 0x06
0016 #define NUMCARD_OWNER_FROM_PC 0x07
0017 #define TIC_DES_FROM_PC 0x08
0018 #define NUMCARD_DES_FROM_PC 0x09
0019 #define ACK_FROM_PC_READY 0x0E
0020 #define TIC_ACK_FROM_PC 0x0F
0021 #define NUMCARD_ACK_FROM_PC 0x010
0022 #define TYP_ACK_FROM_PC 0x011
0023 #define CONF_END_TEST 0x012
0024 #define ERROR_CODE 0x016
0025 #define PARAMETER_ERROR 0x018
0026 #define VERS 0x01E
0027 #define RAM_TO_PC 0x040
0028 #define RAM_FROM_PC 0x0170
0029 #define TYPE_CARD 0x03C0
0030 #define SERIAL_NUMBER 0x03DA
0031 #define RAM_IT_FROM_PC 0x03FE
0032 #define RAM_IT_TO_PC 0x03FF
0033
0034 struct mailbox{
0035 u16 stjb_codef;
0036 s16 stjb_status;
0037 u16 stjb_ticuser_root;
0038 u8 stjb_piduser[4];
0039 u16 stjb_mode;
0040 u16 stjb_time;
0041 u16 stjb_stop;
0042 u16 stjb_nfonc;
0043 u16 stjb_ncard;
0044 u16 stjb_nchan;
0045 u16 stjb_nes;
0046 u16 stjb_nb;
0047 u16 stjb_typvar;
0048 u32 stjb_adr;
0049 u16 stjb_ticuser_dispcyc;
0050 u16 stjb_ticuser_protocol;
0051 u8 stjb_filler[12];
0052 u8 stjb_data[256];
0053 };
0054
0055 struct st_ram_io
0056 {
0057 unsigned char data_to_pc_ready;
0058 unsigned char tic_owner_to_pc;
0059 unsigned char numcard_owner_to_pc;
0060 unsigned char tic_des_to_pc;
0061 unsigned char numcard_des_to_pc;
0062 unsigned char data_from_pc_ready;
0063 unsigned char tic_owner_from_pc;
0064 unsigned char numcard_owner_from_pc;
0065 unsigned char tic_des_from_pc;
0066 unsigned char numcard_des_from_pc;
0067 unsigned char ack_to_pc_ready;
0068 unsigned char tic_ack_to_pc;
0069 unsigned char numcard_ack_to_pc;
0070 unsigned char typ_ack_to_pc;
0071 unsigned char ack_from_pc_ready;
0072 unsigned char tic_ack_from_pc;
0073 unsigned char numcard_ack_from_pc;
0074 unsigned char typ_ack_from_pc;
0075 unsigned char conf_end_test[4];
0076 unsigned char error_code[2];
0077 unsigned char parameter_error[4];
0078 unsigned char time_base;
0079 unsigned char nul_inc;
0080 unsigned char vers;
0081 unsigned char num_card;
0082 unsigned char reserv1[32];
0083 };
0084
0085
0086 #endif