Changeset a796812c in mainline


Ignore:
Timestamp:
2025-02-03T08:15:30Z (27 hours ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
8c174e0, c3d9aaf5
Parents:
56210a7
Message:

Fix ISA IDE

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/isa-ide/isa-ide.c

    r56210a7 ra796812c  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    103103        ddf_msg(LVL_DEBUG, "isa_ide_ctrl_init()");
    104104
     105        memset(&params, 0, sizeof(params));
     106
    105107        chan->ctrl = ctrl;
    106108        chan->chan_id = chan_id;
     
    136138
    137139        params.arg = (void *)chan;
     140        params.use_dma = false;
    138141        params.have_irq = (chan->irq >= 0) ? true : false;
    139142        params.write_data_16 = isa_ide_write_data_16;
  • uspace/lib/ata/src/ata.c

    r56210a7 ra796812c  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    15341534         * exceed DMA buffer size.
    15351535         */
    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        }
    15391541
    15401542        return maxnb;
Note: See TracChangeset for help on using the changeset viewer.