[linux-yocto] [PATCH 105/161] LSI AXM55xx rapidio? Fixed offset of RAB_OBDSE_XX registers
Cristian Bercaru
cristian.bercaru at windriver.com
Thu May 21 12:21:27 PDT 2015
From: ningligong <ning.li at lsi.com>
The register base for the RAB was wrong changed from
0x10 to 0xC
Added the IB_VIRT stats SLEEPING and TRAN_PENDING
Signed-off-by: ningligong <ning.li at lsi.com>
---
drivers/rapidio/devices/lsi/axxia-rio-ds.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/rapidio/devices/lsi/axxia-rio-ds.h b/drivers/rapidio/devices/lsi/axxia-rio-ds.h
index 5c0d263..25633c0 100755
--- a/drivers/rapidio/devices/lsi/axxia-rio-ds.h
+++ b/drivers/rapidio/devices/lsi/axxia-rio-ds.h
@@ -73,9 +73,9 @@
#define IB_VSID_M_PREFETCH_ENABLE (2)
#define IB_VSID_M_PREFETCH_WAKEUP (4)
-#define RAB_OBDSE_CTRL(n) (RAB_REG_BASE + (0x2d28 + (0x10*(n))))
-#define RAB_OBDSE_STAT(n) (RAB_REG_BASE + (0x2d28 + (0x10*(n)))+0x4)
-#define RAB_OBDSE_DESC_ADDR(n) (RAB_REG_BASE + (0x2d28 + (0x10*(n)))+0x8)
+#define RAB_OBDSE_CTRL(n) (RAB_REG_BASE + (0x2d28 + (0xC*(n))))
+#define RAB_OBDSE_STAT(n) (RAB_REG_BASE + (0x2d28 + (0xC*(n)))+0x4)
+#define RAB_OBDSE_DESC_ADDR(n) (RAB_REG_BASE + (0x2d28 + (0xC*(n)))+0x8)
#define RAB_IBVIRT_M_STAT(n) (RAB_REG_BASE + (0x2ef0 + (0x4*(n))))
@@ -95,6 +95,8 @@
/* stats */
#define IB_VIRT_M_STAT_ERROR_MASK 0x3FC
+#define IB_VIRT_M_STAT_SLEEPING (1<<11)
+#define IB_VIRT_M_STAT_TRAN_PENDING (1<<10)
#define IB_VIRT_M_STAT_PDU_DROPPED (1 << 9)
#define IB_VIRT_M_STAT_SEG_LOSS (1 << 8)
#define IB_VIRT_M_STAT_MTU_LEN_MIS_ERR (1 << 7)
@@ -242,6 +244,8 @@ struct ibds_virt_m_cfg {
u32 num_hw_written_bufs;
u32 alias_reg_value;
+ u16 virt_vsid;
+ u16 num_data_streams;
};
--
1.7.9.5
More information about the linux-yocto
mailing list