Commit 7e8070eb authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Miguel Jimenez Lopez

kernel/wr_pstats: requires updated HDL, create info file in sysfs

File provides information about pstats version, number of counters per word
stored in memory and number of counters per each port.
parent 1ea4cf7b
/*
Register definitions for slave core: WR Switch Per-Port Statistic Counters
* File : pstats_regs.h
* File : pstats-regs.h
* Author : auto-generated by wbgen2 from wrsw_pstats.wb
* Created : Tue Feb 26 09:43:21 2013
* Created : Tue Jun 24 16:21:37 2014
* Standard : ANSI C
THIS FILE WAS GENERATED BY wbgen2 FROM SOURCE FILE wrsw_pstats.wb
......@@ -59,37 +59,25 @@
/* definitions for register: L2 Counter Value */
/* definitions for register: Debug register */
/* definitions for register: PSTATS info register */
/* definitions for field: Events overflow in reg: Debug register */
#define PSTATS_DBG_EVT_OV_MASK WBGEN2_GEN_MASK(0, 8)
#define PSTATS_DBG_EVT_OV_SHIFT 0
#define PSTATS_DBG_EVT_OV_W(value) WBGEN2_GEN_WRITE(value, 0, 8)
#define PSTATS_DBG_EVT_OV_R(reg) WBGEN2_GEN_READ(reg, 0, 8)
/* definitions for field: Version in reg: PSTATS info register */
#define PSTATS_INFO_VER_MASK WBGEN2_GEN_MASK(0, 8)
#define PSTATS_INFO_VER_SHIFT 0
#define PSTATS_INFO_VER_W(value) WBGEN2_GEN_WRITE(value, 0, 8)
#define PSTATS_INFO_VER_R(reg) WBGEN2_GEN_READ(reg, 0, 8)
/* definitions for field: Counters overflow in reg: Debug register */
#define PSTATS_DBG_CNT_OV_MASK WBGEN2_GEN_MASK(8, 8)
#define PSTATS_DBG_CNT_OV_SHIFT 8
#define PSTATS_DBG_CNT_OV_W(value) WBGEN2_GEN_WRITE(value, 8, 8)
#define PSTATS_DBG_CNT_OV_R(reg) WBGEN2_GEN_READ(reg, 8, 8)
/* definitions for field: Counters per word in reg: PSTATS info register */
#define PSTATS_INFO_CPW_MASK WBGEN2_GEN_MASK(8, 8)
#define PSTATS_INFO_CPW_SHIFT 8
#define PSTATS_INFO_CPW_W(value) WBGEN2_GEN_WRITE(value, 8, 8)
#define PSTATS_INFO_CPW_R(reg) WBGEN2_GEN_READ(reg, 8, 8)
/* definitions for field: L2 Events overflow in reg: Debug register */
#define PSTATS_DBG_L2_EVT_OV_MASK WBGEN2_GEN_MASK(16, 1)
#define PSTATS_DBG_L2_EVT_OV_SHIFT 16
#define PSTATS_DBG_L2_EVT_OV_W(value) WBGEN2_GEN_WRITE(value, 16, 1)
#define PSTATS_DBG_L2_EVT_OV_R(reg) WBGEN2_GEN_READ(reg, 16, 1)
/* definitions for field: L2 Counters overflow in reg: Debug register */
#define PSTATS_DBG_L2_CNT_OV_MASK WBGEN2_GEN_MASK(17, 1)
#define PSTATS_DBG_L2_CNT_OV_SHIFT 17
#define PSTATS_DBG_L2_CNT_OV_W(value) WBGEN2_GEN_WRITE(value, 17, 1)
#define PSTATS_DBG_L2_CNT_OV_R(reg) WBGEN2_GEN_READ(reg, 17, 1)
/* definitions for field: L2 Clear flags in reg: Debug register */
#define PSTATS_DBG_L2_CLR WBGEN2_GEN_MASK(30, 1)
/* definitions for field: Clear flags in reg: Debug register */
#define PSTATS_DBG_CLR WBGEN2_GEN_MASK(31, 1)
/* definitions for field: Counters per port in reg: PSTATS info register */
#define PSTATS_INFO_CPP_MASK WBGEN2_GEN_MASK(16, 16)
#define PSTATS_INFO_CPP_SHIFT 16
#define PSTATS_INFO_CPP_W(value) WBGEN2_GEN_WRITE(value, 16, 16)
#define PSTATS_INFO_CPP_R(reg) WBGEN2_GEN_READ(reg, 16, 16)
/* definitions for register: Interrupt disable register */
......@@ -322,8 +310,8 @@ PACKED struct PSTATS_WB {
uint32_t L1_CNT_VAL;
/* [0x8]: REG L2 Counter Value */
uint32_t L2_CNT_VAL;
/* [0xc]: REG Debug register */
uint32_t DBG;
/* [0xc]: REG PSTATS info register */
uint32_t INFO;
/* padding to: 8 words */
uint32_t __padding_0[4];
/* [0x20]: REG Interrupt disable register */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment