1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates. 4 * All rights reserved. 5 */ 6 7 #ifndef M00460_EVCNT_MEMMAP_PACKAGE_H 8 #define M00460_EVCNT_MEMMAP_PACKAGE_H 9 10 /******************************************************************* 11 * Register Block 12 * M00460_EVCNT_MEMMAP_PACKAGE_VHD_REGMAP 13 *******************************************************************/ 14 struct m00460_evcnt_regmap { 15 uint32_t control; /* Reg 0x0000, Default=0x0 */ 16 uint32_t count; /* Reg 0x0004 */ 17 }; 18 19 #define M00460_EVCNT_REG_CONTROL_OFST 0 20 #define M00460_EVCNT_REG_COUNT_OFST 4 21 22 /******************************************************************* 23 * Bit Mask for register 24 * M00460_EVCNT_MEMMAP_PACKAGE_VHD_BITMAP 25 *******************************************************************/ 26 /* control [1:0] */ 27 #define M00460_CONTROL_BITMAP_ENABLE_OFST (0) 28 #define M00460_CONTROL_BITMAP_ENABLE_MSK (0x1 << M00460_CONTROL_BITMAP_ENABLE_OFST) 29 #define M00460_CONTROL_BITMAP_CLEAR_OFST (1) 30 #define M00460_CONTROL_BITMAP_CLEAR_MSK (0x1 << M00460_CONTROL_BITMAP_CLEAR_OFST) 31 32 #endif /*M00460_EVCNT_MEMMAP_PACKAGE_H*/ 33