Changeset b5e68c8 in mainline for uspace/lib/block/libblock.h


Ignore:
Timestamp:
2011-05-12T16:49:44Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f36787d7
Parents:
e80329d6 (diff), 750636a (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 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/libblock.h

    re80329d6 rb5e68c8  
    7272        fibril_rwlock_t contents_lock;
    7373        /** Handle of the device where the block resides. */
    74         dev_handle_t dev_handle;
    75         /** Block offset on the block device. Counted in 'size'-byte blocks. */
    76         aoff64_t boff;
     74        devmap_handle_t devmap_handle;
     75        /** Logical block address */
     76        aoff64_t lba;
     77        /** Physical block address */
     78        aoff64_t pba;
    7779        /** Size of the block. */
    7880        size_t size;
     
    9395};
    9496
    95 extern int block_init(dev_handle_t, size_t);
    96 extern void block_fini(dev_handle_t);
     97extern int block_init(devmap_handle_t, size_t);
     98extern void block_fini(devmap_handle_t);
    9799
    98 extern int block_bb_read(dev_handle_t, aoff64_t);
    99 extern void *block_bb_get(dev_handle_t);
     100extern int block_bb_read(devmap_handle_t, aoff64_t);
     101extern void *block_bb_get(devmap_handle_t);
    100102
    101 extern int block_cache_init(dev_handle_t, size_t, unsigned, enum cache_mode);
    102 extern int block_cache_fini(dev_handle_t);
     103extern int block_cache_init(devmap_handle_t, size_t, unsigned, enum cache_mode);
     104extern int block_cache_fini(devmap_handle_t);
    103105
    104 extern int block_get(block_t **, dev_handle_t, aoff64_t, int);
     106extern int block_get(block_t **, devmap_handle_t, aoff64_t, int);
    105107extern int block_put(block_t *);
    106108
    107 extern int block_seqread(dev_handle_t, size_t *, size_t *, aoff64_t *, void *,
     109extern int block_seqread(devmap_handle_t, size_t *, size_t *, aoff64_t *, void *,
    108110    size_t);
    109111
    110 extern int block_get_bsize(dev_handle_t, size_t *);
    111 extern int block_get_nblocks(dev_handle_t, aoff64_t *);
    112 extern int block_read_direct(dev_handle_t, aoff64_t, size_t, void *);
    113 extern int block_write_direct(dev_handle_t, aoff64_t, size_t, const void *);
     112extern int block_get_bsize(devmap_handle_t, size_t *);
     113extern int block_get_nblocks(devmap_handle_t, aoff64_t *);
     114extern int block_read_direct(devmap_handle_t, aoff64_t, size_t, void *);
     115extern int block_write_direct(devmap_handle_t, aoff64_t, size_t, const void *);
    114116
    115117#endif
Note: See TracChangeset for help on using the changeset viewer.