Changeset c910ecf in mainline


Ignore:
Timestamp:
2017-10-28T16:29:31Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9868982
Parents:
d37514e
Message:

Added fun_online and _offline hooks to [EOU]HCI.

Location:
uspace/drv/bus/usb
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/main.c

    rd37514e rc910ecf  
    130130}
    131131
     132static int ehci_fun_online(ddf_fun_t *fun)
     133{
     134        return hcd_ddf_device_online(fun);
     135}
     136
     137static int ehci_fun_offline(ddf_fun_t *fun)
     138{
     139        return hcd_ddf_device_offline(fun);
     140}
     141
    132142
    133143static const driver_ops_t ehci_driver_ops = {
    134144        .dev_add = ehci_dev_add,
     145        .fun_online = ehci_fun_online,
     146        .fun_offline = ehci_fun_offline
    135147};
    136148
  • uspace/drv/bus/usb/ohci/main.c

    rd37514e rc910ecf  
    138138}
    139139
     140static int ohci_fun_online(ddf_fun_t *fun)
     141{
     142        return hcd_ddf_device_online(fun);
     143}
     144
     145static int ohci_fun_offline(ddf_fun_t *fun)
     146{
     147        return hcd_ddf_device_offline(fun);
     148}
     149
     150
    140151static const driver_ops_t ohci_driver_ops = {
    141152        .dev_add = ohci_dev_add,
     153        .fun_online = ohci_fun_online,
     154        .fun_offline = ohci_fun_offline
    142155};
    143156
  • uspace/drv/bus/usb/uhci/main.c

    rd37514e rc910ecf  
    143143}
    144144
     145static int uhci_fun_online(ddf_fun_t *fun)
     146{
     147        return hcd_ddf_device_online(fun);
     148}
     149
     150static int uhci_fun_offline(ddf_fun_t *fun)
     151{
     152        return hcd_ddf_device_offline(fun);
     153}
     154
    145155static const driver_ops_t uhci_driver_ops = {
    146156        .dev_add = uhci_dev_add,
     157        .fun_online = uhci_fun_online,
     158        .fun_offline = uhci_fun_offline
    147159};
    148160
  • uspace/drv/bus/usb/xhci/main.c

    rd37514e rc910ecf  
    174174}
    175175
     176
    176177static const driver_ops_t xhci_driver_ops = {
    177178        .dev_add = xhci_dev_add,
Note: See TracChangeset for help on using the changeset viewer.