Ignore:
File:
1 edited

Legend:

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

    r145d4e2e r07039850  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    189189
    190190        ddf_msg(LVL_DEBUG, "pci_ide_channel_init()");
     191
     192        memset(&params, 0, sizeof(params));
    191193
    192194        chan->ctrl = ctrl;
     
    329331}
    330332
     333/** Quiesce PCI IDE channel. */
     334void pci_ide_channel_quiesce(pci_ide_channel_t *chan)
     335{
     336        ddf_msg(LVL_DEBUG, ": pci_ide_channel_quiesce()");
     337
     338        fibril_mutex_lock(&chan->lock);
     339        ata_channel_quiesce(chan->channel);
     340        fibril_mutex_unlock(&chan->lock);
     341}
     342
    331343/** Enable device I/O. */
    332344static errno_t pci_ide_init_io(pci_ide_channel_t *chan)
Note: See TracChangeset for help on using the changeset viewer.