Changeset 913007f in mainline for uspace/drv/bus/usb/xhci/commands.h


Ignore:
Timestamp:
2017-10-19T21:40:57Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fe1c48d
Parents:
2896ff6
Message:

Final change with respect to command timeouts. Because communication channels are inherently noisy.

File:
1 edited

Legend:

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

    r2896ff6 r913007f  
    4242#include "hw_struct/trb.h"
    4343
     44/* Useful timeouts for `xhci_cmd_wait()` */
     45#define XHCI_DEFAULT_TIMEOUT             1000000
     46#define XHCI_BLOCK_INDEFINITELY              0
     47
    4448typedef struct xhci_hc xhci_hc_t;
    4549typedef struct xhci_input_ctx xhci_input_ctx_t;
     
    6771xhci_cmd_t *xhci_cmd_alloc(void);
    6872void xhci_cmd_init(xhci_cmd_t *);
    69 int xhci_cmd_wait(xhci_cmd_t *);
     73int xhci_cmd_wait(xhci_cmd_t *, suseconds_t);
    7074void xhci_cmd_fini(xhci_cmd_t *);
    7175void xhci_cmd_free(xhci_cmd_t *);
Note: See TracChangeset for help on using the changeset viewer.