Changeset 07039850 in mainline for uspace/drv/block/pci-ide/main.c


Ignore:
Timestamp:
2025-03-05T21:41:03Z (16 hours ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Parents:
a64970e1
Message:

Implement quiesce in ISA and PCI IDE and in PC Floppy.

File:
1 edited

Legend:

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

    ra64970e1 r07039850  
    4949static errno_t pci_ide_dev_remove(ddf_dev_t *dev);
    5050static errno_t pci_ide_dev_gone(ddf_dev_t *dev);
     51static errno_t pci_ide_dev_quiesce(ddf_dev_t *dev);
    5152static errno_t pci_ide_fun_online(ddf_fun_t *fun);
    5253static errno_t pci_ide_fun_offline(ddf_fun_t *fun);
     
    5556
    5657static driver_ops_t driver_ops = {
    57         .dev_add = &pci_ide_dev_add,
    58         .dev_remove = &pci_ide_dev_remove,
    59         .dev_gone = &pci_ide_dev_gone,
    60         .fun_online = &pci_ide_fun_online,
    61         .fun_offline = &pci_ide_fun_offline
     58        .dev_add = pci_ide_dev_add,
     59        .dev_remove = pci_ide_dev_remove,
     60        .dev_gone = pci_ide_dev_gone,
     61        .dev_quiesce = pci_ide_dev_quiesce,
     62        .fun_online = pci_ide_fun_online,
     63        .fun_offline = pci_ide_fun_offline
    6264};
    6365
     
    367369}
    368370
     371static errno_t pci_ide_dev_quiesce(ddf_dev_t *dev)
     372{
     373        pci_ide_ctrl_t *ctrl = (pci_ide_ctrl_t *)ddf_dev_data_get(dev);
     374
     375        ddf_msg(LVL_DEBUG, "pci_ide_dev_quiesce(%p)", dev);
     376
     377        pci_ide_channel_quiesce(&ctrl->channel[0]);
     378        pci_ide_channel_quiesce(&ctrl->channel[1]);
     379
     380        return EOK;
     381}
     382
    369383static errno_t pci_ide_fun_online(ddf_fun_t *fun)
    370384{
Note: See TracChangeset for help on using the changeset viewer.