Changeset eb928c4 in mainline for uspace/drv/bus/usb/xhci/debug.c


Ignore:
Timestamp:
2018-01-08T00:07:00Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1102eca
Parents:
ecbad17
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-08 00:05:39)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-08 00:07:00)
Message:

xhci: documentation & cleanup

Also, a simple refactoring to remove functions that only wraps another
functions unused anywhere else.

File:
1 edited

Legend:

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

    recbad17 reb928c4  
    3131 */
    3232/** @file
    33  * Memory-mapped register structures of the xHC.
     33 * Various functions to examine current state of the xHC.
    3434 */
    3535
     
    100100}
    101101
     102/**
     103 * Dumps registers of one port.
     104 */
    102105void xhci_dump_port(const xhci_port_regs_t *port)
    103106{
     
    126129}
    127130
     131/**
     132 * Dumps all registers that define state of the HC.
     133 */
    128134void xhci_dump_state(const xhci_hc_t *hc)
    129135{
     
    173179}
    174180
     181/**
     182 * Dump registers of all ports.
     183 */
    175184void xhci_dump_ports(const xhci_hc_t *hc)
    176185{
     
    221230};
    222231
     232/**
     233 * Stringify XHCI_TRB_TYPE_*.
     234 */
    223235const char *xhci_trb_str_type(unsigned type)
    224236{
     
    232244}
    233245
     246/**
     247 * Dump a TRB.
     248 */
    234249void xhci_dump_trb(const xhci_trb_t *trb)
    235250{
     
    252267};
    253268
     269/**
     270 * Dump Extended Capability ID.
     271 */
    254272const char *xhci_ec_str_id(unsigned id)
    255273{
     
    263281}
    264282
     283/**
     284 * Dump Protocol Speed ID.
     285 */
    265286static void xhci_dump_psi(const xhci_psi_t *psi)
    266287{
     
    276297}
    277298
     299/**
     300 * Dump given Extended Capability.
     301 */
    278302void xhci_dump_extcap(const xhci_extcap_t *ec)
    279303{
Note: See TracChangeset for help on using the changeset viewer.