diff options
Diffstat (limited to 'drivers/net/netxen/netxen_nic_hw.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.h b/drivers/net/netxen/netxen_nic_hw.h index 70238bf7e11a..9dcfb3223d84 100644 --- a/drivers/net/netxen/netxen_nic_hw.h +++ b/drivers/net/netxen/netxen_nic_hw.h | |||
@@ -124,33 +124,6 @@ typedef enum { | |||
124 | #define netxen_gb_get_soft_reset(config_word) \ | 124 | #define netxen_gb_get_soft_reset(config_word) \ |
125 | _netxen_crb_get_bit((config_word), 31) | 125 | _netxen_crb_get_bit((config_word), 31) |
126 | 126 | ||
127 | /* | ||
128 | * NIU GB MAC Config Register 1 (applies to GB0, GB1, GB2, GB3) | ||
129 | * | ||
130 | * Bit 0 : duplex => 1:full duplex mode, 0:half duplex | ||
131 | * Bit 1 : crc_enable => 1:append CRC to xmit frames, 0:dont append | ||
132 | * Bit 2 : padshort => 1:pad short frames and add CRC, 0:dont pad | ||
133 | * Bit 4 : checklength => 1:check framelen with actual,0:dont check | ||
134 | * Bit 5 : hugeframes => 1:allow oversize xmit frames, 0:dont allow | ||
135 | * Bits 8-9 : intfmode => 01:nibble (10/100), 10:byte (1000) | ||
136 | * Bits 12-15 : preamblelen => preamble field length in bytes, default 7 | ||
137 | */ | ||
138 | |||
139 | #define netxen_gb_set_duplex(config_word) \ | ||
140 | ((config_word) |= 1 << 0) | ||
141 | #define netxen_gb_set_crc_enable(config_word) \ | ||
142 | ((config_word) |= 1 << 1) | ||
143 | #define netxen_gb_set_padshort(config_word) \ | ||
144 | ((config_word) |= 1 << 2) | ||
145 | #define netxen_gb_set_checklength(config_word) \ | ||
146 | ((config_word) |= 1 << 4) | ||
147 | #define netxen_gb_set_hugeframes(config_word) \ | ||
148 | ((config_word) |= 1 << 5) | ||
149 | #define netxen_gb_set_preamblelen(config_word, val) \ | ||
150 | ((config_word) |= ((val) << 12) & 0xF000) | ||
151 | #define netxen_gb_set_intfmode(config_word, val) \ | ||
152 | ((config_word) |= ((val) << 8) & 0x300) | ||
153 | |||
154 | #define netxen_gb_get_stationaddress_low(config_word) ((config_word) >> 16) | 127 | #define netxen_gb_get_stationaddress_low(config_word) ((config_word) >> 16) |
155 | 128 | ||
156 | #define netxen_gb_set_mii_mgmt_clockselect(config_word, val) \ | 129 | #define netxen_gb_set_mii_mgmt_clockselect(config_word, val) \ |