Subversion Repositories HelenOS

Rev

Rev 4420 | Rev 4537 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4420 Rev 4439
Line 66... Line 66...
66
    link_t free_head;
66
    link_t free_head;
67
} cache_t;
67
} cache_t;
68
 
68
 
69
typedef struct {
69
typedef struct {
70
    link_t link;
70
    link_t link;
71
    int dev_handle;
71
    dev_handle_t dev_handle;
72
    int dev_phone;
72
    int dev_phone;
73
    void *com_area;
73
    void *com_area;
74
    size_t com_size;
74
    size_t com_size;
75
    void *bb_buf;
75
    void *bb_buf;
76
    off_t bb_off;
76
    off_t bb_off;
Line 443... Line 443...
443
 * @param block_size    Block size to be used for the transfer.
443
 * @param block_size    Block size to be used for the transfer.
444
 *
444
 *
445
 * @return      EOK on success or a negative return code on failure.
445
 * @return      EOK on success or a negative return code on failure.
446
 */
446
 */
447
int
447
int
448
block_read(int dev_handle, off_t *bufpos, size_t *buflen, off_t *pos, void *dst,
448
block_read(dev_handle_t dev_handle, off_t *bufpos, size_t *buflen, off_t *pos,
449
    size_t size, size_t block_size)
449
    void *dst, size_t size, size_t block_size)
450
{
450
{
451
    off_t offset = 0;
451
    off_t offset = 0;
452
    size_t left = size;
452
    size_t left = size;
453
    devcon_t *devcon = devcon_search(dev_handle);
453
    devcon_t *devcon = devcon_search(dev_handle);
454
    assert(devcon);
454
    assert(devcon);