Changeset 8ff0bd2 in mainline for uspace/srv/fs/exfat/exfat_bitmap.h


Ignore:
Timestamp:
2011-09-04T11:30:58Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
03bc76a
Parents:
d2c67e7 (diff), deac215e (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.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_bitmap.h

    rd2c67e7 r8ff0bd2  
    11/*
    2  * Copyright (c) 2009 Martin Decky
     2 * Copyright (c) 2011 Oleg Romanenko
    33 * All rights reserved.
    44 *
     
    3131 */
    3232
    33 #ifndef DEVFS_DEVFS_OPS_H_
    34 #define DEVFS_DEVFS_OPS_H_
     33#ifndef EXFAT_EXFAT_BITMAP_H_
     34#define EXFAT_EXFAT_BITMAP_H_
    3535
    36 #include <ipc/common.h>
    37 #include <bool.h>
     36#include <stdint.h>
     37#include "exfat.h"
     38#include "exfat_fat.h"
    3839
    39 extern bool devfs_init(void);
     40/* forward declarations */
     41struct exfat_node;
     42struct exfat_bs;
    4043
    41 extern void devfs_mounted(ipc_callid_t, ipc_call_t *);
    42 extern void devfs_mount(ipc_callid_t, ipc_call_t *);
    43 extern void devfs_unmounted(ipc_callid_t, ipc_call_t *);
    44 extern void devfs_unmount(ipc_callid_t, ipc_call_t *);
    45 extern void devfs_lookup(ipc_callid_t, ipc_call_t *);
    46 extern void devfs_open_node(ipc_callid_t, ipc_call_t *);
    47 extern void devfs_stat(ipc_callid_t, ipc_call_t *);
    48 extern void devfs_sync(ipc_callid_t, ipc_call_t *);
    49 extern void devfs_read(ipc_callid_t, ipc_call_t *);
    50 extern void devfs_write(ipc_callid_t, ipc_call_t *);
    51 extern void devfs_truncate(ipc_callid_t, ipc_call_t *);
    52 extern void devfs_close(ipc_callid_t, ipc_call_t *);
    53 extern void devfs_destroy(ipc_callid_t, ipc_call_t *);
     44extern int bitmap_alloc_clusters(struct exfat_bs *, service_id_t,
     45    exfat_cluster_t *, exfat_cluster_t);
     46extern int bitmap_append_clusters(struct exfat_bs *, struct exfat_node *,
     47    exfat_cluster_t);
     48extern int bitmap_free_clusters(struct exfat_bs *, struct exfat_node *,
     49    exfat_cluster_t);
     50extern int bitmap_replicate_clusters(struct exfat_bs *, struct exfat_node *);
     51
     52extern int bitmap_is_free(struct exfat_bs *, service_id_t, exfat_cluster_t);
     53extern int bitmap_set_cluster(struct exfat_bs *, service_id_t, exfat_cluster_t);
     54extern int bitmap_clear_cluster(struct exfat_bs *, service_id_t,
     55    exfat_cluster_t);
     56
     57extern int bitmap_set_clusters(struct exfat_bs *, service_id_t,
     58    exfat_cluster_t, exfat_cluster_t);
     59extern int bitmap_clear_clusters(struct exfat_bs *, service_id_t,
     60    exfat_cluster_t, exfat_cluster_t);
     61
    5462
    5563#endif
Note: See TracChangeset for help on using the changeset viewer.