Changeset 64cf7a3 in mainline for uspace/drv/block/ata_bd/main.c
- Timestamp:
- 2024-05-06T18:33:22Z (9 months ago)
- Branches:
- master
- Children:
- 2791fbb7
- Parents:
- 21989e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ata_bd/main.c
r21989e5 r64cf7a3 1 1 /* 2 * Copyright (c) 20 13Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 66 66 }; 67 67 68 static errno_t ata_get_res(ddf_dev_t *dev, ata_ base_t *ata_res)68 static errno_t ata_get_res(ddf_dev_t *dev, ata_hwres_t *ata_res) 69 69 { 70 70 async_sess_t *parent_sess; … … 86 86 } 87 87 88 /* I/O ranges */ 89 88 90 addr_range_t *cmd_rng = &hw_res.io_ranges.ranges[0]; 89 91 addr_range_t *ctl_rng = &hw_res.io_ranges.ranges[1]; … … 101 103 } 102 104 105 /* IRQ */ 106 if (hw_res.irqs.count > 0) { 107 ata_res->irq = hw_res.irqs.irqs[0]; 108 } else { 109 ata_res->irq = -1; 110 } 111 103 112 return EOK; 104 113 error: … … 115 124 { 116 125 ata_ctrl_t *ctrl; 117 ata_ base_t res;126 ata_hwres_t res; 118 127 errno_t rc; 119 128
Note:
See TracChangeset
for help on using the changeset viewer.