Changeset 15d0046 in mainline for uspace/lib/block/block.h


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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/block.h

    r8db09e4 r15d0046  
    8181        /** Size of the block. */
    8282        size_t size;
     83        /** Number of write failures. */
     84        int write_failures;
    8385        /** Link for placing the block into the free block list. */
    8486        link_t free_link;
     
    9698        CACHE_MODE_WB
    9799};
    98 
    99 typedef struct {
    100         uint16_t size;
    101         uint8_t first_session;
    102         uint8_t last_session;
    103        
    104         uint8_t res0;
    105         uint8_t adr_ctrl;
    106         uint8_t first_track;
    107         uint8_t res1;
    108        
    109         uint32_t first_lba;
    110 } __attribute__((packed)) toc_block_t;
    111100
    112101extern int block_init(exch_mgmt_t, service_id_t, size_t);
     
    127116extern int block_get_bsize(service_id_t, size_t *);
    128117extern int block_get_nblocks(service_id_t, aoff64_t *);
    129 extern toc_block_t *block_get_toc(service_id_t, uint8_t);
     118extern int block_read_toc(service_id_t, uint8_t, void *, size_t);
    130119extern int block_read_direct(service_id_t, aoff64_t, size_t, void *);
    131120extern int block_read_bytes_direct(service_id_t, aoff64_t, size_t, void *);
Note: See TracChangeset for help on using the changeset viewer.