mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-29 00:00:25 +02:00
HBM is a new HW unit which transfers USB bulk data packets in BAM to BAM mode between the USB BAM and a peer BAM in USB host mode. This ability reduces the SW interfere in host mode for data packets transmission. This is done by the HBM HW which generates "infinite" USB (bulk) transfers against the USB core. This change adds the HBM SW driver. Change-Id: I63febd699b1edca71a56a2d7d2b41f25d5e48447 Signed-off-by: Shimrit Malichi <smalichi@codeaurora.org>
33 lines
935 B
C
33 lines
935 B
C
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only 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 __HBM_H
|
|
#define __HBM_H
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
/**
|
|
* usb_host_bam_type
|
|
* @pipe_num: usb bam pipe number
|
|
* @dir: direction (to/from usb bam)
|
|
*/
|
|
struct usb_host_bam_type {
|
|
u32 pipe_num;
|
|
u32 dir;
|
|
};
|
|
|
|
int set_disable_park_mode(u8 pipe_num, bool disable_park_mode);
|
|
int set_disable_zlt(u8 pipe_num, bool disable_zlt);
|
|
int hbm_pipe_init(u32 QH_addr, u32 pipe_num, bool is_consumer);
|
|
|
|
#endif
|