Changeset a796812c in mainline
- Timestamp:
- 2025-02-03T08:15:30Z (27 hours ago)
- Branches:
- master
- Children:
- 8c174e0, c3d9aaf5
- Parents:
- 56210a7
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/isa-ide/isa-ide.c
r56210a7 ra796812c 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 103 103 ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init()"); 104 104 105 memset(¶ms, 0, sizeof(params)); 106 105 107 chan->ctrl = ctrl; 106 108 chan->chan_id = chan_id; … … 136 138 137 139 params.arg = (void *)chan; 140 params.use_dma = false; 138 141 params.have_irq = (chan->irq >= 0) ? true : false; 139 142 params.write_data_16 = isa_ide_write_data_16; -
uspace/lib/ata/src/ata.c
r56210a7 ra796812c 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 1534 1534 * exceed DMA buffer size. 1535 1535 */ 1536 dma_maxnb = d->chan->params.max_dma_xfer / d->block_size; 1537 if (dma_maxnb < maxnb) 1538 maxnb = dma_maxnb; 1536 if (d->chan->params.use_dma) { 1537 dma_maxnb = d->chan->params.max_dma_xfer / d->block_size; 1538 if (dma_maxnb < maxnb) 1539 maxnb = dma_maxnb; 1540 } 1539 1541 1540 1542 return maxnb;
Note:
See TracChangeset
for help on using the changeset viewer.