Changeset a38d504 in mainline
- Timestamp:
- 2024-06-11T09:00:20Z (6 months ago)
- Branches:
- master
- Children:
- 9739b5a
- Parents:
- 645d3832
- git-author:
- Jiri Svoboda <jiri@…> (2024-06-10 17:59:56)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-06-11 09:00:20)
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/pci-ide/pci-ide.c
r645d3832 ra38d504 226 226 params.have_irq = (chan->irq >= 0) ? true : false; 227 227 params.use_dma = true; 228 params.max_dma_xfer = chan->dma_buf_size; 228 229 params.write_data_16 = pci_ide_write_data_16; 229 230 params.read_data_16 = pci_ide_read_data_16; -
uspace/lib/ata/include/ata/ata.h
r645d3832 ra38d504 63 63 /** Use DMA transfers */ 64 64 bool use_dma; 65 /** Maximum number of bytes that we can DMA in one I/O operation */ 66 size_t max_dma_xfer; 65 67 /** Read 16 bits from the data port */ 66 68 void (*write_data_16)(void *, uint16_t *, size_t); -
uspace/lib/ata/src/ata.c
r645d3832 ra38d504 1419 1419 { 1420 1420 size_t maxnb; 1421 size_t dma_maxnb; 1421 1422 1422 1423 maxnb = 0; … … 1441 1442 * exceed DMA buffer size. 1442 1443 */ 1444 dma_maxnb = d->chan->params.max_dma_xfer / d->block_size; 1445 if (dma_maxnb < maxnb) 1446 maxnb = dma_maxnb; 1447 1443 1448 return maxnb; 1444 1449 }
Note:
See TracChangeset
for help on using the changeset viewer.