Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
0004  */
0005 
0006 #ifndef _CORESIGHT_ETM4X_CFG_H
0007 #define _CORESIGHT_ETM4X_CFG_H
0008 
0009 #include "coresight-config.h"
0010 #include "coresight-etm4x.h"
0011 
0012 /* ETMv4 specific config defines */
0013 
0014 /* resource IDs */
0015 
0016 #define ETM4_CFG_RES_CTR    0x001
0017 #define ETM4_CFG_RES_CMP    0x002
0018 #define ETM4_CFG_RES_CMP_PAIR0  0x003
0019 #define ETM4_CFG_RES_CMP_PAIR1  0x004
0020 #define ETM4_CFG_RES_SEL    0x005
0021 #define ETM4_CFG_RES_SEL_PAIR0  0x006
0022 #define ETM4_CFG_RES_SEL_PAIR1  0x007
0023 #define ETM4_CFG_RES_SEQ    0x008
0024 #define ETM4_CFG_RES_TS     0x009
0025 #define ETM4_CFG_RES_MASK   0x00F
0026 
0027 /* ETMv4 specific config functions */
0028 int etm4_cscfg_register(struct coresight_device *csdev);
0029 
0030 #endif /* CORESIGHT_ETM4X_CFG_H */