Changeset 4688350b in mainline for uspace/drv/bus/usb/xhci/commands.h


Ignore:
Timestamp:
2017-10-01T22:54:09Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
370a1c8
Parents:
4d28d86
Message:

xhci commands: waiting for commands completion uses fibril condvar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/commands.h

    r4d28d86 r4688350b  
    3939#include <adt/list.h>
    4040#include <stdbool.h>
     41#include <fibril_synch.h>
    4142#include "hw_struct/trb.h"
    4243
     
    5657        bool has_owner;
    5758        bool owns_trb;
     59
     60        /* Will be unlocked after command completes */
     61        fibril_mutex_t completed_mtx;
     62        fibril_condvar_t completed_cv;
    5863} xhci_cmd_t;
    5964
     
    6267int xhci_wait_for_command(xhci_cmd_t *, uint32_t);
    6368xhci_cmd_t *xhci_alloc_command(void);
     69void xhci_cmd_init(xhci_cmd_t *);
    6470void xhci_free_command(xhci_cmd_t *);
    6571
Note: See TracChangeset for help on using the changeset viewer.