/
usb_moded-modes.h
63 lines (57 loc) · 2.42 KB
/
usb_moded-modes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Copyright (C) 2010 Nokia Corporation. All rights reserved.
* Copyright (C) 2013-2018 Jolla Ltd.
*
* Author: Philippe De Swert <philippe.de-swert@nokia.com>
* Author: Philippe De Swert <philippedeswert@gmail.com>
* Author: Philippe De Swert <philippe.deswert@jollamobile.com>
* Author: Thomas Perl <m@thp.io>
* Author: Martin Jones <martin.jones@jollamobile.com>
* Author: Andrew den Exter <andrew.den.exter@jolla.com>
* Author: Simo Piiroinen <simo.piiroinen@jollamobile.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Lesser 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.
*
* You should have received a copy of the Lesser GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef USB_MODED_MODES_H_
# define USB_MODED_MODES_H_
/* ========================================================================= *
* Constants
* ========================================================================= */
/* possible values for the mode
* the first two are internal only.
*/
# define MODE_UNDEFINED "undefined"
# define MODE_ASK "ask"
# define MODE_MASS_STORAGE "mass_storage"
# define MODE_DEVELOPER "developer_mode"
# define MODE_MTP "mtp_mode"
# define MODE_HOST "host_mode"
# define MODE_CONNECTION_SHARING "connection_sharing"
# define MODE_DIAG "diag_mode"
# define MODE_ADB "adb_mode"
# define MODE_PC_SUITE "pc_suite"
# define MODE_CHARGING "charging_only"
# define MODE_BUSY "busy"
/**
*
* MODE_CHARGING : user manually selected charging mode
* MODE_CHARGING_FALLBACK : mode selection is not done by the user so we fallback to a charging mode to get some power
* MODE_CHARGER : there is a dedicated charger connected to the USB port
*
* the two last ones cannot be set and are not full modes
**/
# define MODE_CHARGING_FALLBACK "charging_only_fallback"
# define MODE_CHARGER "dedicated_charger"
#endif /* USB_MODED_MODES_H_ */