debugfs.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * iwmc3200top - Intel Wireless MultiCom 3200 Top Driver
  3. * drivers/misc/iwmc3200top/debufs.h
  4. *
  5. * Copyright (C) 2009 Intel Corporation. All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License version
  9. * 2 as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. * 02110-1301, USA.
  20. *
  21. *
  22. * Author Name: Maxim Grabarnik <maxim.grabarnink@intel.com>
  23. * -
  24. *
  25. */
  26. #ifndef __DEBUGFS_H__
  27. #define __DEBUGFS_H__
  28. #ifdef CONFIG_IWMC3200TOP_DEBUGFS
  29. struct iwmct_debugfs {
  30. const char *name;
  31. struct dentry *dir_drv;
  32. struct dir_drv_files {
  33. } dbgfs_drv_files;
  34. };
  35. void iwmct_dbgfs_register(struct iwmct_priv *priv, const char *name);
  36. void iwmct_dbgfs_unregister(struct iwmct_debugfs *dbgfs);
  37. #else /* CONFIG_IWMC3200TOP_DEBUGFS */
  38. struct iwmct_debugfs;
  39. static inline void
  40. iwmct_dbgfs_register(struct iwmct_priv *priv, const char *name)
  41. {}
  42. static inline void
  43. iwmct_dbgfs_unregister(struct iwmct_debugfs *dbgfs)
  44. {}
  45. #endif /* CONFIG_IWMC3200TOP_DEBUGFS */
  46. #endif /* __DEBUGFS_H__ */