view rvinterf/include/ffserr.h @ 459:38afaeb194ea

os_tim_fl.c: os_QueryTimer() decompiled w/o real understanding of the logic
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Jun 2014 06:54:40 +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 */
};