15 #define FSNAME_VFAT "vfat" 16 #define FSNAME_PIPE "pipe" 18 #ifdef GSC_COMP_ENABLE_FATFS 21 #define MAX_FNAME_LEN FF_MAX_LFN 23 #define MAX_FNAME_LEN 12 26 #define MAX_FNAME_LEN 63 30 typedef unsigned long long t_size;
31 typedef long long t_ssize;
33 typedef unsigned int t_size;
41 uchar fname[MAX_FNAME_LEN + 1];
47 #ifdef GSC_COMP_ENABLE_FATFS 50 #ifdef GSC_COMP_ENABLE_PIPEFS 58 int (* mount)(
int drvno,
struct st_device *dev);
59 int (* unmount)(
int drvno,
struct st_device *dev);
61 void * (* open)(
const uchar *path,
int flags);
62 t_ssize (* read)(
void *fd,
void *buf, t_size count);
63 t_ssize (* write)(
void *fd,
const void *buf, t_size count);
64 t_ssize (* seek)(
void *fd, t_ssize offset,
int whence);
65 t_size (* tell)(
void *fd);
66 int (* close)(
void *fd);
69 int (* closedir)(
FS_DIR *dir);
71 int (* getfree)(
const uchar *path,
unsigned long *sect,
void **fso);
72 int (* sync)(
void *fd);
73 int (* unlink)(
const uchar *path);
74 int (* mkdir)(
const uchar *path);
75 int (* chmod)(
const uchar *path,
unsigned char flag);
76 int (* rename)(
const uchar *oldpath,
const uchar *newpath);
77 int (* mkfs)(
const uchar *path,
unsigned char part,
unsigned short alloc);
80 extern struct st_filesystem * search_filesystem(
const char *name);
unsigned char uchar
GadgetSeedの文字(列)は unsigned char 型となる
char name[MAX_DEVNAMELRN]
デバイス名文字列