comparison g23m/condat/com/src/driver/ffs.c @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul :
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose :
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifdef _SIMULATION_
22 #ifndef _FFS_C_
23 #define _FFS_C_
24
25 #ifndef GPRS
26 #include "ffs/ffs.h"
27 #undef GPRS /* ffs.h somehow defines GPRS: has to be undef ifndef GPRS */
28
29 #else /* GPRS */
30 #include "ffs/ffs.h"
31 #endif /* GPRS */
32
33 /******************************************************************************
34 * Types
35 ******************************************************************************/
36 /******************************************************************************
37 * Function prototypes
38 ******************************************************************************/
39
40 /* Call-back function prototypes */
41
42 T_FFS_REQ_ID ffs_fcreate_nb(const char *name, void *addr, T_FFS_SIZE size, T_RV_RETURN *cp)
43 {
44 return EFFS_OK;
45 }
46
47 T_FFS_REQ_ID ffs_fupdate_nb(const char *name, void *addr, T_FFS_SIZE size, T_RV_RETURN *cp)
48 {
49 return EFFS_OK;
50 }
51
52 T_FFS_REQ_ID ffs_fwrite_nb(const char *name, void *addr, T_FFS_SIZE size, T_RV_RETURN *cp)
53 {
54 return EFFS_OK;
55 }
56
57 T_FFS_REQ_ID ffs_mkdir_nb(const char *name, T_RV_RETURN *cp)
58 {
59 return EFFS_OK;
60 }
61
62 T_FFS_REQ_ID ffs_symlink_nb(const char *name, const char *actualpath, T_RV_RETURN *cp)
63 {
64 return EFFS_OK;
65 }
66
67 T_FFS_REQ_ID ffs_remove_nb(const char *namestruct, T_RV_RETURN *cp)
68 {
69 return EFFS_OK;
70 }
71
72 T_FFS_REQ_ID ffs_fcontrol_nb(const char *pathname, INT8 action, int param, T_RV_RETURN *cp)
73 {
74 return EFFS_OK;
75 }
76
77 T_FFS_REQ_ID ffs_preformat_nb(UINT16 magic, T_RV_RETURN *cp)
78 {
79 return EFFS_OK;
80 }
81
82 T_FFS_REQ_ID ffs_format_nb(const char *name, UINT16 magic, T_RV_RETURN *cp)
83 {
84 return EFFS_OK;
85 }
86
87
88
89 /* No-call-back function prototypes */
90 T_FFS_RET ffs_fcreate(const char *name, void *addr, T_FFS_SIZE size)
91 {
92 return EFFS_OK;
93 }
94
95 T_FFS_RET ffs_fupdate(const char *name, void *addr, T_FFS_SIZE size)
96 {
97 return EFFS_OK;
98 }
99
100 T_FFS_RET ffs_fwrite(const char *name, void *addr, T_FFS_SIZE size)
101 {
102 return EFFS_OK;
103 }
104
105 T_FFS_SIZE ffs_fread(const char *name, void *addr, T_FFS_SIZE size)
106 {
107 return 0;
108 }
109
110 T_FFS_RET ffs_file_write(const char *name, void *addr, T_FFS_SIZE size, T_FFS_OPEN_FLAGS flags)
111 {
112 return EFFS_OK;
113 }
114
115 T_FFS_SIZE ffs_file_read(const char *name, void *addr, T_FFS_SIZE size)
116 {
117 return 0;
118 }
119
120 #if 0
121 T_FFS_RET ffs_mkdir(const char *name)
122 {
123 return EFFS_OK;
124 }
125
126 T_FFS_SIZE ffs_opendir(const char *name, T_FFS_DIR *dir)
127 {
128 return 0;
129 }
130
131 T_FFS_SIZE ffs_readdir (T_FFS_DIR *dir, char *name, T_FFS_SIZE size)
132 {
133 return EFFS_OK;
134 }
135 #endif
136
137 T_FFS_RET ffs_symlink(const char *name, const char *actualpath)
138 {
139 return EFFS_OK;
140 }
141
142 T_FFS_SIZE ffs_readlink(const char *name, char *addr, T_FFS_SIZE size)
143 {
144 return 0;
145 }
146
147 #if 0
148 T_FFS_RET ffs_stat(const char *name, T_FFS_STAT *stat)
149 {
150 return EFFS_OK;
151 }
152 #endif
153
154 T_FFS_RET ffs_linkstat(const char *name, T_FFS_STAT *stat)
155 {
156 return EFFS_OK;
157 }
158
159 #if 0
160 T_FFS_RET ffs_remove(const char *name)
161 {
162 return EFFS_OK;
163 }
164 #endif
165
166 T_FFS_RET ffs_fcontrol(const char *pathname, INT8 action, int param)
167 {
168 return EFFS_OK;
169 }
170
171 T_FFS_RET ffs_query(INT8 query, void *p)
172 {
173 return EFFS_OK;
174 }
175
176 T_FFS_RET ffs_preformat(UINT16 magic)
177 {
178 return EFFS_OK;
179 }
180
181 T_FFS_RET ffs_format(const char *name, UINT16 magic)
182 {
183 return EFFS_OK;
184 }
185 /*
186 effs_t ffs_init(void)
187 {
188 return EFFS_OK;
189 }
190
191 effs_t ffs_exit(void)
192 {
193 return EFFS_OK;
194 }
195 */
196 #endif /*_FFS_C_*/
197 #endif /* _SIMULATION_ */