203
203
{EV_TIMEOUT, 120,121, -1, 0, 0, {ACT_FAILVER, ACT_INIT}},
204
204
{RSP_ERROR, 120,121, -1, 0, 0, {ACT_FAILVER, ACT_INIT}},
205
205
{RSP_OK, 121,121, -1, 0, 0, {ACT_GOTVER, ACT_INIT}},
207
{EV_TIMEOUT, 120,121, -1, 130, 5, {ACT_FAILVER}, "^SGCI=1\r"},
208
{RSP_ERROR, 120,121, -1, 130, 5, {ACT_FAILVER}, "^SGCI=1\r"},
209
{RSP_OK, 121,121, -1, 130, 5, {ACT_GOTVER}, "^SGCI=1\r"},
211
{RSP_OK, 130,130, -1, 0, 0, {ACT_INIT}},
212
{RSP_ERROR, 130,130, -1, 0, 0, {ACT_FAILINIT}},
213
{EV_TIMEOUT, 130,130, -1, 0, 0, {ACT_FAILINIT}},
216
207
/* leave dle mode */
217
208
{RSP_INIT, 0, 0,SEQ_DLE0, 201, 5, {0}, "^SDLE=0\r"},
260
251
{RSP_INIT, 0, 0,SEQ_NOCID, 0, 0, {ACT_ABORTCID}},
264
{RSP_INIT, 0, 0,SEQ_SHUTDOWN, 503, 5, {0}, "^SGCI=0\r"},
265
{RSP_OK, 503,503, -1, 504, 5, {0}, "Z\r"},
267
254
{RSP_INIT, 0, 0,SEQ_SHUTDOWN, 504, 5, {0}, "Z\r"},
268
255
{RSP_OK, 504,504, -1, 0, 0, {ACT_SDOWN}},
269
256
{RSP_ERROR, 501,599, -1, 0, 0, {ACT_FAILSDOWN}},
395
static struct reply_t tab_nocid[]= /* no dle mode */ //FIXME
397
/* resp_code, min_ConState, max_ConState, parameter, new_ConState, timeout, action, command */
399
{RSP_ANY, -1, -1, -1, -1,-1, ACT_WARN, NULL},
400
{RSP_LAST,0,0,0,0,0,0}
403
static struct reply_t tab_cid[] = /* no dle mode */ //FIXME
405
/* resp_code, min_ConState, max_ConState, parameter, new_ConState, timeout, action, command */
407
{RSP_ANY, -1, -1, -1, -1,-1, ACT_WARN, NULL},
408
{RSP_LAST,0,0,0,0,0,0}
412
381
static const struct resp_type_t resp_type[] =
414
383
/*{"", RSP_EMPTY, RT_NOTHING},*/
665
634
dev_err(cs->dev, "out of memory\n");
668
#ifdef CONFIG_GIGASET_DEBUG
670
gig_dbg(DEBUG_CMD, "string==NULL");
672
gig_dbg(DEBUG_CMD, "string==%s",
673
(char *) event->ptr);
637
gig_dbg(DEBUG_CMD, "string==%s",
638
event->ptr ? (char *) event->ptr : "NULL");
677
641
event->parameter = -1;