cb8893db87
This snapshot is taken as of msm-4.4 commit <e2787f510d> Merge "ARM: dts: msm: change UFS/SDHC2 power supply for msmcobalt interposer QRD" Remove references to SMD and fix code style warnings and errors. CRs-Fixed: 1092890 Change-Id: Id5903c391446c8f908a4efc0651df08e3c302d1a Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org> Signed-off-by: Chris Lew <clew@codeaurora.org>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/* Copyright (c) 2012-2014, 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 DIAGFWD_HSIC_H
|
|
#define DIAGFWD_HSIC_H
|
|
#ifdef CONFIG_DIAG_OVER_USB
|
|
#include <linux/usb/usbdiag.h>
|
|
#endif
|
|
#include <linux/usb/diag_bridge.h>
|
|
|
|
#define HSIC_1 0
|
|
#define HSIC_2 1
|
|
#define NUM_HSIC_DEV 2
|
|
|
|
#define DIAG_HSIC_NAME_SZ 24
|
|
|
|
struct diag_hsic_info {
|
|
int id;
|
|
int dev_id;
|
|
int mempool;
|
|
uint8_t opened;
|
|
uint8_t enabled;
|
|
uint8_t suspended;
|
|
char name[DIAG_HSIC_NAME_SZ];
|
|
struct work_struct read_work;
|
|
struct work_struct open_work;
|
|
struct work_struct close_work;
|
|
struct workqueue_struct *hsic_wq;
|
|
spinlock_t lock;
|
|
};
|
|
|
|
extern struct diag_hsic_info diag_hsic[NUM_HSIC_DEV];
|
|
|
|
int diag_hsic_init(void);
|
|
void diag_hsic_exit(void);
|
|
|
|
#endif
|
|
|