1 /* 2 * Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates. 3 * All rights reserved. 4 * 5 * This program is free software; you may redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 10 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 11 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 12 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 13 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 14 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 15 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 16 * SOFTWARE. 17 */ 18 19 #ifndef M00460_EVCNT_MEMMAP_PACKAGE_H 20 #define M00460_EVCNT_MEMMAP_PACKAGE_H 21 22 /******************************************************************* 23 * Register Block 24 * M00460_EVCNT_MEMMAP_PACKAGE_VHD_REGMAP 25 *******************************************************************/ 26 struct m00460_evcnt_regmap { 27 uint32_t control; /* Reg 0x0000, Default=0x0 */ 28 uint32_t count; /* Reg 0x0004 */ 29 }; 30 31 #define M00460_EVCNT_REG_CONTROL_OFST 0 32 #define M00460_EVCNT_REG_COUNT_OFST 4 33 34 /******************************************************************* 35 * Bit Mask for register 36 * M00460_EVCNT_MEMMAP_PACKAGE_VHD_BITMAP 37 *******************************************************************/ 38 /* control [1:0] */ 39 #define M00460_CONTROL_BITMAP_ENABLE_OFST (0) 40 #define M00460_CONTROL_BITMAP_ENABLE_MSK (0x1 << M00460_CONTROL_BITMAP_ENABLE_OFST) 41 #define M00460_CONTROL_BITMAP_CLEAR_OFST (1) 42 #define M00460_CONTROL_BITMAP_CLEAR_MSK (0x1 << M00460_CONTROL_BITMAP_CLEAR_OFST) 43 44 #endif /*M00460_EVCNT_MEMMAP_PACKAGE_H*/ 45