Changeset 3bacee1 in mainline for uspace/drv/bus/isa
- Timestamp:
- 2018-04-12T16:27:17Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/i8237.c
r76d0981d r3bacee1 293 293 294 294 ret = pio_enable(DMA_CONTROLLER_SECOND_BASE, 295 295 sizeof(dma_controller_regs_second_t), (void **) &controller->second); 296 296 if (ret != EOK) 297 297 return EIO; … … 484 484 fibril_mutex_unlock(&guard); 485 485 486 uint16_t remain = (value_high << 8 | value_low) 486 uint16_t remain = (value_high << 8 | value_low); 487 487 /* 16 bit DMA size is in words, 488 488 * the upper bits are bogus for 16bit transfers so we need to get … … 490 490 if (is_dma16(channel)) 491 491 remain <<= 1; 492 *size = is_dma16(channel) ? remain + 2 : remain + 1;492 *size = is_dma16(channel) ? remain + 2 : remain + 1; 493 493 return EOK; 494 494 }
Note:
See TracChangeset
for help on using the changeset viewer.