Changeset 99c2c69e in mainline for uspace/drv/block/ata_bd/main.c
- Timestamp:
- 2013-09-13T00:36:30Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67fbd5e
- Parents:
- 7f84430 (diff), 11d41be5 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ata_bd/main.c
r7f84430 r99c2c69e 84 84 } 85 85 86 ata_res->cmd = hw_res.io_ranges.ranges[0].address; 87 ata_res->ctl = hw_res.io_ranges.ranges[1].address; 88 89 if (hw_res.io_ranges.ranges[0].size < sizeof(ata_ctl_t)) { 86 addr_range_t *cmd_rng = &hw_res.io_ranges.ranges[0]; 87 addr_range_t *ctl_rng = &hw_res.io_ranges.ranges[1]; 88 ata_res->cmd = RNGABS(*cmd_rng); 89 ata_res->ctl = RNGABS(*ctl_rng); 90 91 if (RNGSZ(*ctl_rng) < sizeof(ata_ctl_t)) { 90 92 rc = EINVAL; 91 93 goto error; 92 94 } 93 95 94 if ( hw_res.io_ranges.ranges[1].size< sizeof(ata_cmd_t)) {96 if (RNGSZ(*cmd_rng) < sizeof(ata_cmd_t)) { 95 97 rc = EINVAL; 96 98 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.