Subversion Repositories HelenOS

Rev

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

Rev 4442 Rev 4545
Line 93... Line 93...
93
 
93
 
94
static atomic_t dev_futex = FUTEX_INITIALIZER;
94
static atomic_t dev_futex = FUTEX_INITIALIZER;
95
 
95
 
96
static int gxe_bd_init(void);
96
static int gxe_bd_init(void);
97
static void gxe_bd_connection(ipc_callid_t iid, ipc_call_t *icall);
97
static void gxe_bd_connection(ipc_callid_t iid, ipc_call_t *icall);
98
static int gx_bd_rdwr(int disk_id, ipcarg_t method, off_t offset, off_t size,
98
static int gx_bd_rdwr(int disk_id, ipcarg_t method, off_t offset, size_t size,
99
    void *buf);
99
    void *buf);
100
static int gxe_bd_read_block(int disk_id, uint64_t offset, size_t size,
100
static int gxe_bd_read_block(int disk_id, uint64_t offset, size_t size,
101
    void *buf);
101
    void *buf);
102
static int gxe_bd_write_block(int disk_id, uint64_t offset, size_t size,
102
static int gxe_bd_write_block(int disk_id, uint64_t offset, size_t size,
103
    const void *buf);
103
    const void *buf);
Line 158... Line 158...
158
    ipcarg_t method;
158
    ipcarg_t method;
159
    dev_handle_t dh;
159
    dev_handle_t dh;
160
    int flags;
160
    int flags;
161
    int retval;
161
    int retval;
162
    off_t idx;
162
    off_t idx;
163
    off_t size;
163
    size_t size;
164
    int disk_id, i;
164
    int disk_id, i;
165
 
165
 
166
    /* Get the device handle. */
166
    /* Get the device handle. */
167
    dh = IPC_GET_ARG1(*icall);
167
    dh = IPC_GET_ARG1(*icall);
168
 
168
 
Line 218... Line 218...
218
        }
218
        }
219
        ipc_answer_0(callid, retval);
219
        ipc_answer_0(callid, retval);
220
    }
220
    }
221
}
221
}
222
 
222
 
223
static int gx_bd_rdwr(int disk_id, ipcarg_t method, off_t offset, off_t size,
223
static int gx_bd_rdwr(int disk_id, ipcarg_t method, off_t offset, size_t size,
224
    void *buf)
224
    void *buf)
225
{
225
{
226
    int rc;
226
    int rc;
227
    size_t now;
227
    size_t now;
228
 
228