Commit 2b903327 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

Staging: et131x: GLOBAL_t is now sane so kill the GLOBAL_t itself

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 254472ac
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
* GLOBAL Module of JAGCore Address Mapping * GLOBAL Module of JAGCore Address Mapping
* Located at address 0x0000 * Located at address 0x0000
*/ */
typedef struct _GLOBAL_t { /* Location: */ struct global_regs { /* Location: */
u32 txq_start_addr; /* 0x0000 */ u32 txq_start_addr; /* 0x0000 */
u32 txq_end_addr; /* 0x0004 */ u32 txq_end_addr; /* 0x0004 */
u32 rxq_start_addr; /* 0x0008 */ u32 rxq_start_addr; /* 0x0008 */
...@@ -165,9 +165,7 @@ typedef struct _GLOBAL_t { /* Location: */ ...@@ -165,9 +165,7 @@ typedef struct _GLOBAL_t { /* Location: */
u32 msi_config; /* 0x0030 */ u32 msi_config; /* 0x0030 */
u32 loopback; /* 0x0034 */ u32 loopback; /* 0x0034 */
u32 watchdog_timer; /* 0x0038 */ u32 watchdog_timer; /* 0x0038 */
} GLOBAL_t, *PGLOBAL_t; };
/* END OF GLOBAL REGISTER ADDRESS MAP */
/* START OF TXDMA REGISTER ADDRESS MAP */ /* START OF TXDMA REGISTER ADDRESS MAP */
...@@ -1666,9 +1664,9 @@ typedef struct _MMC_t { /* Location: */ ...@@ -1666,9 +1664,9 @@ typedef struct _MMC_t { /* Location: */
* JAGCore Address Mapping * JAGCore Address Mapping
*/ */
typedef struct _ADDRESS_MAP_t { typedef struct _ADDRESS_MAP_t {
GLOBAL_t global; struct global_regs global;
/* unused section of global address map */ /* unused section of global address map */
u8 unused_global[4096 - sizeof(GLOBAL_t)]; u8 unused_global[4096 - sizeof(struct global_regs)];
TXDMA_t txdma; TXDMA_t txdma;
/* unused section of txdma address map */ /* unused section of txdma address map */
u8 unused_txdma[4096 - sizeof(TXDMA_t)]; u8 unused_txdma[4096 - sizeof(TXDMA_t)];
......
...@@ -327,7 +327,7 @@ void et131x_link_detection_handler(unsigned long data) ...@@ -327,7 +327,7 @@ void et131x_link_detection_handler(unsigned long data)
*/ */
void ConfigGlobalRegs(struct et131x_adapter *etdev) void ConfigGlobalRegs(struct et131x_adapter *etdev)
{ {
struct _GLOBAL_t __iomem *regs = &etdev->regs->global; struct global_regs __iomem *regs = &etdev->regs->global;
writel(0, &regs->rxq_start_addr); writel(0, &regs->rxq_start_addr);
writel(INTERNAL_MEM_SIZE - 1, &regs->txq_end_addr); writel(INTERNAL_MEM_SIZE - 1, &regs->txq_end_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment