Skip to content

Commit

Permalink
[PATCH] s2io: additional stats
Browse files Browse the repository at this point in the history
Hi,
	This patch contains additional statistics counters added to s2io driver
	these statistics are very much usefull in debugging the driver.

Signed-off-by: Ananda Raju <ananda.raju@neterion.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Ananda Raju authored and Jeff Garzik committed May 2, 2006
1 parent c92ca04 commit bd1034f
Show file tree
Hide file tree
Showing 3 changed files with 569 additions and 12 deletions.
23 changes: 22 additions & 1 deletion drivers/net/s2io-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ typedef struct _XENA_dev_config {
u8 unused4[0x08];

u64 gpio_int_reg;
#define GPIO_INT_REG_DP_ERR_INT BIT(0)
#define GPIO_INT_REG_LINK_DOWN BIT(1)
#define GPIO_INT_REG_LINK_UP BIT(2)
u64 gpio_int_mask;
Expand Down Expand Up @@ -267,6 +268,21 @@ typedef struct _XENA_dev_config {

/* General Configuration */
u64 mdio_control;
#define MDIO_MMD_INDX_ADDR(val) vBIT(val, 0, 16)
#define MDIO_MMD_DEV_ADDR(val) vBIT(val, 19, 5)
#define MDIO_MMD_PMA_DEV_ADDR 0x1
#define MDIO_MMD_PMD_DEV_ADDR 0x1
#define MDIO_MMD_WIS_DEV_ADDR 0x2
#define MDIO_MMD_PCS_DEV_ADDR 0x3
#define MDIO_MMD_PHYXS_DEV_ADDR 0x4
#define MDIO_MMS_PRT_ADDR(val) vBIT(val, 27, 5)
#define MDIO_CTRL_START_TRANS(val) vBIT(val, 56, 4)
#define MDIO_OP(val) vBIT(val, 60, 2)
#define MDIO_OP_ADDR_TRANS 0x0
#define MDIO_OP_WRITE_TRANS 0x1
#define MDIO_OP_READ_POST_INC_TRANS 0x2
#define MDIO_OP_READ_TRANS 0x3
#define MDIO_MDIO_DATA(val) vBIT(val, 32, 16)

u64 dtx_control;

Expand Down Expand Up @@ -546,7 +562,12 @@ typedef struct _XENA_dev_config {
#define RX_PA_CFG_IGNORE_LLC_CTRL BIT(3)
#define RX_PA_CFG_IGNORE_L2_ERR BIT(6)

u8 unused12[0x700 - 0x1D8];
u64 unused_11_1;

u64 ring_bump_counter1;
u64 ring_bump_counter2;

u8 unused12[0x700 - 0x1F0];

u64 rxdma_debug_ctrl;

Expand Down
Loading

0 comments on commit bd1034f

Please sign in to comment.