re: Leverage Realtek driver's chip/PHY initialization/reset.
[dragonfly.git] / sys / dev / netif / re / re_dragonfly.h
blob417a3897f1a69216773d87beb1e05dc5c317419e
1 /*
2 * Copyright (c) 1997, 1998
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by Bill Paul.
16 * 4. Neither the name of the author nor the names of any co-contributors
17 * may be used to endorse or promote products derived from this software
18 * without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
32 * $FreeBSD: src/sys/dev/re/if_rereg.h,v 1.14.2.1 2001/07/19 18:33:07 wpaul Exp $
35 #ifndef _RE_DRAGONFLY_H_
36 #define _RE_DRAGONFLY_H_
38 #define RE_INTRS_TIMER \
39 ((RE_INTRS & ~(RE_ISR_TX_OK | RE_ISR_RX_OK | RE_ISR_RX_OVERRUN |\
40 RE_ISR_PKT_UNDERRUN | RE_ISR_TDU)) | RE_ISR_PCS_TIMEOUT)
42 int rtl_check_mac_version(struct re_softc *);
43 void rtl_init_software_variable(struct re_softc *);
44 void rtl_exit_oob(struct re_softc *);
45 void rtl_hw_init(struct re_softc *);
46 void rtl_reset(struct re_softc *);
47 void rtl_get_hw_mac_address(struct re_softc *, u_int8_t *);
48 void rtl_phy_power_up(struct re_softc *);
49 void rtl_hw_phy_config(struct re_softc *);
50 void rtl_clrwol(struct re_softc *);
51 int rtl_ifmedia_upd(struct ifnet *);
52 void rtl_ifmedia_sts(struct ifnet *, struct ifmediareq *);
53 void rtl_stop(struct re_softc *);
54 u_int8_t rtl_link_ok(struct re_softc *);
55 void rtl_link_on_patch(struct re_softc *);
56 void rtl_set_eaddr(struct re_softc *);
57 void rtl_hw_start(struct re_softc *);
58 void rtl_set_rx_packet_filter(struct re_softc *);
59 void rtl_hw_d3_para(struct re_softc *);
60 void rtl_phy_power_down(struct re_softc *);
62 #endif /* !_RE_DRAGONFLY_H_ */