Changes in uspace/drv/block/ata_bd/main.c [b7fd2a0:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/drv/block/ata_bd/main.c ¶
rb7fd2a0 rcde999a 41 41 #include "main.h" 42 42 43 static errno_t ata_dev_add(ddf_dev_t *dev);44 static errno_t ata_dev_remove(ddf_dev_t *dev);45 static errno_t ata_dev_gone(ddf_dev_t *dev);46 static errno_t ata_fun_online(ddf_fun_t *fun);47 static errno_t ata_fun_offline(ddf_fun_t *fun);43 static int ata_dev_add(ddf_dev_t *dev); 44 static int ata_dev_remove(ddf_dev_t *dev); 45 static int ata_dev_gone(ddf_dev_t *dev); 46 static int ata_fun_online(ddf_fun_t *fun); 47 static int ata_fun_offline(ddf_fun_t *fun); 48 48 49 49 static void ata_bd_connection(ipc_callid_t, ipc_call_t *, void *); … … 62 62 }; 63 63 64 static errno_t ata_get_res(ddf_dev_t *dev, ata_base_t *ata_res)64 static int ata_get_res(ddf_dev_t *dev, ata_base_t *ata_res) 65 65 { 66 66 async_sess_t *parent_sess; 67 67 hw_res_list_parsed_t hw_res; 68 errno_t rc;68 int rc; 69 69 70 70 parent_sess = ddf_dev_parent_sess_get(dev); … … 108 108 * @return EOK on success or an error code. 109 109 */ 110 static errno_t ata_dev_add(ddf_dev_t *dev)110 static int ata_dev_add(ddf_dev_t *dev) 111 111 { 112 112 ata_ctrl_t *ctrl; 113 113 ata_base_t res; 114 errno_t rc;114 int rc; 115 115 116 116 rc = ata_get_res(dev, &res); … … 151 151 } 152 152 153 errno_t ata_fun_create(disk_t *disk)153 int ata_fun_create(disk_t *disk) 154 154 { 155 155 ata_ctrl_t *ctrl = disk->ctrl; 156 errno_t rc;156 int rc; 157 157 char *fun_name = NULL; 158 158 ddf_fun_t *fun = NULL; … … 212 212 } 213 213 214 errno_t ata_fun_remove(disk_t *disk)215 { 216 errno_t rc;214 int ata_fun_remove(disk_t *disk) 215 { 216 int rc; 217 217 char *fun_name; 218 218 … … 250 250 } 251 251 252 errno_t ata_fun_unbind(disk_t *disk)253 { 254 errno_t rc;252 int ata_fun_unbind(disk_t *disk) 253 { 254 int rc; 255 255 char *fun_name; 256 256 … … 282 282 } 283 283 284 static errno_t ata_dev_remove(ddf_dev_t *dev)284 static int ata_dev_remove(ddf_dev_t *dev) 285 285 { 286 286 ata_ctrl_t *ctrl = (ata_ctrl_t *)ddf_dev_data_get(dev); … … 291 291 } 292 292 293 static errno_t ata_dev_gone(ddf_dev_t *dev)293 static int ata_dev_gone(ddf_dev_t *dev) 294 294 { 295 295 ata_ctrl_t *ctrl = (ata_ctrl_t *)ddf_dev_data_get(dev); … … 300 300 } 301 301 302 static errno_t ata_fun_online(ddf_fun_t *fun)302 static int ata_fun_online(ddf_fun_t *fun) 303 303 { 304 304 ddf_msg(LVL_DEBUG, "ata_fun_online()"); … … 306 306 } 307 307 308 static errno_t ata_fun_offline(ddf_fun_t *fun)308 static int ata_fun_offline(ddf_fun_t *fun) 309 309 { 310 310 ddf_msg(LVL_DEBUG, "ata_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.