applicom.h (2597B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* $Id: applicom.h,v 1.2 1999/08/28 15:09:49 dwmw2 Exp $ */ 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 34struct mailbox{ 35 u16 stjb_codef; /* offset 00 */ 36 s16 stjb_status; /* offset 02 */ 37 u16 stjb_ticuser_root; /* offset 04 */ 38 u8 stjb_piduser[4]; /* offset 06 */ 39 u16 stjb_mode; /* offset 0A */ 40 u16 stjb_time; /* offset 0C */ 41 u16 stjb_stop; /* offset 0E */ 42 u16 stjb_nfonc; /* offset 10 */ 43 u16 stjb_ncard; /* offset 12 */ 44 u16 stjb_nchan; /* offset 14 */ 45 u16 stjb_nes; /* offset 16 */ 46 u16 stjb_nb; /* offset 18 */ 47 u16 stjb_typvar; /* offset 1A */ 48 u32 stjb_adr; /* offset 1C */ 49 u16 stjb_ticuser_dispcyc; /* offset 20 */ 50 u16 stjb_ticuser_protocol; /* offset 22 */ 51 u8 stjb_filler[12]; /* offset 24 */ 52 u8 stjb_data[256]; /* offset 30 */ 53 }; 54 55struct 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 /* __LINUX_APPLICOM_H__ */