Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162525
b: refs/heads/master
c: bc7f9c5
h: refs/heads/master
i:
  162523: ebb03ac
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 11a138c commit 6d30556
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 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: e266b2022209a2bc389c1cd6b809395c67671a92
refs/heads/master: bc7f9c597fa55814548845a7c43f53d6bbbce94b
22 changes: 5 additions & 17 deletions trunk/drivers/staging/et131x/et1310_address_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,23 +139,11 @@
#define ET_MSI_TC 0x00070000

/*
* structure for Loopback reg in global address map
* located at address 0x0034
* Loopback reg located at address 0x0034
*/
typedef union _LOOPBACK_t {
u32 value;
struct {
#ifdef _BIT_FIELDS_HTOL
u32 unused:30; /* bits 2-31 */
u32 dma_loopback:1; /* bit 1 */
u32 mac_loopback:1; /* bit 0 */
#else
u32 mac_loopback:1; /* bit 0 */
u32 dma_loopback:1; /* bit 1 */
u32 unused:30; /* bits 2-31 */
#endif
} bits;
} LOOPBACK_t, *PLOOPBACK_t;

#define ET_LOOP_MAC 0x00000001
#define ET_LOOP_DMA 0x00000002

/*
* GLOBAL Module of JAGCore Address Mapping
Expand All @@ -175,7 +163,7 @@ typedef struct _GLOBAL_t { /* Location: */
u32 sw_reset; /* 0x0028 */
u32 slv_timer; /* 0x002C */
u32 msi_config; /* 0x0030 */
LOOPBACK_t loopback; /* 0x0034 */
u32 loopback; /* 0x0034 */
u32 watchdog_timer; /* 0x0038 */
} GLOBAL_t, *PGLOBAL_t;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/et131x/et131x_initpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ void ConfigGlobalRegs(struct et131x_adapter *etdev)
}

/* Initialize the loopback register. Disable all loopbacks. */
writel(0, &regs->loopback.value);
writel(0, &regs->loopback);
} else {
/* For PHY Line loopback, the memory is configured as if Tx
* and Rx both have all the memory. This is because the
Expand All @@ -586,7 +586,7 @@ void ConfigGlobalRegs(struct et131x_adapter *etdev)
writel(INTERNAL_MEM_SIZE - 1, &regs->txq_end_addr);

/* Initialize the loopback register (MAC loopback). */
writel(1, &regs->loopback);
writel(ET_LOOP_MAC, &regs->loopback);
}

/* MSI Register */
Expand Down

0 comments on commit 6d30556

Please sign in to comment.