view rvinterf/include/ffserr.h @ 884:353daaa6014d

gsm-fw/gpf/conf/gsmcomp.c: increased max partition in the voice-only config The code we got from TCS211 had the maximum prim pool partition size set to 900 bytes in the voice-only config (no FAX_AND_DATA, no GPRS) and to 1600 bytes in every other config. As it turns out, this "minimized" config breaks when the AT command interface is used with %CPI enabled, as the responsible code in ATI does an ACI_MALLOC of 1012 bytes. TI may have considered this case to be unsupported usage (perhaps they didn't care about the combination of a voice-only PS with AT command control), but we do want this use case to work without crashing. Solution: I made the largest prim pool the same as it is with FAX_AND_DATA: 3 partitions of 1600 bytes.
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 27 Jun 2015 07:31:30 +0000
parents 244f08f58e51
children
line wrap: on
line source

/*
 * FFS error codes as returned in TMFFS2 response byte packets:
 * these are positive, whereas the ones in the gsm-fw code
 * are negative.
 */

enum TMFFS_ERRORS {
    TMFFS_ERR_NODEVICE    = 1,  /* flash device unknown */
    TMFFS_ERR_CORRUPTED   = 2,  /* filesystem corrupted!? */
    TMFFS_ERR_NOPREFORMAT = 3,  /* ffs not preformatted */
    TMFFS_ERR_NOFORMAT    = 4,  /* ffs not formatted */
    TMFFS_ERR_BADFORMAT   = 5,  /* incompatible ffs version, re-format needed */
    TMFFS_ERR_MAGIC       = 6,  /* bad magic */
    TMFFS_ERR_AGAIN       = 7,  /* not ready, try again later */
    TMFFS_ERR_NOSYS       = 8,  /* function not implemented */
    TMFFS_ERR_DRIVER      = 9,  /* ffs device driver error */

    TMFFS_ERR_NOSPACE     = 10, /* out of data space */
    TMFFS_ERR_FSFULL      = 11, /* file system full, no free inodes */
    TMFFS_ERR_BADNAME     = 12, /* bad filename */
    TMFFS_ERR_NOTFOUND    = 13, /* object not found */
    TMFFS_ERR_EXISTS      = 14, /* object exists */
    TMFFS_ERR_ACCESS      = 15, /* access permission violation */
    TMFFS_ERR_NAMETOOLONG = 16, /* filename too long */
    TMFFS_ERR_INVALID     = 17, /* invalid argument */
    TMFFS_ERR_DIRNOTEMPTY = 18, /* directory not empty */
    TMFFS_ERR_NOTADIR     = 19, /* object is not a directory */
    TMFFS_ERR_SPARE       = 20, /* SPARE */
    TMFFS_ERR_FILETOOBIG  = 21, /* file too big */
    TMFFS_ERR_NOTAFILE    = 22, /* object is not a file */
    TMFFS_ERR_PATHTOODEEP = 23, /* path too deep */

    TMFFS_ERR_NUMFD       = 24, /* Max number of open files reached */
    TMFFS_ERR_BADFD       = 25, /* Bad file descriptor */
    TMFFS_ERR_BADOP       = 26, /* Bad operation */
    TMFFS_ERR_LOCKED      = 27, /* The file is locked */

    TMFFS_ERR_TOOBIG      = 30, /* too big (tmffs buffer overflow) */
    TMFFS_ERR_MEMORY      = 31, /* out of memory */
    TMFFS_ERR_MSGSEND     = 32, /* message send failed */

    /* debug errors - ??? */

    TMFFS_ERR_SIBLINGLOOP = 40, /* directory sibling loop */
    TMFFS_ERR_NOBLOCKS    = 41, /* No more blocks!? */
    TMFFS_ERR_DBR         = 42, /* Data reclaim did not finish!? */
    TMFFS_ERR_RECLAIMLOOP = 43  /* Data reclaim loop */
};