Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
[firefly-linux-kernel-4.4.55.git] / drivers / net / usb / qcusbnet / qmidevice.h
1 /* qmidevice.h - gobi QMI device header
2  * Copyright (c) 2010, Code Aurora Forum. All rights reserved.
3
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 and
6  * only version 2 as published by the Free Software Foundation.
7
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16  * 02110-1301, USA.
17  */
18
19 #ifndef QCUSBNET_QMIDEVICE_H
20 #define QCUSBNET_QMIDEVICE_H
21
22 #include "structs.h"
23 #include "qmi.h"
24
25 void qc_setdown(struct qcusbnet *dev, u8 reason);
26 void qc_cleardown(struct qcusbnet *dev, u8 reason);
27 bool qc_isdown(struct qcusbnet *dev, u8 reason);
28
29 int qc_startread(struct qcusbnet *dev);
30 void qc_stopread(struct qcusbnet *dev);
31
32 int qc_register(struct qcusbnet *dev);
33 void qc_deregister(struct qcusbnet *dev);
34
35 #endif /* !QCUSBNET_QMIDEVICE_H */