Changeset fbbbb8a in mainline
- Timestamp:
- 2009-06-16T19:01:09Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a624cbfd
- Parents:
- e3fa92aa
- Location:
- uspace/srv/bd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
re3fa92aa rfbbbb8a 73 73 static int ata_bd_init(void); 74 74 static void ata_bd_connection(ipc_callid_t iid, ipc_call_t *icall); 75 static int ata_bd_rdwr(int disk_id, ipcarg_t method, off_t offset, off_t size,75 static int ata_bd_rdwr(int disk_id, ipcarg_t method, off_t offset, size_t size, 76 76 void *buf); 77 77 static int ata_bd_read_block(int disk_id, uint64_t blk_idx, size_t blk_cnt, … … 147 147 uint16_t data; 148 148 uint8_t status; 149 int i;149 size_t i; 150 150 151 151 printf("Identify drive %d\n", disk_id); … … 235 235 int retval; 236 236 off_t idx; 237 off_t size;237 size_t size; 238 238 int disk_id, i; 239 239 … … 295 295 } 296 296 297 static int ata_bd_rdwr(int disk_id, ipcarg_t method, off_t blk_idx, off_t size,297 static int ata_bd_rdwr(int disk_id, ipcarg_t method, off_t blk_idx, size_t size, 298 298 void *buf) 299 299 { 300 300 int rc; 301 off_t now;301 size_t now; 302 302 303 303 while (size > 0) { 304 now = size < block_size ? size : (off_t)block_size;304 now = size < block_size ? size : block_size; 305 305 if (now != block_size) 306 306 return EINVAL; -
uspace/srv/bd/file_bd/file_bd.c
re3fa92aa rfbbbb8a 61 61 static int file_bd_init(const char *fname); 62 62 static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall); 63 static int file_bd_read(off_t blk_idx, off_t size, void *buf);64 static int file_bd_write(off_t blk_idx, off_t size, void *buf);63 static int file_bd_read(off_t blk_idx, size_t size, void *buf); 64 static int file_bd_write(off_t blk_idx, size_t size, void *buf); 65 65 66 66 int main(int argc, char **argv) … … 119 119 int retval; 120 120 off_t idx; 121 off_t size;121 size_t size; 122 122 123 123 /* Answer the IPC_M_CONNECT_ME_TO call. */ … … 166 166 } 167 167 168 static int file_bd_read(off_t blk_idx, off_t size, void *buf)168 static int file_bd_read(off_t blk_idx, size_t size, void *buf) 169 169 { 170 170 size_t n_rd; … … 194 194 } 195 195 196 static int file_bd_write(off_t blk_idx, off_t size, void *buf)196 static int file_bd_write(off_t blk_idx, size_t size, void *buf) 197 197 { 198 198 size_t n_wr; -
uspace/srv/bd/gxe_bd/gxe_bd.c
re3fa92aa rfbbbb8a 96 96 static int gxe_bd_init(void); 97 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 99 void *buf); 100 100 static int gxe_bd_read_block(int disk_id, uint64_t offset, size_t size, … … 161 161 int retval; 162 162 off_t idx; 163 off_t size;163 size_t size; 164 164 int disk_id, i; 165 165 … … 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 224 void *buf) 225 225 {
Note:
See TracChangeset
for help on using the changeset viewer.