Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
debug.h
Go to the documentation of this file.
1 /*
2  * debug.h - ChipIdea USB driver debug interfaces
3  *
4  * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
5  *
6  * Author: David Lopo
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12 
13 #ifndef __DRIVERS_USB_CHIPIDEA_DEBUG_H
14 #define __DRIVERS_USB_CHIPIDEA_DEBUG_H
15 
16 #ifdef CONFIG_USB_CHIPIDEA_DEBUG
17 void dbg_interrupt(u32 intmask);
18 void dbg_done(u8 addr, const u32 token, int status);
19 void dbg_event(u8 addr, const char *name, int status);
20 void dbg_queue(u8 addr, const struct usb_request *req, int status);
21 void dbg_setup(u8 addr, const struct usb_ctrlrequest *req);
22 int dbg_create_files(struct device *dev);
23 int dbg_remove_files(struct device *dev);
24 #else
25 static inline void dbg_interrupt(u32 intmask)
26 {
27 }
28 
29 static inline void dbg_done(u8 addr, const u32 token, int status)
30 {
31 }
32 
33 static inline void dbg_event(u8 addr, const char *name, int status)
34 {
35 }
36 
37 static inline void dbg_queue(u8 addr, const struct usb_request *req, int status)
38 {
39 }
40 
41 static inline void dbg_setup(u8 addr, const struct usb_ctrlrequest *req)
42 {
43 }
44 
45 static inline int dbg_create_files(struct device *dev)
46 {
47  return 0;
48 }
49 
50 static inline int dbg_remove_files(struct device *dev)
51 {
52  return 0;
53 }
54 #endif
55 
56 #endif /* __DRIVERS_USB_CHIPIDEA_DEBUG_H */