Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* $Id: applicom.h,v 1.2 1999/08/28 15:09:49 dwmw2 Exp $ */
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;        /* offset 00 */
0036     s16  stjb_status;           /* offset 02 */
0037     u16  stjb_ticuser_root;     /* offset 04 */
0038     u8   stjb_piduser[4];       /* offset 06 */
0039     u16  stjb_mode;         /* offset 0A */
0040     u16  stjb_time;         /* offset 0C */
0041     u16  stjb_stop;         /* offset 0E */
0042     u16  stjb_nfonc;        /* offset 10 */
0043     u16  stjb_ncard;        /* offset 12 */
0044     u16  stjb_nchan;        /* offset 14 */
0045     u16  stjb_nes;          /* offset 16 */
0046     u16  stjb_nb;           /* offset 18 */
0047     u16  stjb_typvar;       /* offset 1A */
0048     u32  stjb_adr;          /* offset 1C */
0049     u16  stjb_ticuser_dispcyc;  /* offset 20 */
0050     u16  stjb_ticuser_protocol; /* offset 22 */
0051     u8   stjb_filler[12];       /* offset 24 */
0052     u8   stjb_data[256];        /* offset 30 */
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 /* __LINUX_APPLICOM_H__ */