Changes in uspace/drv/nic/ne2k/ne2k.c [d51838f:8820544] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ne2k/ne2k.c
rd51838f r8820544 40 40 #include <stdio.h> 41 41 #include <errno.h> 42 #include < device/hw_res.h>42 #include <irc.h> 43 43 #include <stdlib.h> 44 44 #include <str_error.h> … … 160 160 } 161 161 162 int irq_cap= register_interrupt_handler(nic_get_ddf_dev(nic_data),162 int rc = register_interrupt_handler(nic_get_ddf_dev(nic_data), 163 163 ne2k->irq, ne2k_interrupt_handler, &ne2k->code); 164 return irq_cap;164 return rc; 165 165 } 166 166 … … 228 228 ne2k->probed = true; 229 229 230 int irq_cap= ne2k_register_interrupt(nic_data);231 if ( irq_cap < 0)230 rc = ne2k_register_interrupt(nic_data); 231 if (rc != EOK) 232 232 return EINVAL; 233 233 … … 256 256 return rc; 257 257 258 rc = hw_res_enable_interrupt(ne2k->parent_sess,ne2k->irq);258 rc = irc_enable_interrupt(ne2k->irq); 259 259 if (rc != EOK) { 260 260 ne2k_down(ne2k); … … 269 269 ne2k_t *ne2k = (ne2k_t *) nic_get_specific(nic_data); 270 270 271 (void) hw_res_disable_interrupt(ne2k->parent_sess,ne2k->irq);271 (void) irc_disable_interrupt(ne2k->irq); 272 272 ne2k->receive_configuration = RCR_AB | RCR_AM; 273 273 ne2k_down(ne2k); … … 384 384 } 385 385 386 ne2k->dev = dev;387 ne2k->parent_sess = ddf_dev_parent_sess_get(dev);388 if (ne2k->parent_sess == NULL) {389 ne2k_dev_cleanup(dev);390 return ENOMEM;391 }392 393 386 int rc = ne2k_dev_init(nic_data); 394 387 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.