Deleted Added
full compact
if_rt.c (223929) if_rt.c (227309)
1/*-
2 * Copyright (c) 2011, Aleksandr Rybalko
3 * based on hard work
4 * by Alexander Egorenkov <egorenar@gmail.com>
5 * and by Damien Bergamini <damien.bergamini@free.fr>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 15 unchanged lines hidden (view full) ---

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011, Aleksandr Rybalko
3 * based on hard work
4 * by Alexander Egorenkov <egorenar@gmail.com>
5 * and by Damien Bergamini <damien.bergamini@free.fr>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 15 unchanged lines hidden (view full) ---

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/rt/if_rt.c 223929 2011-07-11 08:42:09Z ray $");
32__FBSDID("$FreeBSD: head/sys/dev/rt/if_rt.c 227309 2011-11-07 15:43:11Z ed $");
33
34#include "if_rtvar.h"
35#include "if_rtreg.h"
36
37#include <net/if.h>
38#include <net/if_arp.h>
39#include <net/ethernet.h>
40#include <net/if_dl.h>

--- 90 unchanged lines hidden (view full) ---

131#ifdef IF_RT_PHY_SUPPORT
132void rt_miibus_statchg(device_t);
133static int rt_miibus_readreg(device_t, int, int);
134static int rt_miibus_writereg(device_t, int, int, int);
135#endif
136static int rt_ifmedia_upd(struct ifnet *);
137static void rt_ifmedia_sts(struct ifnet *, struct ifmediareq *);
138
33
34#include "if_rtvar.h"
35#include "if_rtreg.h"
36
37#include <net/if.h>
38#include <net/if_arp.h>
39#include <net/ethernet.h>
40#include <net/if_dl.h>

--- 90 unchanged lines hidden (view full) ---

131#ifdef IF_RT_PHY_SUPPORT
132void rt_miibus_statchg(device_t);
133static int rt_miibus_readreg(device_t, int, int);
134static int rt_miibus_writereg(device_t, int, int, int);
135#endif
136static int rt_ifmedia_upd(struct ifnet *);
137static void rt_ifmedia_sts(struct ifnet *, struct ifmediareq *);
138
139SYSCTL_NODE(_hw, OID_AUTO, rt, CTLFLAG_RD, 0, "RT driver parameters");
139static SYSCTL_NODE(_hw, OID_AUTO, rt, CTLFLAG_RD, 0, "RT driver parameters");
140#ifdef IF_RT_DEBUG
141static int rt_debug = 0;
142SYSCTL_INT(_hw_rt, OID_AUTO, debug, CTLFLAG_RW, &rt_debug, 0,
143 "RT debug level");
144TUNABLE_INT("hw.rt.debug", &rt_debug);
145#endif
146
147static int

--- 2469 unchanged lines hidden ---
140#ifdef IF_RT_DEBUG
141static int rt_debug = 0;
142SYSCTL_INT(_hw_rt, OID_AUTO, debug, CTLFLAG_RW, &rt_debug, 0,
143 "RT debug level");
144TUNABLE_INT("hw.rt.debug", &rt_debug);
145#endif
146
147static int

--- 2469 unchanged lines hidden ---