1135642Scognet/*- 2135642Scognet * Copyright (c) 2017 Broadcom. All rights reserved. 3139735Simp * The term "Broadcom" refers to Broadcom Limited and/or its subsidiaries. 4135642Scognet * 5135642Scognet * Redistribution and use in source and binary forms, with or without 6135642Scognet * modification, are permitted provided that the following conditions are met: 7135642Scognet * 8135642Scognet * 1. Redistributions of source code must retain the above copyright notice, 9135642Scognet * this list of conditions and the following disclaimer. 10135642Scognet * 11135642Scognet * 2. Redistributions in binary form must reproduce the above copyright notice, 12135642Scognet * this list of conditions and the following disclaimer in the documentation 13135642Scognet * and/or other materials provided with the distribution. 14135642Scognet * 15135642Scognet * 3. Neither the name of the copyright holder nor the names of its contributors 16135642Scognet * may be used to endorse or promote products derived from this software 17135642Scognet * without specific prior written permission. 18135642Scognet * 19135642Scognet * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20135642Scognet * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21135642Scognet * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22135642Scognet * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 23135642Scognet * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24135642Scognet * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25135642Scognet * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26135642Scognet * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27135642Scognet * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28135642Scognet * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29135642Scognet * POSSIBILITY OF SUCH DAMAGE. 30135642Scognet * 31135642Scognet * $FreeBSD: stable/11/sys/dev/ocs_fc/ocs_stats.h 331766 2018-03-30 15:28:25Z ken $ 32135642Scognet */ 33135642Scognet 34135642Scognet/** 35135642Scognet * @file 36135642Scognet * 37135642Scognet */ 38135642Scognet 39135642Scognet 40175982Sraj#if !defined(__OCS_STATS_H__) 41175982Sraj#define __OCS_STATS_H__ 42175982Sraj 43175982Sraj#define OCS_STAT_ENABLE 0 44175982Sraj#if OCS_STAT_ENABLE 45188540Scognet #define OCS_STAT(x) x 46188540Scognet#else 47188540Scognet #define OCS_STAT(x) 48175982Sraj#endif 49175982Sraj#endif 50175982Sraj