Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f7bd246 in mainline


Ignore:
Timestamp:
2017-07-24T19:10:25Z (3 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
Children:
66dcc24
Parents:
7dee9b7
Message:

Fixed hub port extraction. Also refactored padding in op_regs, because I apparently suck at math.

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

Legend:

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

    r7dee9b7 rf7bd246  
    376376
    377377        /* Offset of portrs from op_regs addr is 0x400. */
    378         PADD32[240];
    379         PADD8[4];
     378        PADD32[241];
    380379
    381380        /*
  • uspace/drv/bus/usb/xhci/rh.c

    r7dee9b7 rf7bd246  
    9494{
    9595        assert(trb);
    96         uint8_t port_id = XHCI_QWORD_EXTRACT(trb->parameter, 63, 56);
     96        uint8_t port_id = XHCI_QWORD_EXTRACT(trb->parameter, 31, 24);
    9797
    9898        return port_id;   
Note: See TracChangeset for help on using the changeset viewer.