mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
65
include/linux/external_notify.h
Executable file
65
include/linux/external_notify.h
Executable file
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* include/linux/external_notify.h
|
||||
*
|
||||
* header file supporting usb notify layer
|
||||
* external notify call chain information
|
||||
*
|
||||
* Copyright (C) 2016 Samsung Electronics
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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 GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
|
||||
/* usb notify layer v2.0 */
|
||||
|
||||
#ifndef __EXTERNAL_NOTIFY_H__
|
||||
#define __EXTERNAL_NOTIFY_H__
|
||||
|
||||
#include <linux/notifier.h>
|
||||
|
||||
/* external notifier call chain command */
|
||||
enum external_notify_cmd {
|
||||
EXTERNAL_NOTIFY_3S_NODEVICE = 1,
|
||||
EXTERNAL_NOTIFY_DEVICE_CONNECT,
|
||||
};
|
||||
|
||||
/* external notifier call sequence,
|
||||
* largest priority number device will be called first. */
|
||||
enum external_notify_device {
|
||||
EXTERNAL_NOTIFY_DEV_MUIC,
|
||||
EXTERNAL_NOTIFY_DEV_CHARGER,
|
||||
};
|
||||
|
||||
enum external_notify_condev {
|
||||
EXTERNAL_NOTIFY_NONE = 0,
|
||||
EXTERNAL_NOTIFY_GPAD,
|
||||
EXTERNAL_NOTIFY_LANHUB,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_USB_EXTERNAL_NOTIFY
|
||||
extern int send_external_notify(unsigned long cmd, int data);
|
||||
extern int usb_external_notify_register(struct notifier_block *nb,
|
||||
notifier_fn_t notifier, int listener);
|
||||
extern int usb_external_notify_unregister(struct notifier_block *nb);
|
||||
#else
|
||||
static inline int send_external_notify(unsigned long cmd,
|
||||
int data) {return 0; }
|
||||
static inline int usb_external_notify_register(struct notifier_block *nb,
|
||||
notifier_fn_t notifier, int listener) {return 0; }
|
||||
static inline int usb_external_notify_unregister(struct notifier_block *nb)
|
||||
{return 0; }
|
||||
#endif
|
||||
|
||||
#endif /* __EXTERNAL_NOTIFY_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue