Changeset eb862fd in mainline


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

cstyle

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

Legend:

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

    r45457265 reb862fd  
    5959 */
    6060static errno_t xhci_endpoint_init(xhci_endpoint_t *xhci_ep, device_t *dev,
    61     const usb_endpoint_descriptors_t *desc)
     61        const usb_endpoint_descriptors_t *desc)
    6262{
    6363        errno_t rc;
     
    131131 */
    132132endpoint_t *xhci_endpoint_create(device_t *dev,
    133     const usb_endpoint_descriptors_t *desc)
     133        const usb_endpoint_descriptors_t *desc)
    134134{
    135135        const usb_transfer_type_t type = USB_ED_GET_TRANSFER_TYPE(desc->endpoint);
  • uspace/drv/bus/usb/xhci/hc.c

    r45457265 reb862fd  
    405405        code->cmds[6].addr = intr0_iman;
    406406
    407         *irq = hw_res->irqs.irqs[0];
    408         return EOK;
     407        *irq = hw_res->irqs.irqs[0];
     408        return EOK;
    409409}
    410410
     
    652652 */
    653653static void hc_run_event_ring(xhci_hc_t *hc, xhci_event_ring_t *event_ring,
    654     xhci_interrupter_regs_t *intr)
     654        xhci_interrupter_regs_t *intr)
    655655{
    656656        errno_t err;
  • uspace/drv/bus/usb/xhci/isoch.c

    r45457265 reb862fd  
    270270 */
    271271static inline void window_decide(window_decision_t *res, xhci_hc_t *hc,
    272     uint64_t mfindex)
     272        uint64_t mfindex)
    273273{
    274274        const uint64_t current_mf = get_current_microframe(hc);
     
    588588
    589589void isoch_handle_transfer_event(xhci_hc_t *hc, xhci_endpoint_t *ep,
    590     xhci_trb_t *trb)
     590        xhci_trb_t *trb)
    591591{
    592592        assert(ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS);
  • uspace/drv/bus/usb/xhci/rh.c

    r45457265 reb862fd  
    280280
    281281void xhci_rh_set_ports_protocol(xhci_rh_t *rh,
    282     unsigned offset, unsigned count, unsigned major)
     282        unsigned offset, unsigned count, unsigned major)
    283283{
    284284        for (unsigned i = offset; i < offset + count; i++)
  • uspace/drv/bus/usb/xhci/streams.h

    r45457265 reb862fd  
    6666extern errno_t xhci_endpoint_remove_streams(xhci_hc_t *hc, xhci_device_t *dev, xhci_endpoint_t *xhci_ep);
    6767extern errno_t xhci_endpoint_request_primary_streams(xhci_hc_t *hc, xhci_device_t *dev,
    68         xhci_endpoint_t *xhci_ep, unsigned count);
     68    xhci_endpoint_t *xhci_ep, unsigned count);
    6969extern errno_t xhci_endpoint_request_secondary_streams(xhci_hc_t *hc, xhci_device_t *dev,
    70         xhci_endpoint_t *xhci_ep, unsigned *sizes, unsigned count);
     70    xhci_endpoint_t *xhci_ep, unsigned *sizes, unsigned count);
    7171
    7272#endif
  • uspace/drv/bus/usb/xhci/transfers.c

    r45457265 reb862fd  
    4444
    4545typedef enum {
    46     STAGE_OUT,
    47     STAGE_IN,
     46        STAGE_OUT,
     47        STAGE_IN,
    4848} stage_dir_flag_t;
    4949
     
    6565
    6666typedef enum {
    67     DATA_STAGE_NO = 0,
    68     DATA_STAGE_OUT = 2,
    69     DATA_STAGE_IN = 3,
     67        DATA_STAGE_NO = 0,
     68        DATA_STAGE_OUT = 2,
     69        DATA_STAGE_IN = 3,
    7070} data_stage_type_t;
    7171
  • uspace/drv/bus/usb/xhci/trb_ring.h

    r45457265 reb862fd  
    8585 * pointer inside the ring. Otherwise, the ring will soon show up as full.
    8686 */
    87 static inline void xhci_trb_ring_update_dequeue(xhci_trb_ring_t *ring, uintptr_t phys) {
     87static inline void xhci_trb_ring_update_dequeue(xhci_trb_ring_t *ring, uintptr_t phys)
     88{
    8889        ring->dequeue = phys;
    8990}
Note: See TracChangeset for help on using the changeset viewer.