Changes in uspace/drv/nic/ne2k/ne2k.c [071a1ddb:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ne2k/ne2k.c
r071a1ddb rb7fd2a0 124 124 static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t *); 125 125 126 static int ne2k_register_interrupt(nic_t *nic_data, cap_handle_t *handle)126 static errno_t ne2k_register_interrupt(nic_t *nic_data, cap_handle_t *handle) 127 127 { 128 128 ne2k_t *ne2k = (ne2k_t *) nic_get_specific(nic_data); … … 178 178 } 179 179 180 static int ne2k_dev_init(nic_t *nic_data)180 static errno_t ne2k_dev_init(nic_t *nic_data) 181 181 { 182 182 /* Get HW resources */ … … 184 184 hw_res_list_parsed_init(&hw_res_parsed); 185 185 186 int rc = nic_get_resources(nic_data, &hw_res_parsed);186 errno_t rc = nic_get_resources(nic_data, &hw_res_parsed); 187 187 188 188 if (rc != EOK) … … 243 243 } 244 244 245 static int ne2k_on_activating(nic_t *nic_data)245 static errno_t ne2k_on_activating(nic_t *nic_data) 246 246 { 247 247 ne2k_t *ne2k = (ne2k_t *) nic_get_specific(nic_data); 248 248 249 249 if (!ne2k->up) { 250 int rc = ne2k_up(ne2k);250 errno_t rc = ne2k_up(ne2k); 251 251 if (rc != EOK) 252 252 return rc; … … 261 261 } 262 262 263 static int ne2k_on_stopping(nic_t *nic_data)263 static errno_t ne2k_on_stopping(nic_t *nic_data) 264 264 { 265 265 ne2k_t *ne2k = (ne2k_t *) nic_get_specific(nic_data); … … 271 271 } 272 272 273 static int ne2k_set_address(ddf_fun_t *fun, const nic_address_t *address)273 static errno_t ne2k_set_address(ddf_fun_t *fun, const nic_address_t *address) 274 274 { 275 275 nic_t *nic_data = DRIVER_DATA(ddf_fun_get_dev(fun)); 276 int rc = nic_report_address(nic_data, address);276 errno_t rc = nic_report_address(nic_data, address); 277 277 if (rc != EOK) { 278 278 return EINVAL; … … 286 286 } 287 287 288 static int ne2k_on_unicast_mode_change(nic_t *nic_data,288 static errno_t ne2k_on_unicast_mode_change(nic_t *nic_data, 289 289 nic_unicast_mode_t new_mode, 290 290 const nic_address_t *address_list, size_t address_count) … … 313 313 } 314 314 315 static int ne2k_on_multicast_mode_change(nic_t *nic_data,315 static errno_t ne2k_on_multicast_mode_change(nic_t *nic_data, 316 316 nic_multicast_mode_t new_mode, 317 317 const nic_address_t *address_list, size_t address_count) … … 339 339 } 340 340 341 static int ne2k_on_broadcast_mode_change(nic_t *nic_data,341 static errno_t ne2k_on_broadcast_mode_change(nic_t *nic_data, 342 342 nic_broadcast_mode_t new_mode) 343 343 { … … 355 355 } 356 356 357 static int ne2k_dev_add(ddf_dev_t *dev)357 static errno_t ne2k_dev_add(ddf_dev_t *dev) 358 358 { 359 359 ddf_fun_t *fun; … … 387 387 } 388 388 389 int rc = ne2k_dev_init(nic_data);389 errno_t rc = ne2k_dev_init(nic_data); 390 390 if (rc != EOK) { 391 391 ne2k_dev_cleanup(dev);
Note:
See TracChangeset
for help on using the changeset viewer.