FreeCalypso > hg > freecalypso-tools
comparison rvinterf/include/ffserr.h @ 0:e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Jun 2016 00:13:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e7502631a0f9 |
---|---|
1 /* | |
2 * FFS error codes as returned in TMFFS2 response byte packets: | |
3 * these are positive, whereas the ones in the gsm-fw code | |
4 * are negative. | |
5 */ | |
6 | |
7 enum TMFFS_ERRORS { | |
8 TMFFS_ERR_NODEVICE = 1, /* flash device unknown */ | |
9 TMFFS_ERR_CORRUPTED = 2, /* filesystem corrupted!? */ | |
10 TMFFS_ERR_NOPREFORMAT = 3, /* ffs not preformatted */ | |
11 TMFFS_ERR_NOFORMAT = 4, /* ffs not formatted */ | |
12 TMFFS_ERR_BADFORMAT = 5, /* incompatible ffs version, re-format needed */ | |
13 TMFFS_ERR_MAGIC = 6, /* bad magic */ | |
14 TMFFS_ERR_AGAIN = 7, /* not ready, try again later */ | |
15 TMFFS_ERR_NOSYS = 8, /* function not implemented */ | |
16 TMFFS_ERR_DRIVER = 9, /* ffs device driver error */ | |
17 | |
18 TMFFS_ERR_NOSPACE = 10, /* out of data space */ | |
19 TMFFS_ERR_FSFULL = 11, /* file system full, no free inodes */ | |
20 TMFFS_ERR_BADNAME = 12, /* bad filename */ | |
21 TMFFS_ERR_NOTFOUND = 13, /* object not found */ | |
22 TMFFS_ERR_EXISTS = 14, /* object exists */ | |
23 TMFFS_ERR_ACCESS = 15, /* access permission violation */ | |
24 TMFFS_ERR_NAMETOOLONG = 16, /* filename too long */ | |
25 TMFFS_ERR_INVALID = 17, /* invalid argument */ | |
26 TMFFS_ERR_DIRNOTEMPTY = 18, /* directory not empty */ | |
27 TMFFS_ERR_NOTADIR = 19, /* object is not a directory */ | |
28 TMFFS_ERR_SPARE = 20, /* SPARE */ | |
29 TMFFS_ERR_FILETOOBIG = 21, /* file too big */ | |
30 TMFFS_ERR_NOTAFILE = 22, /* object is not a file */ | |
31 TMFFS_ERR_PATHTOODEEP = 23, /* path too deep */ | |
32 | |
33 TMFFS_ERR_NUMFD = 24, /* Max number of open files reached */ | |
34 TMFFS_ERR_BADFD = 25, /* Bad file descriptor */ | |
35 TMFFS_ERR_BADOP = 26, /* Bad operation */ | |
36 TMFFS_ERR_LOCKED = 27, /* The file is locked */ | |
37 | |
38 TMFFS_ERR_TOOBIG = 30, /* too big (tmffs buffer overflow) */ | |
39 TMFFS_ERR_MEMORY = 31, /* out of memory */ | |
40 TMFFS_ERR_MSGSEND = 32, /* message send failed */ | |
41 | |
42 /* debug errors - ??? */ | |
43 | |
44 TMFFS_ERR_SIBLINGLOOP = 40, /* directory sibling loop */ | |
45 TMFFS_ERR_NOBLOCKS = 41, /* No more blocks!? */ | |
46 TMFFS_ERR_DBR = 42, /* Data reclaim did not finish!? */ | |
47 TMFFS_ERR_RECLAIMLOOP = 43 /* Data reclaim loop */ | |
48 }; |