FreeCalypso > hg > freecalypso-tools
view rvinterf/etmsync/fserr.c @ 1014:961efadd530a default tip
fc-shell TCH DL handler: add support for CSD modes
TCH DL capture mechanism in FC Tourmaline firmware has been extended
to support CSD modes in addition to speech - add the necessary support
on the host tools side.
It needs to be noted that this mechanism in its present state does NOT
provide the debug utility value that was sought: as we learned only
after the code was implemented, TI's DSP has a misfeature in that the
buffer we are reading (a_dd_0[]) is zeroed out when the IDS block
is enabled, i.e., we are reading all zeros and not the real DL bits
we were after. But since the code has already been written, we are
keeping it - perhaps we can do some tests with IDS disabled.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 26 Nov 2024 06:27:43 +0000 |
parents | e7502631a0f9 |
children |
line wrap: on
line source
/* * FFS error decoding */ #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include "etm.h" #include "ffs.h" #include "ffserr.h" static struct errtab { int errcode; char *desc; } errtab[] = { {TMFFS_ERR_NODEVICE, "EFFS_NODEVICE: flash device unknown"}, {TMFFS_ERR_CORRUPTED, "EFFS_CORRUPTED: filesystem corrupted"}, {TMFFS_ERR_NOPREFORMAT, "EFFS_NOPREFORMAT: ffs not preformatted"}, {TMFFS_ERR_NOFORMAT, "EFFS_NOFORMAT: ffs not formatted"}, {TMFFS_ERR_BADFORMAT, "EFFS_BADFORMAT: incompatible ffs version, reformat needed"}, {TMFFS_ERR_MAGIC, "EFFS_MAGIC: bad magic"}, {TMFFS_ERR_AGAIN, "EFFS_AGAIN: not ready, try again later"}, {TMFFS_ERR_NOSYS, "EFFS_NOSYS: function not implemented"}, {TMFFS_ERR_DRIVER, "EFFS_DRIVER: ffs device driver error"}, {TMFFS_ERR_NOSPACE, "EFFS_NOSPACE: out of data space"}, {TMFFS_ERR_FSFULL, "EFFS_FSFULL: file system full, no free inodes"}, {TMFFS_ERR_BADNAME, "EFFS_BADNAME: bad filename"}, {TMFFS_ERR_NOTFOUND, "EFFS_NOTFOUND: object not found"}, {TMFFS_ERR_EXISTS, "EFFS_EXISTS: object exists"}, {TMFFS_ERR_ACCESS, "EFFS_ACCESS: access permission violation"}, {TMFFS_ERR_NAMETOOLONG, "EFFS_NAMETOOLONG"}, {TMFFS_ERR_INVALID, "EFFS_INVALID"}, {TMFFS_ERR_DIRNOTEMPTY, "EFFS_DIRNOTEMPTY"}, {TMFFS_ERR_NOTADIR, "EFFS_NOTADIR"}, {TMFFS_ERR_SPARE, "EFFS_SPARE"}, {TMFFS_ERR_FILETOOBIG, "EFFS_FILETOOBIG"}, {TMFFS_ERR_NOTAFILE, "EFFS_NOTAFILE"}, {TMFFS_ERR_PATHTOODEEP, "EFFS_PATHTOODEEP"}, {TMFFS_ERR_NUMFD, "EFFS_NUMFD: max number of open files reached"}, {TMFFS_ERR_BADFD, "EFFS_BADFD: bad file descriptor"}, {TMFFS_ERR_BADOP, "EFFS_BADOP: bad operation"}, {TMFFS_ERR_LOCKED, "EFFS_LOCKED: the file is locked"}, {TMFFS_ERR_TOOBIG, "EFFS_TOOBIG: tmffs buffer overflow"}, {TMFFS_ERR_MEMORY, "EFFS_MEMORY: out of memory"}, {TMFFS_ERR_MSGSEND, "EFFS_MSGSEND: message send failed"}, {TMFFS_ERR_SIBLINGLOOP, "EFFS_SIBLINGLOOP: directory sibling loop"}, {TMFFS_ERR_NOBLOCKS, "EFFS_NOBLOCKS: debug error?"}, {TMFFS_ERR_DBR, "EFFS_DBR: debug error?"}, {TMFFS_ERR_RECLAIMLOOP, "EFFS_RECLAIMLOOP: debug error?"}, {0, 0} }; report_ffs_err(oper, errcode) char *oper; { struct errtab *tp; char *errdesc; for (tp = errtab; tp->errcode; tp++) if (tp->errcode == errcode) break; errdesc = tp->desc; if (!errdesc) errdesc = "unknown"; printf("%s: FFS error %d (%s)\n", oper, errcode, errdesc); }