22 static int imgdrv_read(iop_file_t *f,
void *buf,
int size);
23 static int imgdrv_lseek(iop_file_t *f,
int offset,
int whence);
27 typedef struct _iop_device_ops_short {
28 int (*init)(iop_device_t *);
29 int (*deinit)(iop_device_t *);
30 int (*format)(iop_file_t *);
31 int (*open)(iop_file_t *,
const char *, int);
32 int (*close)(iop_file_t *);
33 int (*read)(iop_file_t *,
void *, int);
34 int (*write)(iop_file_t *,
void *, int);
35 int (*lseek)(iop_file_t *, int, int);
79 img_ptr = (
const u32*)
img[f->unit];
80 for(i = size; i > 0; i-=4,img_ptr++,img_out++)
88 return(whence == SEEK_SET ? 0 :
img_size[f->unit]);
const void * img[MAX_IMAGES]
static int imgdrv_read(iop_file_t *f, void *buf, int size)
static iop_device_ops_short_t imgdrv_ops
int _start(int argc, char *argv[])
static int imgdrv_lseek(iop_file_t *f, int offset, int whence)
static iop_device_t img_device
static int imgdrv_dummy(void)