Changes in uspace/drv/block/ahci/ahci.c [f9b2cb4c:d51838f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
rf9b2cb4c rd51838f 36 36 #include <ddf/interrupt.h> 37 37 #include <ddf/log.h> 38 #include <device/hw_res.h> 38 39 #include <device/hw_res_parsed.h> 39 40 #include <pci_dev_iface.h> 40 #include <irc.h>41 41 #include <ahci_iface.h> 42 42 #include "ahci.h" … … 1140 1140 1141 1141 /* Connect to parent device */ 1142 ahci->parent_sess = ddf_dev_parent_sess_ create(dev);1142 ahci->parent_sess = ddf_dev_parent_sess_get(dev); 1143 1143 if (ahci->parent_sess == NULL) 1144 1144 return NULL; … … 1185 1185 ct.ranges = ahci_ranges; 1186 1186 1187 int rc = register_interrupt_handler(dev, hw_res_parsed.irqs.irqs[0],1188 ahci_interrupt, &ct);1189 if ( rc != EOK) {1187 int irq_cap = register_interrupt_handler(dev, 1188 hw_res_parsed.irqs.irqs[0], ahci_interrupt, &ct); 1189 if (irq_cap < 0) { 1190 1190 ddf_msg(LVL_ERROR, "Failed registering interrupt handler."); 1191 1191 goto error_register_interrupt_handler; 1192 1192 } 1193 1193 1194 rc = irc_enable_interrupt(hw_res_parsed.irqs.irqs[0]); 1194 int rc = hw_res_enable_interrupt(ahci->parent_sess, 1195 hw_res_parsed.irqs.irqs[0]); 1195 1196 if (rc != EOK) { 1196 1197 ddf_msg(LVL_ERROR, "Failed enable interupt."); … … 1202 1203 1203 1204 error_enable_interrupt: 1204 unregister_interrupt_handler(dev, hw_res_parsed.irqs.irqs[0]);1205 unregister_interrupt_handler(dev, irq_cap); 1205 1206 1206 1207 error_register_interrupt_handler:
Note:
See TracChangeset
for help on using the changeset viewer.