4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * fat_fat_operations.h |
---|
3 | * |
---|
4 | * Constants/data structures/prototypes for operations on Files Allocation |
---|
5 | * Table |
---|
6 | * |
---|
7 | * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia |
---|
8 | * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | * |
---|
14 | * @(#) $Id$ |
---|
15 | */ |
---|
16 | #ifndef __DOSFS_FAT_FAT_OPERATIONS_H__ |
---|
17 | #define __DOSFS_FAT_FAT_OPERATIONS_H__ |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <rtems.h> |
---|
24 | #include <rtems/libio_.h> |
---|
25 | |
---|
26 | #include <rtems/bdbuf.h> |
---|
27 | #include "fat.h" |
---|
28 | |
---|
29 | int |
---|
30 | fat_get_fat_cluster(rtems_filesystem_mount_table_entry_t *mt_entry, |
---|
31 | uint32_t cln, |
---|
32 | uint32_t *ret_val); |
---|
33 | |
---|
34 | int |
---|
35 | fat_set_fat_cluster(rtems_filesystem_mount_table_entry_t *mt_entry, |
---|
36 | uint32_t cln, |
---|
37 | uint32_t in_val); |
---|
38 | |
---|
39 | int |
---|
40 | fat_scan_fat_for_free_clusters( |
---|
41 | rtems_filesystem_mount_table_entry_t *mt_entry, |
---|
42 | uint32_t *chain, |
---|
43 | uint32_t count, |
---|
44 | uint32_t *cls_added, |
---|
45 | uint32_t *last_cl |
---|
46 | ); |
---|
47 | |
---|
48 | int |
---|
49 | fat_free_fat_clusters_chain( |
---|
50 | rtems_filesystem_mount_table_entry_t *mt_entry, |
---|
51 | uint32_t chain |
---|
52 | ); |
---|
53 | |
---|
54 | #ifdef __cplusplus |
---|
55 | } |
---|
56 | #endif |
---|
57 | |
---|
58 | #endif /* __DOSFS_FAT_FAT_OPERATIONS_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.