Lines Matching +full:1 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2003 - 2009 NetXen, Inc.
4 * Copyright (C) 2009 - QLogic Corporation.
22 #define _netxen_crb_get_bit(var, bit) ((var >> bit) & 0x1) argument
27 * Bit 0 : enable_tx => 1:enable frame xmit, 0:disable
28 * Bit 1 : tx_synced => R/O: xmit enable synched to xmit stream
29 * Bit 2 : enable_rx => 1:enable frame recv, 0:disable
30 * Bit 3 : rx_synced => R/O: recv enable synched to recv stream
31 * Bit 4 : tx_flowctl => 1:enable pause frame generation, 0:disable
32 * Bit 5 : rx_flowctl => 1:act on recv'd pause frames, 0:ignore
33 * Bit 8 : loopback => 1:loop MAC xmits to MAC recvs, 0:normal
34 * Bit 16: tx_reset_pb => 1:reset frame xmit protocol blk, 0:no-op
35 * Bit 17: rx_reset_pb => 1:reset frame recv protocol blk, 0:no-op
36 * Bit 18: tx_reset_mac => 1:reset data/ctl multiplexer blk, 0:no-op
37 * Bit 19: rx_reset_mac => 1:reset ctl frames & timers blk, 0:no-op
38 * Bit 31: soft_reset => 1:reset the MAC and the SERDES, 0:no-op
42 ((config_word) |= 1 << 4)
44 ((config_word) |= 1 << 5)
46 ((config_word) |= 1 << 16)
48 ((config_word) |= 1 << 17)
50 ((config_word) |= 1 << 18)
52 ((config_word) |= 1 << 19)
55 ((config_word) &= ~(1 << 4))
57 ((config_word) &= ~(1 << 5))
60 _netxen_crb_get_bit((config_word), 1)
75 ((config_word) |= 1 << 31)
77 ((config_word) &= ~(1 << 31))
81 * Bit 0 : read_cycle => 1:perform single read cycle, 0:no-op
82 * Bit 1 : scan_cycle => 1:perform continuous read cycles, 0:no-op
86 ((config_word) |= 1 << 0)
94 * Read-only register.
95 * Bit 0 : busy => 1:performing an MII mgmt cycle, 0:idle
96 * Bit 1 : scanning => 1:scan operation in progress, 0:idle
97 * Bit 2 : notvalid => :mgmt result data not yet valid, 0:idle
102 _netxen_crb_get_bit(config_word, 1)
108 * Bit 0 : xg0_mask => 1:disable tx pause frames
109 * Bit 1 : xg0_request => 1:request single pause frame
110 * Bit 2 : xg0_on_off => 1:request is pause on, 0:off
111 * Bit 3 : xg1_mask => 1:disable tx pause frames
112 * Bit 4 : xg1_request => 1:request single pause frame
113 * Bit 5 : xg1_on_off => 1:request is pause on, 0:off
117 ((config_word) |= 1 << 0)
119 ((config_word) |= 1 << 3)
127 ((config_word) &= ~(1 << 0))
129 ((config_word) &= ~(1 << 3))
134 * Bit 0 : xg0_mask => 1:disable tx pause frames
135 * Bit 1 : xg0_request => 1:request single pause frame
136 * Bit 2 : xg0_on_off => 1:request is pause on, 0:off
137 * Bit 3 : xg1_mask => 1:disable tx pause frames
138 * Bit 4 : xg1_request => 1:request single pause frame
139 * Bit 5 : xg1_on_off => 1:request is pause on, 0:off
142 ((config_word) |= 1 << 0)
144 ((config_word) |= 1 << 2)
146 ((config_word) |= 1 << 4)
148 ((config_word) |= 1 << 6)
160 ((config_word) &= ~(1 << 0))
162 ((config_word) &= ~(1 << 2))
164 ((config_word) &= ~(1 << 4))
166 ((config_word) &= ~(1 << 6))
170 * PHY-Specific MII control/status registers.
173 #define NETXEN_NIU_GB_MII_MGMT_ADDR_STATUS 1
196 * PHY-Specific Status Register (reg 17).
198 * Bit 0 : jabber => 1:jabber detected, 0:not
199 * Bit 1 : polarity => 1:polarity reversed, 0:normal
200 * Bit 2 : recvpause => 1:receive pause enabled, 0:disabled
201 * Bit 3 : xmitpause => 1:transmit pause enabled, 0:disabled
202 * Bit 4 : energydetect => 1:sleep, 0:active
203 * Bit 5 : downshift => 1:downshift, 0:no downshift
204 * Bit 6 : crossover => 1:MDIX (crossover), 0:MDI (no crossover)
205 * Bits 7-9 : cablelen => not valid in 10Mb/s mode
206 * 0:<50m, 1:50-80m, 2:80-110m, 3:110-140m, 4:>140m
207 * Bit 10 : link => 1:link up, 0:link down
208 * Bit 11 : resolved => 1:speed and duplex resolved, 0:not yet
209 * Bit 12 : pagercvd => 1:page received, 0:page not received
210 * Bit 13 : duplex => 1:full duplex, 0:half duplex
211 * Bits 14-15 : speed => 0:10Mb/s, 1:100Mb/s, 2:1000Mb/s, 3:rsvd
219 ((config_word) |= 1 << 13)
221 ((config_word) &= ~(1 << 13))
230 * Bit 0 : enable FibreChannel
231 * Bit 1 : enable 10/100/1000 Ethernet
232 * Bit 2 : enable 10Gb Ethernet
236 _netxen_crb_get_bit(config_word, 1)
239 #define NETXEN_NIU_PROMISC_MODE 1
245 * Bit 0 : tx_enable => 1:enable frame xmit, 0:disable
246 * Bit 2 : rx_enable => 1:enable frame recv, 0:disable
247 * Bit 4 : soft_reset => 1:reset the MAC , 0:no-op
248 * Bit 27: xaui_framer_reset
249 * Bit 28: xaui_rx_reset
250 * Bit 29: xaui_tx_reset
251 * Bit 30: xg_ingress_afifo_reset
252 * Bit 31: xg_egress_afifo_reset
256 ((config_word) |= 1 << 4)