Changeset 3bacee1 in mainline for uspace/drv/bus/usb/xhci/hw_struct


Ignore:
Timestamp:
2018-04-12T16:27:17Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cf22f9
Parents:
76d0981d
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
Message:

Make ccheck-fix again and commit more good files.

Location:
uspace/drv/bus/usb/xhci/hw_struct
Files:
2 edited

Legend:

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

    r76d0981d r3bacee1  
    235235#define XHCI_CAP_CIC          hccparams2, 32,  FLAG,  5
    236236
    237 static inline unsigned xhci_get_max_spbuf(xhci_cap_regs_t *cap_regs) {
    238         return XHCI_REG_RD(cap_regs, XHCI_CAP_MAX_SPBUF_HI) << 5
    239                 | XHCI_REG_RD(cap_regs, XHCI_CAP_MAX_SPBUF_LO);
     237static inline unsigned xhci_get_max_spbuf(xhci_cap_regs_t *cap_regs)
     238{
     239        return XHCI_REG_RD(cap_regs, XHCI_CAP_MAX_SPBUF_HI) << 5 |
     240            XHCI_REG_RD(cap_regs, XHCI_CAP_MAX_SPBUF_LO);
    240241}
    241242
  • uspace/drv/bus/usb/xhci/hw_struct/trb.h

    r76d0981d r3bacee1  
    166166
    167167        return chain_bit &&
    168             (type == XHCI_TRB_TYPE_NORMAL
    169             || type == XHCI_TRB_TYPE_DATA_STAGE
    170             || type == XHCI_TRB_TYPE_STATUS_STAGE
    171             || type == XHCI_TRB_TYPE_ISOCH);
     168            (type == XHCI_TRB_TYPE_NORMAL ||
     169            type == XHCI_TRB_TYPE_DATA_STAGE ||
     170            type == XHCI_TRB_TYPE_STATUS_STAGE ||
     171            type == XHCI_TRB_TYPE_ISOCH);
    172172}
    173173
Note: See TracChangeset for help on using the changeset viewer.