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

Changeset b4f291d in mainline


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

OHCI: Export root hub power switching modes to config.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    r7d5708d rb4f291d  
    573573! CONFIG_RUN_VIRTUAL_USB_HC (n/y)
    574574
    575 % Polling UHCI & OHCI (no interrupts)
     575% Polling UHCI (no interrupts)
    576576! [PLATFORM=ia32|PLATFORM=amd64] CONFIG_USBHC_NO_INTERRUPTS (n/y)
    577577
     578% OHCI root hub port power switching
     579@ "no"
     580@ "ganged"
     581@ "per_port"
     582! OHCI_POWER_SWITCH (choice)
  • 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.