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


Ignore:
Timestamp:
2018-02-03T02:14:26Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb862fd
Parents:
961a5ee
Message:

errno_t all the things!

File:
1 edited

Legend:

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

    r961a5ee r45457265  
    125125
    126126/* Command handling control */
    127 extern int xhci_init_commands(xhci_hc_t *);
     127extern errno_t xhci_init_commands(xhci_hc_t *);
    128128extern void xhci_fini_commands(xhci_hc_t *);
    129129
     
    133133extern void xhci_start_command_ring(xhci_hc_t *);
    134134
    135 extern int xhci_handle_command_completion(xhci_hc_t *, xhci_trb_t *);
     135extern errno_t xhci_handle_command_completion(xhci_hc_t *, xhci_trb_t *);
    136136
    137137/* Command lifecycle */
     
    140140
    141141/* Issuing commands */
    142 extern int xhci_cmd_sync(xhci_hc_t *, xhci_cmd_t *);
    143 extern int xhci_cmd_sync_fini(xhci_hc_t *, xhci_cmd_t *);
    144 extern int xhci_cmd_async_fini(xhci_hc_t *, xhci_cmd_t *);
     142extern errno_t xhci_cmd_sync(xhci_hc_t *, xhci_cmd_t *);
     143extern errno_t xhci_cmd_sync_fini(xhci_hc_t *, xhci_cmd_t *);
     144extern errno_t xhci_cmd_async_fini(xhci_hc_t *, xhci_cmd_t *);
    145145
    146 static inline int xhci_cmd_sync_inline_wrapper(xhci_hc_t *hc, xhci_cmd_t cmd)
     146static inline errno_t xhci_cmd_sync_inline_wrapper(xhci_hc_t *hc, xhci_cmd_t cmd)
    147147{
    148148        /* Poor man's xhci_cmd_init (everything else is zeroed) */
     
    152152
    153153        /* Issue the command */
    154         const int err = xhci_cmd_sync(hc, &cmd);
     154        const errno_t err = xhci_cmd_sync(hc, &cmd);
    155155        xhci_cmd_fini(&cmd);
    156156
     
    166166 *
    167167 *  Example:
    168  *    int err = xhci_cmd_sync_inline(hc, DISABLE_SLOT, .slot_id = 42);
     168 *    errno_t err = xhci_cmd_sync_inline(hc, DISABLE_SLOT, .slot_id = 42);
    169169 */
    170170
Note: See TracChangeset for help on using the changeset viewer.