aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/dl2k.h
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2008-01-13 14:17:45 +0000
committerJeff Garzik <jeff@garzik.org>2008-01-18 14:44:33 -0500
commitd50956af74859b4e9ba544a0211a94bc2621c1d9 (patch)
treea2f34ca5053722e3e20490ff107642288e10dd0f /drivers/net/dl2k.h
parentb665982409fd5e4d3f1b71591d2f6badf9d2ee99 (diff)
dl2k: BMCR_t fixes
broken use of bitfields; FUBAR on big-endian (and not valid C, strictly speaking). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/dl2k.h')
-rw-r--r--drivers/net/dl2k.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/net/dl2k.h b/drivers/net/dl2k.h
index 014b77ce96d..931fd0e58f3 100644
--- a/drivers/net/dl2k.h
+++ b/drivers/net/dl2k.h
@@ -298,23 +298,6 @@ enum _pcs_reg {
};
/* Basic Mode Control Register */
-typedef union t_MII_BMCR {
- u16 image;
- struct {
- u16 _bit_5_0:6; // bit 5:0
- u16 speed1000:1; // bit 6
- u16 col_test_enable:1; // bit 7
- u16 duplex_mode:1; // bit 8
- u16 restart_an:1; // bit 9
- u16 isolate:1; // bit 10
- u16 power_down:1; // bit 11
- u16 an_enable:1; // bit 12
- u16 speed100:1; // bit 13
- u16 loopback:1; // bit 14
- u16 reset:1; // bit 15
- } bits;
-} BMCR_t, *PBMCR_t;
-
enum _mii_bmcr {
MII_BMCR_RESET = 0x8000,
MII_BMCR_LOOP_BACK = 0x4000,