13 * Maximum number of open files. This is *currently* constrained by the
14 * fact that PXE needs to be able to fit all its packet buffers into a
15 * 64K segment; this should be fixed by moving the packet buffers to high
18 #define MAX_OPEN_LG2 5
19 #define MAX_OPEN (1 << MAX_OPEN_LG2)
21 #define FILENAME_MAX_LG2 8
22 #define FILENAME_MAX (1 << FILENAME_MAX_LG2)
25 const struct fs_ops *fs_ops;
26 struct device *fs_dev;
29 struct open_file_t; /* Filesystem private structure */
32 struct open_file_t *open_file; /* Filesystem private data */
42 /* in fact, we use fs_ops structure to find the right fs */
44 enum fs_flags fs_flags;
46 int (*fs_init)(struct fs_info *);
47 void (*searchdir)(char *, struct file *);
48 uint32_t (*getfssec)(struct file *, char *, int, bool *);
49 void (*close_file)(struct file *);
50 void (*mangle_name)(char *, const char *);
51 char * (*unmangle_name)(char *, const char *);
52 void (*load_config)(com32sys_t *);
55 void (*readdir)(struct fs_info *, DIR *);
58 enum dev_type {CHS, EDD};
61 * Generic functions that filesystem drivers may choose to use
63 void generic_mangle_name(char *, const char *);
64 #define generic_unmangle_name stpcpy
67 * Struct device contains:
68 * the pointer points to the disk structure,
77 uint16_t cache_block_size;
78 uint16_t cache_entries;
83 * Our definition of "not whitespace"
85 static inline bool not_whitespace(char c)
87 return (unsigned char)c > ' ';
93 void mangle_name(com32sys_t *);
94 void searchdir(com32sys_t *);