Changeset a38d504 in mainline for uspace/lib
- Timestamp:
- 2024-06-11T09:00:20Z (19 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/lib/ata
- Files:
-
- 2 edited
-
include/ata/ata.h (modified) (1 diff)
-
src/ata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
