Changeset c2a6983 in mainline for uspace/drv/block/ata_bd
- Timestamp:
- 2013-10-13T20:59:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12d6c98
- Parents:
- 820104d (diff), 39bcc99 (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. - Location:
- uspace/drv/block/ata_bd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ata_bd/ata_bd.c
r820104d rc2a6983 1132 1132 cnt = 100; 1133 1133 while ((status & ~n_reset) != 0 || (status & set) != set) { 1134 async_usleep(1);1135 1134 --cnt; 1136 1135 if (cnt <= 0) break; -
uspace/drv/block/ata_bd/main.c
r820104d rc2a6983 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.
