20#ifndef __DC_FS_DCLOAD_H
21#define __DC_FS_DCLOAD_H
46#define DCLOADMAGICVALUE 0xdeadbeef
49#define DCLOADMAGICADDR (unsigned int *)0x8c004004
52#define DCLOAD_TYPE_NONE -1
53#define DCLOAD_TYPE_SER 0
54#define DCLOAD_TYPE_IP 1
68#define DCLOAD_UNLINK 6
72#define DCLOAD_FSTAT 10
75#define DCLOAD_UTIME 13
76#define DCLOAD_ASSIGNWRKMEM 14
78#define DCLOAD_OPENDIR 16
79#define DCLOAD_CLOSEDIR 17
80#define DCLOAD_READDIR 18
81#define DCLOAD_GETHOSTINFO 19
82#define DCLOAD_GDBPACKET 20
86int dcloadsyscall(
unsigned int syscall, ...);
93 unsigned short d_reclen;
98typedef struct dcload_dirent dcload_dirent_t;
103 unsigned short st_dev;
104 unsigned short st_ino;
106 unsigned short st_nlink;
107 unsigned short st_uid;
108 unsigned short st_gid;
109 unsigned short st_rdev;
122typedef struct dcload_stat dcload_stat_t;
125void dcload_printk(
const char *str);
128size_t dcload_gdbpacket(
const char* in_buf,
size_t in_size,
char* out_buf,
size_t out_size);
131void* dcload_open(
vfs_handler_t * vfs,
const char *fn,
int mode);
132int dcload_close(
void * hnd);
133ssize_t dcload_read(
void * hnd,
void *buf,
size_t cnt);
134off_t dcload_seek(
void * hnd, off_t offset,
int whence);
135off_t dcload_tell(
void * hnd);
136size_t dcload_total(
void * hnd);
137dirent_t* dcload_readdir(
void * hnd);
138int dcload_rename(
vfs_handler_t * vfs,
const char *fn1,
const char *fn2);
142void fs_dcload_init_console(
void);
143void fs_dcload_init(
void);
144void fs_dcload_shutdown(
void);
147int fs_dcload_init_lwip(
void *p);
Virtual filesystem support.
int dcload_type
What type of dcload connection do we have?
Debug I/O Interface.
Definition dbgio.h:39
Directory entry.
Definition fs.h:52
VFS handler interface.
Definition fs.h:105