android_kernel_oneplus_msm8998/include/linux/usb/xhci_pdriver.h
Manu Gautam a4f63f1693 usb: xhci-plat: Add DT parameter to program xhci imod_interval
XHCI allows interrupt moderation using imod_interval at 250ns
increments. Add DT parameter to specify this imod_value for
targets mainly with single CPU to reduce CPU interrupt loads.
This allows better balance between CPU usage and performance.

CRs-fixed: 1019219
Change-Id: Id479c162da6492caff4dd83de4054fee63b6abc5
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2017-02-02 14:20:44 -08:00

31 lines
908 B
C

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
*/
#ifndef __USB_CORE_XHCI_PDRIVER_H
#define __USB_CORE_XHCI_PDRIVER_H
/**
* struct usb_xhci_pdata - platform_data for generic xhci platform driver
*
* @usb3_lpm_capable: determines if this xhci platform supports USB3
* LPM capability
*
* @imod_interval: minimum inter-interrupt interval. Specified in
* 250nsec increments.
*
*/
struct usb_xhci_pdata {
unsigned usb3_lpm_capable:1;
unsigned imod_interval;
};
#endif /* __USB_CORE_XHCI_PDRIVER_H */