Changeset 1433ecda in mainline for uspace/drv/bus/usb/xhci


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/drv/bus/usb/xhci
Files:
4 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    159159        if (dev->base.speed == USB_SPEED_HIGH) {
    160160                dev->tt_think_time = 8 +
    161                         8  * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_8) +
    162                         16 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_16);
     161                    8  * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_8) +
     162                    16 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_16);
    163163        }
    164164
     
    222222        if ((err = hc_get_device_desc(dev, &desc))) {
    223223                usb_log_error("Device(%d): failed to get device "
    224                    "descriptor: %s", dev->address, str_error(err));
     224                    "descriptor: %s", dev->address, str_error(err));
    225225                goto err_address;
    226226        }
  • uspace/drv/bus/usb/xhci/hw_struct/common.h

    r47b2d7e3 r1433ecda  
    7070 */
    7171static inline void xhci_dword_set_bits(xhci_dword_t *storage, uint32_t value,
    72         unsigned hi, unsigned lo)
     72    unsigned hi, unsigned lo)
    7373{
    7474        const uint32_t mask = host2xhci(32, BIT_RANGE(uint32_t, hi, lo));
     
    8686
    8787static inline void xhci_qword_set_bits(xhci_qword_t *storage, uint64_t value,
    88         unsigned hi, unsigned lo)
     88    unsigned hi, unsigned lo)
    8989{
    9090        const uint64_t mask = host2xhci(64, BIT_RANGE(uint64_t, hi, lo));
     
    9494
    9595static inline int xhci_reg_wait(xhci_dword_t *reg, uint32_t mask,
    96         uint32_t expected)
     96    uint32_t expected)
    9797{
    9898        mask = host2xhci(32, mask);
  • uspace/drv/bus/usb/xhci/scratchpad.c

    r47b2d7e3 r1433ecda  
    7777        for (unsigned i = 0; i < num_bufs; ++i) {
    7878                array[i] = host2xhci(64, dma_buffer_phys(&hc->scratchpad_array,
    79                             base + i * PAGE_SIZE));
     79                    base + i * PAGE_SIZE));
    8080        }
    8181
  • uspace/drv/bus/usb/xhci/transfers.h

    r47b2d7e3 r1433ecda  
    5353} xhci_transfer_t;
    5454
    55 extern usb_transfer_batch_t* xhci_transfer_create(endpoint_t *);
     55extern usb_transfer_batch_t *xhci_transfer_create(endpoint_t *);
    5656extern errno_t xhci_transfer_schedule(usb_transfer_batch_t *);
    5757
Note: See TracChangeset for help on using the changeset viewer.