3 * Stäubli Faverges - <www.staubli.com>
4 * Pierre AUBERT p.aubert@staubli.com
6 * SPDX-License-Identifier: GPL-2.0+
16 #define PRINTF(fmt,args...) printf (fmt ,##args)
18 #define PRINTF(fmt,args...)
21 /* Data structure describing media */
24 unsigned long tot_sectors;
37 unsigned char *fat_buf;
41 /* Data structure describing one file system slot */
43 int (*map) (struct fs *fs,
47 unsigned long FileSize;
49 unsigned short int FirstAbsCluNr;
50 unsigned short int PreviousAbsCluNr;
51 unsigned short int PreviousRelCluNr;
66 int dev_read (void *buffer, int where, int len);
68 int check_dev (BootSector_t *boot, Fs_t *fs);
71 unsigned int fat_decode (Fs_t *fs, unsigned int num);
72 int read_fat (BootSector_t *boot, Fs_t *fs);
75 int vfat_lookup (Slot_t *dir,
86 char *basename (char *name);
87 int open_subdir (File_t *desc);
88 int open_file (Slot_t *file, Directory_t *dir);
89 int read_file (Fs_t *fs,
94 void init_subdir (void);
97 int fs_init (Fs_t *fs);