/* * Copyright (C) 2010 Nokia Corporation. All rights reserved. * Copyright (C) 2013-2018 Jolla Ltd. * * Author: Philippe De Swert * Author: Philippe De Swert * Author: Philippe De Swert * Author: Thomas Perl * Author: Martin Jones * Author: Andrew den Exter * Author: Simo Piiroinen * * 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" /** * * 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_ */