blob: 9aa3153decaa2e38bb40462b268935a4b341ff68 (
plain)
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
|
/*
* Copyright (C) 2016 Samsung Electronics Co. Ltd.
*
* 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.
*/
/* usb notify layer v2.0 */
#ifndef __LINUX_USBLOG_PROC_NOTIFY_H__
#define __LINUX_USBLOG_PROC_NOTIFY_H__
enum usblog_type {
NOTIFY_USBSTATE,
NOTIFY_USBMODE,
NOTIFY_EVENT,
};
enum usblog_state {
NOTIFY_CONFIGURED = 1,
NOTIFY_CONNECTED,
NOTIFY_DISCONNECTED,
NOTIFY_RESET,
NOTIFY_ACCSTART,
};
#ifdef CONFIG_USB_NOTIFY_PROC_LOG
extern void store_usblog_notify(int type, void *param1, void *parma2);
extern int register_usblog_proc(void);
extern void unregister_usblog_proc(void);
#else
static inline void store_usblog_notify(int type, void *param1,
void *parma2) {}
static inline int register_usblog_proc(void)
{return 0; }
static inline void unregister_usblog_proc(void) {}
#endif
#endif
|