Changes in uspace/drv/block/ahci/ahci.c [d51838f:071a1ddb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
rd51838f r071a1ddb 890 890 /** AHCI interrupt handler. 891 891 * 892 * @param iid The IPC call id.893 892 * @param icall The IPC call structure. 894 893 * @param dev DDF device structure. 895 894 * 896 895 */ 897 static void ahci_interrupt(ipc_call id_t iid, ipc_call_t *icall, ddf_dev_t *dev)896 static void ahci_interrupt(ipc_call_t *icall, ddf_dev_t *dev) 898 897 { 899 898 ahci_dev_t *ahci = dev_ahci_dev(dev); … … 1185 1184 ct.ranges = ahci_ranges; 1186 1185 1187 int irq_cap = register_interrupt_handler(dev, 1188 hw_res_parsed.irqs.irqs[0], ahci_interrupt, &ct); 1189 if (irq_cap < 0) { 1186 int irq_cap; 1187 int rc = register_interrupt_handler(dev, 1188 hw_res_parsed.irqs.irqs[0], ahci_interrupt, &ct, &irq_cap); 1189 if (rc != EOK) { 1190 1190 ddf_msg(LVL_ERROR, "Failed registering interrupt handler."); 1191 1191 goto error_register_interrupt_handler; 1192 1192 } 1193 1193 1194 intrc = hw_res_enable_interrupt(ahci->parent_sess,1194 rc = hw_res_enable_interrupt(ahci->parent_sess, 1195 1195 hw_res_parsed.irqs.irqs[0]); 1196 1196 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.