00001 #ifndef ctsidef_h 00002 #define ctsidef_h 00003 00004 #define CTSI_K_REVISION 1 00005 #define CTSI_C_REVISION 1 00006 #define CTMD_K_SIZE 8 00007 #define CTMD_C_SIZE 8 00008 00009 #define CTCB_K_SIZE 28 00010 #define CTCB_C_SIZE 28 00011 00012 #define CTIOS_K_SIZE 8 00013 #define CTIOS_C_SIZE 8 00014 00015 #define CTSI_K_MODULE_COUNT 6 00016 #define CTSI_C_MODULE_COUNT 6 00017 #define CTSI_K_CHN_COUNT 6 00018 #define CTSI_C_CHN_COUNT 6 00019 #define CTSI_M_CMUSE 0x3 00020 #define CTSI_M_INUSE 0x4 00021 #define CTSI_M_CM 0x10 00022 #define CTSI_S_CTSIDEF 316 00023 00024 struct _ctmd { 00025 unsigned short int ctmd_w_pgcount; 00026 short int ctmd_w_spare_1; 00027 void *ctmd_l_baseaddr; 00028 }; 00029 00030 struct _ctcb { 00031 unsigned char ctcb_b_dvatr; 00032 unsigned char ctcb_b_chatr; 00033 unsigned short int ctcb_w_statesz; 00034 int (*ctcb_l_phy_entry)(); 00035 int (*ctcb_l_vir_entry)(); 00036 void *ctcb_l_phy_segment; 00037 void *ctcb_l_vir_segment; 00038 void *ctcb_l_phy_extend; 00039 void *ctcb_l_vir_extend; 00040 }; 00041 00042 struct _ctios { 00043 00044 union { 00045 struct { 00046 unsigned short int ctios_w_sgmt_count; 00047 short int ctios_w_spare_1; 00048 unsigned char ctios_b_base_segment; 00049 }; 00050 struct { 00051 unsigned short int ctios_w_pgcount; 00052 short int ctios_w_spare_2; 00053 void *ctios_l_segment; 00054 }; 00055 }; 00056 }; 00057 00058 struct _ctsi { 00059 struct _ctsi *ctsi_l_base; 00060 unsigned short int ctsi_w_size; 00061 unsigned short int ctsi_w_ident; 00062 unsigned char ctsi_b_spare0; 00063 unsigned char ctsi_b_chksum; 00064 union { 00065 unsigned char ctsi_b_flags; 00066 struct { 00067 unsigned ctsi_v_cmuse : 2; 00068 unsigned ctsi_v_inuse : 1; 00069 unsigned ctsi_v_spare0 : 1; 00070 unsigned ctsi_v_cm : 1; 00071 unsigned ctsi_v_fill_0_ : 3; 00072 }; 00073 }; 00074 unsigned char ctsi_b_revisn; 00075 unsigned long long ctsi_q_module_desc [6]; 00076 unsigned int ctsi_l_chnblk [42]; 00077 unsigned long long ctsi_q_save; 00078 unsigned long long ctsi_q_restore; 00079 unsigned long long ctsi_q_trans; 00080 unsigned long long ctsi_q_getchr; 00081 unsigned int ctsi_l_getchr_state [4]; 00082 unsigned long long ctsi_q_putchr; 00083 unsigned int ctsi_l_putchr_state [4]; 00084 unsigned long long ctsi_q_putmsg; 00085 unsigned long long ctsi_q_readprompt; 00086 }; 00087 00088 #endif 00089 00090