Changeset eadaeae8 in mainline for uspace/drv/nic
- Timestamp:
- 2018-03-21T20:58:49Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3be9d10
- Parents:
- 874381a
- Location:
- uspace/drv/nic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
r874381a readaeae8 1264 1264 * 1265 1265 */ 1266 inline static errno_t e1000_register_int_handler(nic_t *nic, cap_handle_t *handle) 1266 inline static errno_t e1000_register_int_handler(nic_t *nic, 1267 cap_irq_handle_t *handle) 1267 1268 { 1268 1269 e1000_t *e1000 = DRIVER_DATA_NIC(nic); … … 2165 2166 ddf_fun_set_ops(fun, &e1000_dev_ops); 2166 2167 2167 int irq_cap;2168 rc = e1000_register_int_handler(nic, &irq_ cap);2168 cap_irq_handle_t irq_handle; 2169 rc = e1000_register_int_handler(nic, &irq_handle); 2169 2170 if (rc != EOK) { 2170 2171 goto err_fun_create; … … 2204 2205 e1000_uninitialize_rx_structure(nic); 2205 2206 err_irq: 2206 unregister_interrupt_handler(dev, irq_ cap);2207 unregister_interrupt_handler(dev, irq_handle); 2207 2208 err_fun_create: 2208 2209 ddf_fun_destroy(fun); -
uspace/drv/nic/ne2k/ne2k.c
r874381a readaeae8 124 124 static void ne2k_interrupt_handler(ipc_call_t *, ddf_dev_t *); 125 125 126 static errno_t ne2k_register_interrupt(nic_t *nic_data, cap_handle_t *handle) 126 static errno_t ne2k_register_interrupt(nic_t *nic_data, 127 cap_irq_handle_t *handle) 127 128 { 128 129 ne2k_t *ne2k = (ne2k_t *) nic_get_specific(nic_data); -
uspace/drv/nic/rtl8139/driver.c
r874381a readaeae8 846 846 * @return An error code otherwise. 847 847 */ 848 inline static errno_t rtl8139_register_int_handler(nic_t *nic_data, cap_handle_t *handle) 848 inline static errno_t rtl8139_register_int_handler(nic_t *nic_data, 849 cap_irq_handle_t *handle) 849 850 { 850 851 rtl8139_t *rtl8139 = nic_get_specific(nic_data); … … 1288 1289 1289 1290 /* Register interrupt handler */ 1290 int irq_cap;1291 rc = rtl8139_register_int_handler(nic_data, &irq_ cap);1291 cap_irq_handle_t irq_handle; 1292 rc = rtl8139_register_int_handler(nic_data, &irq_handle); 1292 1293 if (rc != EOK) { 1293 1294 goto err_pio; … … 1324 1325 ddf_fun_destroy(fun); 1325 1326 err_srv: 1326 unregister_interrupt_handler(dev, irq_ cap);1327 unregister_interrupt_handler(dev, irq_handle); 1327 1328 err_pio: 1328 1329 // rtl8139_pio_disable(dev); -
uspace/drv/nic/rtl8169/driver.c
r874381a readaeae8 75 75 static void rtl8169_send_frame(nic_t *nic_data, void *data, size_t size); 76 76 static void rtl8169_irq_handler(ipc_call_t *icall, ddf_dev_t *dev); 77 static inline errno_t rtl8169_register_int_handler(nic_t *nic_data, cap_handle_t *handle); 77 static inline errno_t rtl8169_register_int_handler(nic_t *nic_data, 78 cap_irq_handle_t *handle); 78 79 static inline void rtl8169_get_hwaddr(rtl8169_t *rtl8169, nic_address_t *addr); 79 80 static inline void rtl8169_set_hwaddr(rtl8169_t *rtl8169, const nic_address_t *addr); … … 361 362 } 362 363 363 inline static errno_t rtl8169_register_int_handler(nic_t *nic_data, cap_handle_t *handle) 364 inline static errno_t rtl8169_register_int_handler(nic_t *nic_data, 365 cap_irq_handle_t *handle) 364 366 { 365 367 rtl8169_t *rtl8169 = nic_get_specific(nic_data); … … 429 431 goto err_pio; 430 432 431 int irq_cap;432 rc = rtl8169_register_int_handler(nic_data, &irq_ cap);433 cap_irq_handle_t irq_handle; 434 rc = rtl8169_register_int_handler(nic_data, &irq_handle); 433 435 if (rc != EOK) { 434 436 ddf_msg(LVL_ERROR, "Failed to register IRQ handler (%s)", str_error_name(rc)); … … 472 474 err_srv: 473 475 /* XXX Disconnect from services */ 474 unregister_interrupt_handler(dev, irq_ cap);476 unregister_interrupt_handler(dev, irq_handle); 475 477 err_irq: 476 478 err_pio:
Note:
See TracChangeset
for help on using the changeset viewer.