Changeset 7f620e8 in mainline for uspace/drv/block/ahci/ahci.c
- Timestamp:
- 2013-12-31T19:33:59Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26c03dbd
- Parents:
- 99e8fb7b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
r99e8fb7b r7f620e8 111 111 } 112 112 113 static int ahci_get_sata_device_name(ddf_fun_t *, size_t, char *);114 static int ahci_get_num_blocks(ddf_fun_t *, uint64_t *);115 static int ahci_get_block_size(ddf_fun_t *, size_t *);116 static int ahci_read_blocks(ddf_fun_t *, uint64_t, size_t, void *);117 static int ahci_write_blocks(ddf_fun_t *, uint64_t, size_t, void *);113 static int get_sata_device_name(ddf_fun_t *, size_t, char *); 114 static int get_num_blocks(ddf_fun_t *, uint64_t *); 115 static int get_block_size(ddf_fun_t *, size_t *); 116 static int read_blocks(ddf_fun_t *, uint64_t, size_t, void *); 117 static int write_blocks(ddf_fun_t *, uint64_t, size_t, void *); 118 118 119 119 static int ahci_identify_device(sata_dev_t *); … … 139 139 140 140 static ahci_iface_t ahci_interface = { 141 .get_sata_device_name = & ahci_get_sata_device_name,142 .get_num_blocks = & ahci_get_num_blocks,143 .get_block_size = & ahci_get_block_size,144 .read_blocks = & ahci_read_blocks,145 .write_blocks = & ahci_write_blocks141 .get_sata_device_name = &get_sata_device_name, 142 .get_num_blocks = &get_num_blocks, 143 .get_block_size = &get_block_size, 144 .read_blocks = &read_blocks, 145 .write_blocks = &write_blocks 146 146 }; 147 147 … … 180 180 * 181 181 */ 182 static int ahci_get_sata_device_name(ddf_fun_t *fun,182 static int get_sata_device_name(ddf_fun_t *fun, 183 183 size_t sata_dev_name_length, char *sata_dev_name) 184 184 { … … 196 196 * 197 197 */ 198 static int ahci_get_num_blocks(ddf_fun_t *fun, uint64_t *num_blocks)198 static int get_num_blocks(ddf_fun_t *fun, uint64_t *num_blocks) 199 199 { 200 200 sata_dev_t *sata = fun_sata_dev(fun); … … 211 211 * 212 212 */ 213 static int ahci_get_block_size(ddf_fun_t *fun, size_t *block_size)213 static int get_block_size(ddf_fun_t *fun, size_t *block_size) 214 214 { 215 215 sata_dev_t *sata = fun_sata_dev(fun); … … 228 228 * 229 229 */ 230 static int ahci_read_blocks(ddf_fun_t *fun, uint64_t blocknum,230 static int read_blocks(ddf_fun_t *fun, uint64_t blocknum, 231 231 size_t count, void *buf) 232 232 { … … 271 271 * 272 272 */ 273 static int ahci_write_blocks(ddf_fun_t *fun, uint64_t blocknum,273 static int write_blocks(ddf_fun_t *fun, uint64_t blocknum, 274 274 size_t count, void *buf) 275 275 {
Note:
See TracChangeset
for help on using the changeset viewer.