/* Copyright (c) 2015 Broadcom All Rights Reserved <:label-BRCM:2015:DUAL/GPL:standard Unless you and Broadcom execute a separate written software license agreement governing use of this software, this software is licensed to you under the terms of the GNU General Public License version 2 (the "GPL"), available at http://www.broadcom.com/licenses/GPLv2.php, with the following added to such license: As a special exception, the copyright holders of this software give you permission to link this software with independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from this software. The special exception does not apply to any modifications of the software. Not withstanding the above, under no circumstances may you combine this software in any way with any other Broadcom software provided under a license other than the GPL, without Broadcom's express prior written consent. :> */ #ifndef _XRDP_DRV_NATC_CTRS_AG_H_ #define _XRDP_DRV_NATC_CTRS_AG_H_ #include "access_macros.h" #include "bdmf_interface.h" #ifdef USE_BDMF_SHELL #include "bdmf_shell.h" #endif #include "rdp_common.h" /**************************************************************************************************/ /* cache_hit_count: - 32-bit cache hit count value. */ /* cache_miss_count: - 32-bit cache miss count value. */ /* ddr_request_count: - 32-bit ddr request count value. */ /* ddr_evict_count: - 32-bit ddr evict count value. */ /* ddr_block_count: - 32-bit ddr blocked access count value. */ /**************************************************************************************************/ typedef struct { uint32_t cache_hit_count; uint32_t cache_miss_count; uint32_t ddr_request_count; uint32_t ddr_evict_count; uint32_t ddr_block_count; } natc_ctrs_natc_ctrs; bdmf_error_t ag_drv_natc_ctrs_natc_ctrs_set(uint8_t tbl_idx, const natc_ctrs_natc_ctrs *natc_ctrs); bdmf_error_t ag_drv_natc_ctrs_natc_ctrs_get(uint8_t tbl_idx, natc_ctrs_natc_ctrs *natc_ctrs); #ifdef USE_BDMF_SHELL enum { cli_natc_ctrs_natc_ctrs, }; int bcm_natc_ctrs_cli_get(bdmf_session_handle session, const bdmfmon_cmd_parm_t parm[], uint16_t n_parms); bdmfmon_handle_t ag_drv_natc_ctrs_cli_init(bdmfmon_handle_t driver_dir); #endif #endif