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