Lines Matching +full:wake +full:- +full:on +full:- +full:lan
1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
18 * 4. Neither the name of the author nor the names of any co-contributors
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
61 * register. The other is everything else (from the 98713A on up),
85 (x->dc_type == DC_TYPE_98713 || \
86 x->dc_type == DC_TYPE_98713A || \
87 x->dc_type == DC_TYPE_987x5)
90 (x->dc_type == DC_TYPE_AL981 || \
91 x->dc_type == DC_TYPE_AN983)
94 (x->dc_type == DC_TYPE_ULI_M5261 || \
95 x->dc_type == DC_TYPE_ULI_M5263)
97 #define DC_IS_INTEL(x) (x->dc_type == DC_TYPE_21143)
98 #define DC_IS_ASIX(x) (x->dc_type == DC_TYPE_ASIX)
99 #define DC_IS_COMET(x) (x->dc_type == DC_TYPE_AL981)
100 #define DC_IS_CENTAUR(x) (x->dc_type == DC_TYPE_AN983)
101 #define DC_IS_DAVICOM(x) (x->dc_type == DC_TYPE_DM9102)
102 #define DC_IS_PNICII(x) (x->dc_type == DC_TYPE_PNICII)
103 #define DC_IS_PNIC(x) (x->dc_type == DC_TYPE_PNIC)
104 #define DC_IS_XIRCOM(x) (x->dc_type == DC_TYPE_XIRCOM)
105 #define DC_IS_CONEXANT(x) (x->dc_type == DC_TYPE_CONEXANT)
182 #define DC_RXSTATE_STOPPED 0x00000000 /* 000 - Stopped */
183 #define DC_RXSTATE_FETCH 0x00020000 /* 001 - Fetching descriptor */
184 #define DC_RXSTATE_ENDCHECK 0x00040000 /* 010 - check for rx end */
185 #define DC_RXSTATE_WAIT 0x00060000 /* 011 - waiting for packet */
186 #define DC_RXSTATE_SUSPEND 0x00080000 /* 100 - suspend rx */
187 #define DC_RXSTATE_CLOSE 0x000A0000 /* 101 - close tx desc */
188 #define DC_RXSTATE_FLUSH 0x000C0000 /* 110 - flush from FIFO */
189 #define DC_RXSTATE_DEQUEUE 0x000E0000 /* 111 - dequeue from FIFO */
193 pci_get_revid((x)->dc_dev) >= DC_REVISION_DM9102A))
195 #define DC_TXSTATE_RESET 0x00000000 /* 000 - reset */
196 #define DC_TXSTATE_FETCH 0x00100000 /* 001 - fetching descriptor */
197 #define DC_TXSTATE_WAITEND 0x00200000 /* 010 - wait for tx end */
198 #define DC_TXSTATE_READING 0x00300000 /* 011 - read and enqueue */
199 #define DC_TXSTATE_RSVD 0x00400000 /* 100 - reserved */
200 #define DC_TXSTATE_SETUP 0x00500000 /* 101 - setup packet */
201 #define DC_TXSTATE_SUSPEND 0x00600000 /* 110 - suspend tx */
202 #define DC_TXSTATE_CLOSE 0x00700000 /* 111 - close tx desc */
316 #define DC_TSTAT_NSN 0x00000400 /* non-stable FLPs detected */
486 (DC_ADDR_LO(sc->dc_ldata.dc_rx_list_paddr + (sizeof(struct dc_desc) * i)))
488 (DC_ADDR_LO(sc->dc_ldata.dc_tx_list_paddr + (sizeof(struct dc_desc) * i)))
572 * Special ASIX-specific bits in the ASIX NETCFG register (CSR6).
642 * 100Mbps loopback on the 82c168 chip. The control bits should always
645 * will set the state of a relay mounted on the card.
684 #define DC_PN_NWAY_POLARITY 0x00000020 /* 0 == on, 1 == off */
688 #define DC_PN_NWAY_LINKTEST 0x00000200 /* 0 == on, 1 == off */
689 #define DC_PN_NWAY_AUTODETECT 0x00000400 /* 1 == off, 0 == on */
691 #define DC_PN_NWAY_NWAY_ENB 0x00001000 /* 0 == off, 1 == on */
781 #define DC_LOCK(_sc) mtx_lock(&(_sc)->dc_mtx)
782 #define DC_UNLOCK(_sc) mtx_unlock(&(_sc)->dc_mtx)
783 #define DC_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->dc_mtx, MA_OWNED)
800 #define DC_TX_ALIGN 0x00010000 /* align mbuf on tx */
806 bus_space_write_4(sc->dc_btag, sc->dc_bhandle, reg, val)
809 bus_space_read_4(sc->dc_btag, sc->dc_bhandle, reg)
812 bus_space_barrier(sc->dc_btag, sc->dc_bhandle, reg, 4, flags)
861 * Lite-On PNIC PCI vendor ID
876 * Lite-On PNIC II device ID. Note: this is actually a Macronix 98715A
877 * with wake on lan/magic packet support.
920 * 3COM OfficeConnect 10/100B (3CSOHO100B-TX)
963 * D-Link vendor ID
968 * D-Link device IDs.
1010 * Sure looks like an abocom device ID, but it found on my hawking PN672TX
1060 #define DC_PCI_CWUA0 0x44 /* Wake-Up LAN addr 0 */
1061 #define DC_PCI_CWUA1 0x48 /* Wake-Up LAN addr 1 */
1064 #define DC_PCI_CWUC 0x54 /* Configuration Wake-Up cmd */
1078 /* Configuration wake-up command register */