FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/etmbasic.c @ 132:5380872923a6
fc-tmsh: beginning of l1tm response handling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 19 Feb 2017 20:53:41 +0000 |
parents | 2159f260ed13 |
children | 4aa1c18c7a2f |
comparison
equal
deleted
inserted
replaced
131:cae9cb333c2c | 132:5380872923a6 |
---|---|
66 case MEM_READ: | 66 case MEM_READ: |
67 if (rvi_msg_len < 5) | 67 if (rvi_msg_len < 5) |
68 goto runt; | 68 goto runt; |
69 handle_omr_response(); | 69 handle_omr_response(); |
70 return; | 70 return; |
71 /* L1TM */ | |
72 case TM_INIT: | |
73 if (rvi_msg_len < 5) | |
74 goto runt; | |
75 l1tm_response_nodata("tminit"); | |
76 return; | |
77 case TM_MODE_SET: | |
78 if (rvi_msg_len < 5) | |
79 goto runt; | |
80 l1tm_response_nodata("tms"); | |
81 return; | |
82 case VERSION_GET: | |
83 if (rvi_msg_len < 5) | |
84 goto runt; | |
85 l1tm_response_index_val("tm3ver"); | |
86 return; | |
87 case RF_ENABLE: | |
88 print_etm_pkt_raw("RF_ENABLE response"); | |
89 return; | |
90 case STATS_READ: | |
91 print_etm_pkt_raw("STATS_READ response"); | |
92 return; | |
93 case STATS_CONFIG_WRITE: | |
94 if (rvi_msg_len < 5) | |
95 goto runt; | |
96 l1tm_response_index("scw"); | |
97 return; | |
98 case STATS_CONFIG_READ: | |
99 if (rvi_msg_len < 5) | |
100 goto runt; | |
101 l1tm_response_index_val("scr"); | |
102 return; | |
103 case RF_PARAM_WRITE: | |
104 if (rvi_msg_len < 5) | |
105 goto runt; | |
106 l1tm_response_index("rfpw"); | |
107 return; | |
108 case RF_PARAM_READ: | |
109 if (rvi_msg_len < 5) | |
110 goto runt; | |
111 l1tm_response_index_val("rfpr"); | |
112 return; | |
113 case RF_TABLE_WRITE: | |
114 if (rvi_msg_len < 5) | |
115 goto runt; | |
116 l1tm_response_index("rftw"); | |
117 return; | |
118 case RF_TABLE_READ: | |
119 print_etm_pkt_raw("RF_TABLE_READ response"); | |
120 return; | |
121 case RX_PARAM_WRITE: | |
122 if (rvi_msg_len < 5) | |
123 goto runt; | |
124 l1tm_response_index("rxpw"); | |
125 return; | |
126 case RX_PARAM_READ: | |
127 if (rvi_msg_len < 5) | |
128 goto runt; | |
129 l1tm_response_index_val("rxpr"); | |
130 return; | |
131 case TX_PARAM_WRITE: | |
132 if (rvi_msg_len < 5) | |
133 goto runt; | |
134 l1tm_response_index("txpw"); | |
135 return; | |
136 case TX_PARAM_READ: | |
137 if (rvi_msg_len < 5) | |
138 goto runt; | |
139 l1tm_response_index_val("txpr"); | |
140 return; | |
141 case TX_TEMPLATE_WRITE: | |
142 print_etm_pkt_raw("TX_TEMPLATE_WRITE response"); | |
143 return; | |
144 case TX_TEMPLATE_READ: | |
145 print_etm_pkt_raw("TX_TEMPLATE_READ response"); | |
146 return; | |
147 case MISC_PARAM_WRITE: | |
148 if (rvi_msg_len < 5) | |
149 goto runt; | |
150 l1tm_response_index("mpw"); | |
151 return; | |
152 case MISC_PARAM_READ: | |
153 if (rvi_msg_len < 5) | |
154 goto runt; | |
155 l1tm_response_index_val("mpr"); | |
156 return; | |
157 case MISC_ENABLE: | |
158 if (rvi_msg_len < 5) | |
159 goto runt; | |
160 l1tm_response_index("me"); | |
161 return; | |
71 default: | 162 default: |
72 print_etm_pkt_raw("TM unknown"); | 163 print_etm_pkt_raw("TM unknown"); |
73 } | 164 } |
74 } | 165 } |
75 | 166 |