ocrdma_stats.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*******************************************************************
  2. * This file is part of the Emulex RoCE Device Driver for *
  3. * RoCE (RDMA over Converged Ethernet) adapters. *
  4. * Copyright (C) 2008-2014 Emulex. All rights reserved. *
  5. * EMULEX and SLI are trademarks of Emulex. *
  6. * www.emulex.com *
  7. * *
  8. * This program is free software; you can redistribute it and/or *
  9. * modify it under the terms of version 2 of the GNU General *
  10. * Public License as published by the Free Software Foundation. *
  11. * This program is distributed in the hope that it will be useful. *
  12. * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
  13. * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
  14. * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
  15. * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
  16. * TO BE LEGALLY INVALID. See the GNU General Public License for *
  17. * more details, a copy of which can be found in the file COPYING *
  18. * included with this package. *
  19. *
  20. * Contact Information:
  21. * linux-drivers@emulex.com
  22. *
  23. * Emulex
  24. * 3333 Susan Street
  25. * Costa Mesa, CA 92626
  26. *******************************************************************/
  27. #ifndef __OCRDMA_STATS_H__
  28. #define __OCRDMA_STATS_H__
  29. #include <linux/debugfs.h>
  30. #include "ocrdma.h"
  31. #include "ocrdma_hw.h"
  32. #define OCRDMA_MAX_DBGFS_MEM 4096
  33. enum OCRDMA_STATS_TYPE {
  34. OCRDMA_RSRC_STATS,
  35. OCRDMA_RXSTATS,
  36. OCRDMA_WQESTATS,
  37. OCRDMA_TXSTATS,
  38. OCRDMA_DB_ERRSTATS,
  39. OCRDMA_RXQP_ERRSTATS,
  40. OCRDMA_TXQP_ERRSTATS,
  41. OCRDMA_TX_DBG_STATS,
  42. OCRDMA_RX_DBG_STATS,
  43. OCRDMA_DRV_STATS,
  44. OCRDMA_RESET_STATS
  45. };
  46. void ocrdma_rem_debugfs(void);
  47. void ocrdma_init_debugfs(void);
  48. void ocrdma_rem_port_stats(struct ocrdma_dev *dev);
  49. void ocrdma_add_port_stats(struct ocrdma_dev *dev);
  50. int ocrdma_pma_counters(struct ocrdma_dev *dev,
  51. struct ib_mad *out_mad);
  52. #endif /* __OCRDMA_STATS_H__ */