Linux 3.9-rc4
[linux-2.6/cjktty.git] / drivers / usb / chipidea / debug.h
blob80d96865775c6e3b3bb28be933baa12e610e11eb
1 /*
2 * debug.h - ChipIdea USB driver debug interfaces
4 * Copyright (C) 2008 Chipidea - MIPS Technologies, Inc. All rights reserved.
6 * Author: David Lopo
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.
13 #ifndef __DRIVERS_USB_CHIPIDEA_DEBUG_H
14 #define __DRIVERS_USB_CHIPIDEA_DEBUG_H
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)
29 static inline void dbg_done(u8 addr, const u32 token, int status)
33 static inline void dbg_event(u8 addr, const char *name, int status)
37 static inline void dbg_queue(u8 addr, const struct usb_request *req, int status)
41 static inline void dbg_setup(u8 addr, const struct usb_ctrlrequest *req)
45 static inline int dbg_create_files(struct device *dev)
47 return 0;
50 static inline int dbg_remove_files(struct device *dev)
52 return 0;
54 #endif
56 #endif /* __DRIVERS_USB_CHIPIDEA_DEBUG_H */