Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186713
b: refs/heads/master
c: dcb0789
h: refs/heads/master
i:
  186711: a33c365
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 28299b4 commit 887516a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 370d52acf7f2a8f4fccbf9fa49defd6e364ae1f3
refs/heads/master: dcb0789bb344b76fdeb32876f1e498a5cd19ecc1
20 changes: 5 additions & 15 deletions trunk/drivers/staging/et131x/et1310_address_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -883,21 +883,11 @@ typedef union _RXMAC_UNI_PF_ADDR3_t {
/*
* structure for management interface reg in rxmac address map.
* located at address 0x4098
*
* 31-18: reserved
* 17: drop_pkt_en
* 16-0: drop_pkt_mask
*/
typedef union _RXMAC_MIF_CTL_t {
u32 value;
struct {
#ifdef _BIT_FIELDS_HTOL
u32 reserve:14; /* bits 18-31 */
u32 drop_pkt_en:1; /* bit 17 */
u32 drop_pkt_mask:17; /* bits 0-16 */
#else
u32 drop_pkt_mask:17; /* bits 0-16 */
u32 drop_pkt_en:1; /* bit 17 */
u32 reserve:14; /* bits 18-31 */
#endif
} bits;
} RXMAC_MIF_CTL_t, *PRXMAC_MIF_CTL_t;

/*
* structure for Error reg in rxmac address map.
Expand Down Expand Up @@ -965,7 +955,7 @@ typedef struct _RXMAC_t { /* Location: */
u32 rxq_diag; /* 0x4090 */
u32 space_avail; /* 0x4094 */

RXMAC_MIF_CTL_t mif_ctrl; /* 0x4098 */
u32 mif_ctrl; /* 0x4098 */
RXMAC_ERROR_REG_t err_reg; /* 0x409C */
} RXMAC_t, *PRXMAC_t;

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/et131x/et1310_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void ConfigRxMacRegs(struct et131x_adapter *etdev)
writel(0, &pRxMac->mcif_water_mark);

/* Initialize the MIF control */
writel(0, &pRxMac->mif_ctrl.value);
writel(0, &pRxMac->mif_ctrl);

/* Initialize the Space Available Register */
writel(0, &pRxMac->space_avail);
Expand All @@ -352,9 +352,9 @@ void ConfigRxMacRegs(struct et131x_adapter *etdev)
* bit 17: Drop packet enable
*/
if (etdev->linkspeed == TRUEPHY_SPEED_100MBPS)
writel(0x30038, &pRxMac->mif_ctrl.value);
writel(0x30038, &pRxMac->mif_ctrl);
else
writel(0x30030, &pRxMac->mif_ctrl.value);
writel(0x30030, &pRxMac->mif_ctrl);

/* Finally we initialize RxMac to be enabled & WOL disabled. Packet
* filter is always enabled since it is where the runt packets are
Expand Down

0 comments on commit 887516a

Please sign in to comment.