blob: 97b9c4099141c10526a3375559dbbda771953e39 [file] [log] [blame]
/* Copyright (c) 2017, 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 _QDSS_BRIDGE_H
#define _QDSS_BRIDGE_H
struct qdss_buf_tbl_lst {
struct list_head link;
unsigned char *buf;
struct qdss_request *usb_req;
atomic_t available;
};
struct qdss_bridge_drvdata {
struct device *dev;
bool opened;
struct work_struct read_work;
struct work_struct read_done_work;
struct work_struct open_work;
struct work_struct close_work;
struct workqueue_struct *mhi_wq;
struct mhi_client_handle *hdl;
struct mhi_client_info_t *client_info;
struct list_head buf_tbl;
struct usb_qdss_ch *usb_ch;
};
#endif