Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset add878aa in mainline


Ignore:
Timestamp:
2017-10-12T15:25:13Z (3 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
master
Children:
d0db4a0
Parents:
a5976973
Message:

Added empty implementation of XHCI bus method bodies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/bus.c

    ra5976973 radd878aa  
    7575}
    7676
    77 /** TODO: Implement missing ops. */
     77static int register_endpoint(bus_t *bus_base, endpoint_t *ep)
     78{
     79        // TODO: Implement me!
     80        return ENOTSUP;
     81}
     82
     83static int release_endpoint(bus_t *bus_base, endpoint_t *ep)
     84{
     85        // TODO: Implement me!
     86        return ENOTSUP;
     87}
     88
     89static endpoint_t* find_endpoint(bus_t *bus_base, usb_target_t target, usb_direction_t direction)
     90{
     91        // TODO: Implement me!
     92        return NULL;
     93}
     94
     95static int request_address(bus_t *bus_base, usb_address_t *addr, bool strict, usb_speed_t speed)
     96{
     97        // TODO: Implement me!
     98        return ENOTSUP;
     99}
     100
     101static int get_speed(bus_t *bus_base, usb_address_t address, usb_speed_t *speed)
     102{
     103        // TODO: Implement me!
     104        return ENOTSUP;
     105}
     106
     107static int release_address(bus_t *bus_base, usb_address_t address)
     108{
     109        // TODO: Implement me!
     110        return ENOTSUP;
     111}
     112
     113static int reset_toggle(bus_t *bus_base, usb_target_t target, bool all)
     114{
     115        // TODO: Implement me!
     116        return ENOTSUP;
     117}
     118
     119static size_t count_bw(endpoint_t *ep, size_t size)
     120{
     121        // TODO: Implement me!
     122        return 0;
     123}
     124
     125/* Endpoint ops, optional (have generic fallback) */
     126static int endpoint_get_toggle(endpoint_t *ep)
     127{
     128        // TODO: Implement me!
     129        return ENOTSUP;
     130}
     131
     132static void endpoint_set_toggle(endpoint_t *ep, unsigned toggle)
     133{
     134        // TODO: Implement me!
     135}
     136
    78137static const bus_ops_t xhci_bus_ops = {
    79138        .create_endpoint = create_endpoint,
    80139        .destroy_endpoint = destroy_endpoint,
    81140
    82         .register_endpoint = NULL,
    83         .release_endpoint = NULL,
    84         .find_endpoint = NULL,
     141        .register_endpoint = register_endpoint,
     142        .release_endpoint = release_endpoint,
     143        .find_endpoint = find_endpoint,
    85144
    86         .request_address = NULL,
    87         .get_speed = NULL,
    88         .release_address = NULL,
    89         .reset_toggle = NULL,
     145        .request_address = request_address,
     146        .get_speed = get_speed,
     147        .release_address = release_address,
     148        .reset_toggle = reset_toggle,
    90149
    91         .count_bw = NULL,
     150        .count_bw = count_bw,
    92151
    93         .endpoint_get_toggle = NULL,
    94         .endpoint_set_toggle = NULL,
     152        .endpoint_get_toggle = endpoint_get_toggle,
     153        .endpoint_set_toggle = endpoint_set_toggle,
    95154};
    96155
Note: See TracChangeset for help on using the changeset viewer.