Changeset b9cc81c6 in mainline for uspace/drv/char/pc-lpt/main.c


Ignore:
Timestamp:
2025-03-06T17:35:07Z (3 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
797ab95
Parents:
870841cf
Message:

Implement quiesce in NS8250 and PC-LPT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/pc-lpt/main.c

    r870841cf rb9cc81c6  
    11/*
    2  * Copyright (c) 2018 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4646static errno_t pc_lpt_dev_remove(ddf_dev_t *dev);
    4747static errno_t pc_lpt_dev_gone(ddf_dev_t *dev);
     48static errno_t pc_lpt_dev_quiesce(ddf_dev_t *dev);
    4849static errno_t pc_lpt_fun_online(ddf_fun_t *fun);
    4950static errno_t pc_lpt_fun_offline(ddf_fun_t *fun);
     
    5354        .dev_remove = pc_lpt_dev_remove,
    5455        .dev_gone = pc_lpt_dev_gone,
     56        .dev_quiesce = pc_lpt_dev_quiesce,
    5557        .fun_online = pc_lpt_fun_online,
    5658        .fun_offline = pc_lpt_fun_offline
     
    140142}
    141143
     144static errno_t pc_lpt_dev_quiesce(ddf_dev_t *dev)
     145{
     146        pc_lpt_t *pc_lpt = (pc_lpt_t *)ddf_dev_data_get(dev);
     147
     148        ddf_msg(LVL_DEBUG, "pc_lpt_dev_quiesce(%p)", dev);
     149
     150        pc_lpt_quiesce(pc_lpt);
     151        return EOK;
     152}
     153
    142154static errno_t pc_lpt_fun_online(ddf_fun_t *fun)
    143155{
Note: See TracChangeset for help on using the changeset viewer.