11 * Maximum number of open files. This is *currently* constrained by the
12 * fact that PXE needs to be able to fit all its packet buffers into a
13 * 64K segment; this should be fixed by moving the packet buffers to high
16 #define MAX_OPEN_LG2 5
17 #define MAX_OPEN (1 << MAX_OPEN_LG2)
20 const struct fs_ops *fs_ops;
21 struct device *fs_dev;
24 struct open_file_t; /* Filesystem private structure */
27 struct open_file_t *open_file; /* Filesystem private data */
37 /* in fact, we use fs_ops structure to find the right fs */
39 enum fs_flags fs_flags;
41 int (*fs_init)(struct fs_info *);
42 void (*searchdir)(char *, struct file *);
43 uint32_t (*getfssec)(struct file *, char *, int, bool *);
44 void (*close_file)(struct file *);
45 void (*mangle_name)(char *, char *);
46 int (*unmangle_name)(char *, char *);
47 void (*load_config)(com32sys_t *);
50 enum dev_type {CHS, EDD};
53 * Struct device contains:
54 * the pointer points to the disk structure,
63 uint16_t cache_block_size;
64 uint16_t cache_entries;