18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Broadcom NetXtreme-E RoCE driver. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (c) 2016 - 2017, Broadcom. All rights reserved. The term 58c2ecf20Sopenharmony_ci * Broadcom refers to Broadcom Limited and/or its subsidiaries. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * This software is available to you under a choice of one of two 88c2ecf20Sopenharmony_ci * licenses. You may choose to be licensed under the terms of the GNU 98c2ecf20Sopenharmony_ci * General Public License (GPL) Version 2, available from the file 108c2ecf20Sopenharmony_ci * COPYING in the main directory of this source tree, or the 118c2ecf20Sopenharmony_ci * BSD license below: 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 148c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions 158c2ecf20Sopenharmony_ci * are met: 168c2ecf20Sopenharmony_ci * 178c2ecf20Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright 188c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 198c2ecf20Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright 208c2ecf20Sopenharmony_ci * notice, this list of conditions and the following disclaimer in 218c2ecf20Sopenharmony_ci * the documentation and/or other materials provided with the 228c2ecf20Sopenharmony_ci * distribution. 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' 258c2ecf20Sopenharmony_ci * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 268c2ecf20Sopenharmony_ci * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 278c2ecf20Sopenharmony_ci * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS 288c2ecf20Sopenharmony_ci * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 298c2ecf20Sopenharmony_ci * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 308c2ecf20Sopenharmony_ci * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 318c2ecf20Sopenharmony_ci * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 328c2ecf20Sopenharmony_ci * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 338c2ecf20Sopenharmony_ci * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 348c2ecf20Sopenharmony_ci * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 358c2ecf20Sopenharmony_ci * 368c2ecf20Sopenharmony_ci * Description: Statistics (header) 378c2ecf20Sopenharmony_ci * 388c2ecf20Sopenharmony_ci */ 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#ifndef __BNXT_RE_HW_STATS_H__ 418c2ecf20Sopenharmony_ci#define __BNXT_RE_HW_STATS_H__ 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_cienum bnxt_re_hw_stats { 448c2ecf20Sopenharmony_ci BNXT_RE_ACTIVE_QP, 458c2ecf20Sopenharmony_ci BNXT_RE_ACTIVE_SRQ, 468c2ecf20Sopenharmony_ci BNXT_RE_ACTIVE_CQ, 478c2ecf20Sopenharmony_ci BNXT_RE_ACTIVE_MR, 488c2ecf20Sopenharmony_ci BNXT_RE_ACTIVE_MW, 498c2ecf20Sopenharmony_ci BNXT_RE_RX_PKTS, 508c2ecf20Sopenharmony_ci BNXT_RE_RX_BYTES, 518c2ecf20Sopenharmony_ci BNXT_RE_TX_PKTS, 528c2ecf20Sopenharmony_ci BNXT_RE_TX_BYTES, 538c2ecf20Sopenharmony_ci BNXT_RE_RECOVERABLE_ERRORS, 548c2ecf20Sopenharmony_ci BNXT_RE_RX_DROPS, 558c2ecf20Sopenharmony_ci BNXT_RE_RX_DISCARDS, 568c2ecf20Sopenharmony_ci BNXT_RE_TO_RETRANSMITS, 578c2ecf20Sopenharmony_ci BNXT_RE_SEQ_ERR_NAKS_RCVD, 588c2ecf20Sopenharmony_ci BNXT_RE_MAX_RETRY_EXCEEDED, 598c2ecf20Sopenharmony_ci BNXT_RE_RNR_NAKS_RCVD, 608c2ecf20Sopenharmony_ci BNXT_RE_MISSING_RESP, 618c2ecf20Sopenharmony_ci BNXT_RE_UNRECOVERABLE_ERR, 628c2ecf20Sopenharmony_ci BNXT_RE_BAD_RESP_ERR, 638c2ecf20Sopenharmony_ci BNXT_RE_LOCAL_QP_OP_ERR, 648c2ecf20Sopenharmony_ci BNXT_RE_LOCAL_PROTECTION_ERR, 658c2ecf20Sopenharmony_ci BNXT_RE_MEM_MGMT_OP_ERR, 668c2ecf20Sopenharmony_ci BNXT_RE_REMOTE_INVALID_REQ_ERR, 678c2ecf20Sopenharmony_ci BNXT_RE_REMOTE_ACCESS_ERR, 688c2ecf20Sopenharmony_ci BNXT_RE_REMOTE_OP_ERR, 698c2ecf20Sopenharmony_ci BNXT_RE_DUP_REQ, 708c2ecf20Sopenharmony_ci BNXT_RE_RES_EXCEED_MAX, 718c2ecf20Sopenharmony_ci BNXT_RE_RES_LENGTH_MISMATCH, 728c2ecf20Sopenharmony_ci BNXT_RE_RES_EXCEEDS_WQE, 738c2ecf20Sopenharmony_ci BNXT_RE_RES_OPCODE_ERR, 748c2ecf20Sopenharmony_ci BNXT_RE_RES_RX_INVALID_RKEY, 758c2ecf20Sopenharmony_ci BNXT_RE_RES_RX_DOMAIN_ERR, 768c2ecf20Sopenharmony_ci BNXT_RE_RES_RX_NO_PERM, 778c2ecf20Sopenharmony_ci BNXT_RE_RES_RX_RANGE_ERR, 788c2ecf20Sopenharmony_ci BNXT_RE_RES_TX_INVALID_RKEY, 798c2ecf20Sopenharmony_ci BNXT_RE_RES_TX_DOMAIN_ERR, 808c2ecf20Sopenharmony_ci BNXT_RE_RES_TX_NO_PERM, 818c2ecf20Sopenharmony_ci BNXT_RE_RES_TX_RANGE_ERR, 828c2ecf20Sopenharmony_ci BNXT_RE_RES_IRRQ_OFLOW, 838c2ecf20Sopenharmony_ci BNXT_RE_RES_UNSUP_OPCODE, 848c2ecf20Sopenharmony_ci BNXT_RE_RES_UNALIGNED_ATOMIC, 858c2ecf20Sopenharmony_ci BNXT_RE_RES_REM_INV_ERR, 868c2ecf20Sopenharmony_ci BNXT_RE_RES_MEM_ERROR, 878c2ecf20Sopenharmony_ci BNXT_RE_RES_SRQ_ERR, 888c2ecf20Sopenharmony_ci BNXT_RE_RES_CMP_ERR, 898c2ecf20Sopenharmony_ci BNXT_RE_RES_INVALID_DUP_RKEY, 908c2ecf20Sopenharmony_ci BNXT_RE_RES_WQE_FORMAT_ERR, 918c2ecf20Sopenharmony_ci BNXT_RE_RES_CQ_LOAD_ERR, 928c2ecf20Sopenharmony_ci BNXT_RE_RES_SRQ_LOAD_ERR, 938c2ecf20Sopenharmony_ci BNXT_RE_RES_TX_PCI_ERR, 948c2ecf20Sopenharmony_ci BNXT_RE_RES_RX_PCI_ERR, 958c2ecf20Sopenharmony_ci BNXT_RE_OUT_OF_SEQ_ERR, 968c2ecf20Sopenharmony_ci BNXT_RE_NUM_COUNTERS 978c2ecf20Sopenharmony_ci}; 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_cistruct rdma_hw_stats *bnxt_re_ib_alloc_hw_stats(struct ib_device *ibdev, 1008c2ecf20Sopenharmony_ci u8 port_num); 1018c2ecf20Sopenharmony_ciint bnxt_re_ib_get_hw_stats(struct ib_device *ibdev, 1028c2ecf20Sopenharmony_ci struct rdma_hw_stats *stats, 1038c2ecf20Sopenharmony_ci u8 port, int index); 1048c2ecf20Sopenharmony_ci#endif /* __BNXT_RE_HW_STATS_H__ */ 105