aboutsummaryrefslogtreecommitdiff
path: root/sdram-fs.h
blob: 6bab0bbe1ca20afa70c11553e187e49d9d0faeb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdint.h>
#include <stddef.h>

/* alignment for file allocations */
#define SDFS_ALIGN 16

/* maximum length of file name */
#define SDFS_NAMELEN 32

typedef struct {
  char name[SDFS_NAMELEN];
  uint8_t *loc;
  size_t len;
} filetab_t;

extern int sdfs_init(void);
extern int sdfs_count(void);
extern filetab_t *sdfs_first(void);
extern filetab_t *sdfs_next(void);
extern int sdfs_open(unsigned char *name);
extern int sdfs_write(unsigned char *buf, int len);
extern int sdfs_close(void);
extern int sdfs_cancel(void);