Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175154
b: refs/heads/master
c: cc5dc29
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 8b9d0db commit 792e575
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 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: c9835d97e9fa06ac0741beaa04fc3f431bcd294c
refs/heads/master: cc5dc29c65575125a694ed67bbdee7895c7055f9
16 changes: 2 additions & 14 deletions trunk/drivers/staging/et131x/et1310_address_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -1377,20 +1377,8 @@ typedef struct _RXMAC_t { /* Location: */

/*
* structure for Maximum Frame Length reg in mac address map.
* located at address 0x5010
* located at address 0x5010: bits 0-15 hold the length.
*/
typedef union _MAC_MAX_FM_LEN_t {
u32 value;
struct {
#ifdef _BIT_FIELDS_HTOL
u32 reserved:16; /* bits 16-31 */
u32 max_len:16; /* bits 0-15 */
#else
u32 max_len:16; /* bits 0-15 */
u32 reserved:16; /* bits 16-31 */
#endif
} bits;
} MAC_MAX_FM_LEN_t, *PMAC_MAX_FM_LEN_t;

/*
* structure for Reserve 1 reg in mac address map.
Expand Down Expand Up @@ -1652,7 +1640,7 @@ typedef struct _MAC_t { /* Location: */
u32 cfg2; /* 0x5004 */
u32 ipg; /* 0x5008 */
u32 hfdp; /* 0x500C */
MAC_MAX_FM_LEN_t max_fm_len; /* 0x5010 */
u32 max_fm_len; /* 0x5010 */
u32 rsv1; /* 0x5014 */
u32 rsv2; /* 0x5018 */
MAC_TEST_t mac_test; /* 0x501C */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/et131x/et1310_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void ConfigMACRegs1(struct et131x_adapter *etdev)
* Packets larger than (RegistryJumboPacket) that do not contain a
* VLAN ID will be dropped by the Rx function.
*/
writel(etdev->RegistryJumboPacket + 4, &pMac->max_fm_len.value);
writel(etdev->RegistryJumboPacket + 4, &pMac->max_fm_len);

/* clear out MAC config reset */
writel(0, &pMac->cfg1);
Expand Down

0 comments on commit 792e575

Please sign in to comment.