19 #ifndef __DC_FS_DCLOAD_H
20 #define __DC_FS_DCLOAD_H
24 #include <sys/cdefs.h>
38 #define DCLOADMAGICVALUE 0xdeadbeef
41 #define DCLOADMAGICADDR (unsigned int *)0x8c004004
44 #define DCLOAD_TYPE_NONE -1
45 #define DCLOAD_TYPE_SER 0
46 #define DCLOAD_TYPE_IP 1
55 #define DCLOAD_WRITE 1
57 #define DCLOAD_CLOSE 3
58 #define DCLOAD_CREAT 4
60 #define DCLOAD_UNLINK 6
61 #define DCLOAD_CHDIR 7
62 #define DCLOAD_CHMOD 8
63 #define DCLOAD_LSEEK 9
64 #define DCLOAD_FSTAT 10
65 #define DCLOAD_TIME 11
66 #define DCLOAD_STAT 12
67 #define DCLOAD_UTIME 13
68 #define DCLOAD_ASSIGNWRKMEM 14
69 #define DCLOAD_EXIT 15
70 #define DCLOAD_OPENDIR 16
71 #define DCLOAD_CLOSEDIR 17
72 #define DCLOAD_READDIR 18
73 #define DCLOAD_GETHOSTINFO 19
74 #define DCLOAD_GDBPACKET 20
78 int dcloadsyscall(
unsigned int syscall, ...);
82 struct dcload_dirent {
85 unsigned short d_reclen;
90 typedef struct dcload_dirent dcload_dirent_t;
95 unsigned short st_dev;
96 unsigned short st_ino;
98 unsigned short st_nlink;
99 unsigned short st_uid;
100 unsigned short st_gid;
101 unsigned short st_rdev;
114 typedef struct dcload_stat dcload_stat_t;
117 void dcload_printk(
const char *str);
120 size_t dcload_gdbpacket(
const char* in_buf,
size_t in_size,
char* out_buf,
size_t out_size);
123 void* dcload_open(
vfs_handler_t * vfs,
const char *fn,
int mode);
124 int dcload_close(
void * hnd);
125 ssize_t dcload_read(
void * hnd,
void *buf,
size_t cnt);
126 off_t dcload_seek(
void * hnd, off_t offset,
int whence);
127 off_t dcload_tell(
void * hnd);
128 size_t dcload_total(
void * hnd);
129 dirent_t* dcload_readdir(
void * hnd);
130 int dcload_rename(
vfs_handler_t * vfs,
const char *fn1,
const char *fn2);
134 void fs_dcload_init_console();
135 int fs_dcload_init();
136 int fs_dcload_shutdown();
139 int fs_dcload_init_lwip(
void *p);
Debug I/O Interface.
Definition: dbgio.h:37
Virtual filesystem support.
int dcload_type
What type of dcload connection do we have?
VFS handler interface.
Definition: fs.h:97
Directory entry.
Definition: fs.h:44