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

Changeset b4f291d in mainline for uspace/drv/bus/usb/ohci/root_hub.c


Ignore:
Timestamp:
2011-07-12T11:33:34Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
dfe4955
Parents:
7d5708d
Message:

OHCI: Export root hub power switching modes to config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/root_hub.c

    r7d5708d rb4f291d  
    132132} while (0)
    133133
    134 #define OHCI_POWER 2
    135 
    136134/** Root Hub driver structure initialization.
    137135 *
     
    156154        instance->unfinished_interrupt_transfer = NULL;
    157155
    158 #if OHCI_POWER == 0
     156#ifdef OHCI_POWER_SWITCH_no
    159157        /* Set port power mode to no power-switching. (always on) */
    160158        instance->registers->rh_desc_a |= RHDA_NPS_FLAG;
    161         /* Set to no overcurrent */
     159        /* Set to no over-current reporting */
    162160        instance->registers->rh_desc_a |= RHDA_NOCP_FLAG;
    163 #elif OHCI_POWER == 1
     161#elif defined OHCI_POWER_SWITCH_ganged
    164162        /* Set port power mode to no ganged power-switching. */
    165163        instance->registers->rh_desc_a &= ~RHDA_NPS_FLAG;
Note: See TracChangeset for help on using the changeset viewer.