Changes in uspace/srv/fs/fat/fat.h [ffa2c8ef:5d95f02] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat.h
rffa2c8ef r5d95f02 1 1 /* 2 2 * Copyright (c) 2008 Jakub Jermar 3 * Copyright (c) 2011 Oleg Romanenko 3 4 * All rights reserved. 4 5 * … … 46 47 #endif 47 48 48 #define min(a, b) 49 #define min(a, b) ((a) < (b) ? (a) : (b)) 49 50 50 51 /* … … 55 56 #define RSCNT(bs) uint16_t_le2host((bs)->rscnt) 56 57 #define FATCNT(bs) (bs)->fatcnt 57 #define SF(bs) uint16_t_le2host((bs)->sec_per_fat) 58 59 #define SF(bs) (uint16_t_le2host((bs)->sec_per_fat) ? \ 60 uint16_t_le2host((bs)->sec_per_fat) : \ 61 uint32_t_le2host(bs->fat32.sectors_per_fat)) 62 58 63 #define RDE(bs) uint16_t_le2host((bs)->root_ent_max) 59 #define TS(bs) (uint16_t_le2host((bs)->totsec16) != 0 ? \ 60 uint16_t_le2host((bs)->totsec16) : \ 61 uint32_t_le2host(bs->totsec32)) 62 63 #define BS_BLOCK 0 64 #define BS_SIZE 512 64 65 #define TS(bs) (uint16_t_le2host((bs)->totsec16) ? \ 66 uint16_t_le2host((bs)->totsec16) : \ 67 uint32_t_le2host(bs->totsec32)) 68 69 #define BS_BLOCK 0 70 #define BS_SIZE 512 65 71 66 72 typedef struct fat_bs { … … 175 181 176 182 fibril_mutex_t lock; 177 devmap_handle_t devmap_handle;183 service_id_t service_id; 178 184 fs_index_t index; 179 185 /** … … 224 230 } fat_node_t; 225 231 226 extern fs_reg_t fat_reg; 227 228 extern void fat_mounted(ipc_callid_t, ipc_call_t *); 229 extern void fat_mount(ipc_callid_t, ipc_call_t *); 230 extern void fat_unmounted(ipc_callid_t, ipc_call_t *); 231 extern void fat_unmount(ipc_callid_t, ipc_call_t *); 232 extern void fat_lookup(ipc_callid_t, ipc_call_t *); 233 extern void fat_read(ipc_callid_t, ipc_call_t *); 234 extern void fat_write(ipc_callid_t, ipc_call_t *); 235 extern void fat_truncate(ipc_callid_t, ipc_call_t *); 236 extern void fat_stat(ipc_callid_t, ipc_call_t *); 237 extern void fat_close(ipc_callid_t, ipc_call_t *); 238 extern void fat_destroy(ipc_callid_t, ipc_call_t *); 239 extern void fat_open_node(ipc_callid_t, ipc_call_t *); 240 extern void fat_stat(ipc_callid_t, ipc_call_t *); 241 extern void fat_sync(ipc_callid_t, ipc_call_t *); 242 243 extern int fat_idx_get_new(fat_idx_t **, devmap_handle_t); 244 extern fat_idx_t *fat_idx_get_by_pos(devmap_handle_t, fat_cluster_t, unsigned); 245 extern fat_idx_t *fat_idx_get_by_index(devmap_handle_t, fs_index_t); 232 extern vfs_out_ops_t fat_ops; 233 extern libfs_ops_t fat_libfs_ops; 234 235 extern int fat_idx_get_new(fat_idx_t **, service_id_t); 236 extern fat_idx_t *fat_idx_get_by_pos(service_id_t, fat_cluster_t, unsigned); 237 extern fat_idx_t *fat_idx_get_by_index(service_id_t, fs_index_t); 246 238 extern void fat_idx_destroy(fat_idx_t *); 247 239 extern void fat_idx_hashin(fat_idx_t *); … … 250 242 extern int fat_idx_init(void); 251 243 extern void fat_idx_fini(void); 252 extern int fat_idx_init_by_ devmap_handle(devmap_handle_t);253 extern void fat_idx_fini_by_ devmap_handle(devmap_handle_t);244 extern int fat_idx_init_by_service_id(service_id_t); 245 extern void fat_idx_fini_by_service_id(service_id_t); 254 246 255 247 #endif
Note:
See TracChangeset
for help on using the changeset viewer.