summaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x/et1310_address_map.h
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2009-08-27 11:02:43 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:29 -0700
commitbc7f9c597fa55814548845a7c43f53d6bbbce94b (patch)
treeb21067128eb813cfa7dd17c4d604fd24de4c8f4c /drivers/staging/et131x/et1310_address_map.h
parente266b2022209a2bc389c1cd6b809395c67671a92 (diff)
downloadop-kernel-dev-bc7f9c597fa55814548845a7c43f53d6bbbce94b.zip
op-kernel-dev-bc7f9c597fa55814548845a7c43f53d6bbbce94b.tar.gz
Staging: et131x: kill the loopback type
Kill off the loopback type in the driver Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et1310_address_map.h')
-rw-r--r--drivers/staging/et131x/et1310_address_map.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/drivers/staging/et131x/et1310_address_map.h b/drivers/staging/et131x/et1310_address_map.h
index 1a2c73a..39ba922 100644
--- a/drivers/staging/et131x/et1310_address_map.h
+++ b/drivers/staging/et131x/et1310_address_map.h
@@ -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
@@ -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;
OpenPOWER on IntegriCloud