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

Changeset af4e464e in mainline for uspace/drv/bus/usb/uhci/uhci_rh.h


Ignore:
Timestamp:
2013-02-08T13:05:54Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
711f5fb8
Parents:
4c86c7c
Message:

uhci: Cleanup.

include guard, doxygen, line wrap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/uhci_rh.h

    r4c86c7c raf4e464e  
    3333 * @brief UHCI host controller driver structure
    3434 */
    35 #ifndef DRV_UHCI_RHVIRT_H
    36 #define DRV_UHCI_RHVIRT_H
     35#ifndef DRV_UHCI_UHCI_RH_H
     36#define DRV_UHCI_UHCI_RH_H
    3737
    3838#include <usbvirt/virthub_base.h>
     
    4242#define HUB_STATUS_CHANGE_PIPE   1
    4343
    44 
     44/** Virtual to UHCI hub connector */
    4545typedef struct {
     46        /** Virtual hub software implementation */
    4647        virthub_base_t base;
     48        /** UHCI root hub port io registers */
    4749        ioport16_t *ports[2];
     50        /** Reset change indicator, it is not reported by regs */
    4851        bool reset_changed[2];
    4952} uhci_rh_t;
     
    5154int uhci_rh_init(uhci_rh_t *instance, ioport16_t *ports, const char *name);
    5255int uhci_rh_schedule(uhci_rh_t *instance, usb_transfer_batch_t *batch);
     56
     57/** Get UHCI rh address.
     58 *
     59 * @param instance UHCI rh instance.
     60 * @return USB address assigned to the hub.
     61 * Wrapper for virtual hub address
     62 */
    5363static inline usb_address_t uhci_rh_get_address(uhci_rh_t *instance)
    5464{
Note: See TracChangeset for help on using the changeset viewer.