Changeset ebb1489 in mainline for uspace/drv/block/ahci/ahci.c
- Timestamp:
- 2024-10-13T08:23:40Z (2 months ago)
- Children:
- 0472cf17
- Parents:
- 2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
- git-committer:
- GitHub <noreply@…> (2024-10-13 08:23:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
r2a0c827c rebb1489 162 162 } 163 163 164 /** Get AHCI structure from DDF device. */165 static ahci_dev_t *dev_ahci_dev(ddf_dev_t *dev)166 {167 return ddf_dev_data_get(dev);168 }169 170 164 /** Get SATA device name. 171 165 * … … 891 885 * 892 886 * @param icall The IPC call structure. 893 * @param dev DDF device structure. 894 * 895 */ 896 static void ahci_interrupt(ipc_call_t *icall, ddf_dev_t *dev) 897 { 898 ahci_dev_t *ahci = dev_ahci_dev(dev); 887 * @param arg Argument (ahci_dev_t *) 888 */ 889 static void ahci_interrupt(ipc_call_t *icall, void *arg) 890 { 891 ahci_dev_t *ahci = (ahci_dev_t *)arg; 899 892 unsigned int port = ipc_get_arg1(icall); 900 893 ahci_port_is_t pxis = ipc_get_arg2(icall); … … 1186 1179 cap_irq_handle_t irq_cap; 1187 1180 errno_t rc = register_interrupt_handler(dev, 1188 hw_res_parsed.irqs.irqs[0], ahci_interrupt, &ct, &irq_cap); 1181 hw_res_parsed.irqs.irqs[0], ahci_interrupt, (void *)ahci, &ct, 1182 &irq_cap); 1189 1183 if (rc != EOK) { 1190 1184 ddf_msg(LVL_ERROR, "Failed registering interrupt handler.");
Note:
See TracChangeset
for help on using the changeset viewer.