diff options
author | Alan Cox <alan@linux.intel.com> | 2009-11-18 09:07:41 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:23:21 -0500 |
commit | 6794712519265bb64aa20fe61f4da36bf8adbded (patch) | |
tree | 9f02b1d1d4206968422795b8725093403f112ad2 | |
parent | 02cdb0b427486355b9b8d715e529cff5b7b7b0e8 (diff) |
Staging: et131x: kill RX_DMA_MAX_PKT_TIME
Another one bits the dust ...
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/et131x/et1310_address_map.h | 17 | ||||
-rw-r--r-- | drivers/staging/et131x/et1310_rx.c | 4 |
2 files changed, 6 insertions, 15 deletions
diff --git a/drivers/staging/et131x/et1310_address_map.h b/drivers/staging/et131x/et1310_address_map.h index 95fb22e42ed5..c447e9a3ed92 100644 --- a/drivers/staging/et131x/et1310_address_map.h +++ b/drivers/staging/et131x/et1310_address_map.h | |||
@@ -356,19 +356,10 @@ typedef union _RXDMA_NUM_PKT_DONE_t { | |||
356 | /* | 356 | /* |
357 | * structure for max packet time reg in rxdma address map | 357 | * structure for max packet time reg in rxdma address map |
358 | * located at address 0x2010 | 358 | * located at address 0x2010 |
359 | * | ||
360 | * 31-18: unused | ||
361 | * 17-0: time done | ||
359 | */ | 362 | */ |
360 | typedef union _RXDMA_MAX_PKT_TIME_t { | ||
361 | u32 value; | ||
362 | struct { | ||
363 | #ifdef _BIT_FIELDS_HTOL | ||
364 | u32 unused:14; /* bits 18-31 */ | ||
365 | u32 time_done:18; /* bits 0-17 */ | ||
366 | #else | ||
367 | u32 time_done:18; /* bits 0-17 */ | ||
368 | u32 unused:14; /* bits 18-31 */ | ||
369 | #endif | ||
370 | } bits; | ||
371 | } RXDMA_MAX_PKT_TIME_t, *PRXDMA_MAX_PKT_TIME_t; | ||
372 | 363 | ||
373 | /* | 364 | /* |
374 | * structure for rx queue read address reg in rxdma address map | 365 | * structure for rx queue read address reg in rxdma address map |
@@ -609,7 +600,7 @@ typedef struct _RXDMA_t { /* Location: */ | |||
609 | u32 dma_wb_base_lo; /* 0x2004 */ | 600 | u32 dma_wb_base_lo; /* 0x2004 */ |
610 | u32 dma_wb_base_hi; /* 0x2008 */ | 601 | u32 dma_wb_base_hi; /* 0x2008 */ |
611 | RXDMA_NUM_PKT_DONE_t num_pkt_done; /* 0x200C */ | 602 | RXDMA_NUM_PKT_DONE_t num_pkt_done; /* 0x200C */ |
612 | RXDMA_MAX_PKT_TIME_t max_pkt_time; /* 0x2010 */ | 603 | u32 max_pkt_time; /* 0x2010 */ |
613 | u32 rxq_rd_addr; /* 0x2014 */ | 604 | u32 rxq_rd_addr; /* 0x2014 */ |
614 | u32 rxq_rd_addr_ext; /* 0x2018 */ | 605 | u32 rxq_rd_addr_ext; /* 0x2018 */ |
615 | u32 rxq_wr_addr; /* 0x201C */ | 606 | u32 rxq_wr_addr; /* 0x201C */ |
diff --git a/drivers/staging/et131x/et1310_rx.c b/drivers/staging/et131x/et1310_rx.c index 4c4555dffd1f..48f1ffc3df6a 100644 --- a/drivers/staging/et131x/et1310_rx.c +++ b/drivers/staging/et131x/et1310_rx.c | |||
@@ -695,7 +695,7 @@ void ConfigRxDmaRegs(struct et131x_adapter *etdev) | |||
695 | * regardless of whether we have received packets. | 695 | * regardless of whether we have received packets. |
696 | * This value gets updated once autoneg is complete. | 696 | * This value gets updated once autoneg is complete. |
697 | */ | 697 | */ |
698 | writel(PARM_RX_TIME_INT_DEF, &rx_dma->max_pkt_time.value); | 698 | writel(PARM_RX_TIME_INT_DEF, &rx_dma->max_pkt_time); |
699 | 699 | ||
700 | spin_unlock_irqrestore(&etdev->RcvLock, flags); | 700 | spin_unlock_irqrestore(&etdev->RcvLock, flags); |
701 | } | 701 | } |
@@ -711,7 +711,7 @@ void SetRxDmaTimer(struct et131x_adapter *etdev) | |||
711 | */ | 711 | */ |
712 | if ((etdev->linkspeed == TRUEPHY_SPEED_100MBPS) || | 712 | if ((etdev->linkspeed == TRUEPHY_SPEED_100MBPS) || |
713 | (etdev->linkspeed == TRUEPHY_SPEED_10MBPS)) { | 713 | (etdev->linkspeed == TRUEPHY_SPEED_10MBPS)) { |
714 | writel(0, &etdev->regs->rxdma.max_pkt_time.value); | 714 | writel(0, &etdev->regs->rxdma.max_pkt_time); |
715 | writel(1, &etdev->regs->rxdma.num_pkt_done.value); | 715 | writel(1, &etdev->regs->rxdma.num_pkt_done.value); |
716 | } | 716 | } |
717 | } | 717 | } |