Changeset 925a21e in mainline for uspace/srv/fs/exfat/exfat_bitmap.h
- Timestamp:
- 2011-09-24T14:20:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bf76c1
- Parents:
- 867e2555 (diff), 1ab4aca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_bitmap.h
r867e2555 r925a21e 1 1 /* 2 * Copyright (c) 2011 Jan Vesely2 * Copyright (c) 2011 Oleg Romanenko 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusbuhcihc 28 29 /** @addtogroup fs 29 30 * @{ 30 31 */ 31 /** @file32 * @brief UHCI driver USB tranfer helper functions33 */34 #ifndef DRV_UHCI_BATCH_H35 #define DRV_UHCI_BATCH_H36 32 37 #include <usb/host/batch.h> 33 #ifndef EXFAT_EXFAT_BITMAP_H_ 34 #define EXFAT_EXFAT_BITMAP_H_ 38 35 39 #include "hw_struct/queue_head.h" 36 #include <stdint.h> 37 #include "exfat.h" 38 #include "exfat_fat.h" 40 39 41 usb_transfer_batch_t * batch_get( 42 ddf_fun_t *fun, endpoint_t *ep, char *buffer, size_t size, 43 const char *setup_buffer, size_t setup_size, 44 usbhc_iface_transfer_in_callback_t func_in, 45 usbhc_iface_transfer_out_callback_t func_out, 46 void *arg); 40 /* forward declarations */ 41 struct exfat_node; 42 struct exfat_bs; 47 43 48 void batch_dispose(usb_transfer_batch_t *instance); 44 extern int bitmap_alloc_clusters(struct exfat_bs *, service_id_t, 45 exfat_cluster_t *, exfat_cluster_t); 46 extern int bitmap_append_clusters(struct exfat_bs *, struct exfat_node *, 47 exfat_cluster_t); 48 extern int bitmap_free_clusters(struct exfat_bs *, struct exfat_node *, 49 exfat_cluster_t); 50 extern int bitmap_replicate_clusters(struct exfat_bs *, struct exfat_node *); 49 51 50 bool batch_is_complete(usb_transfer_batch_t *instance); 52 extern int bitmap_is_free(struct exfat_bs *, service_id_t, exfat_cluster_t); 53 extern int bitmap_set_cluster(struct exfat_bs *, service_id_t, exfat_cluster_t); 54 extern int bitmap_clear_cluster(struct exfat_bs *, service_id_t, 55 exfat_cluster_t); 51 56 52 void batch_control_write(usb_transfer_batch_t *instance); 53 void batch_control_read(usb_transfer_batch_t *instance); 57 extern int bitmap_set_clusters(struct exfat_bs *, service_id_t, 58 exfat_cluster_t, exfat_cluster_t); 59 extern int bitmap_clear_clusters(struct exfat_bs *, service_id_t, 60 exfat_cluster_t, exfat_cluster_t); 54 61 55 void batch_interrupt_in(usb_transfer_batch_t *instance);56 void batch_interrupt_out(usb_transfer_batch_t *instance);57 62 58 void batch_bulk_in(usb_transfer_batch_t *instance); 59 void batch_bulk_out(usb_transfer_batch_t *instance); 63 #endif 60 64 61 qh_t * batch_qh(usb_transfer_batch_t *instance);62 #endif63 65 /** 64 66 * @}
Note:
See TracChangeset
for help on using the changeset viewer.