Deleted Added
full compact
if_udav.c (192499) if_udav.c (192502)
1/* $NetBSD: if_udav.c,v 1.2 2003/09/04 15:17:38 tsutsui Exp $ */
2/* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */
1/* $NetBSD: if_udav.c,v 1.2 2003/09/04 15:17:38 tsutsui Exp $ */
2/* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */
3/* $FreeBSD: head/sys/dev/usb/net/if_udav.c 192499 2009-05-21 00:04:17Z thompsa $ */
3/* $FreeBSD: head/sys/dev/usb/net/if_udav.c 192502 2009-05-21 01:48:42Z thompsa $ */
4/*-
5 * Copyright (c) 2003
6 * Shingo WATANABE <nabe@nabechan.org>. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright

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

39
40/*
41 * TODO:
42 * Interrupt Endpoint support
43 * External PHYs
44 */
45
46#include <sys/cdefs.h>
4/*-
5 * Copyright (c) 2003
6 * Shingo WATANABE <nabe@nabechan.org>. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright

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

39
40/*
41 * TODO:
42 * Interrupt Endpoint support
43 * External PHYs
44 */
45
46#include <sys/cdefs.h>
47__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_udav.c 192499 2009-05-21 00:04:17Z thompsa $");
47__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_udav.c 192502 2009-05-21 01:48:42Z thompsa $");
48
49#include "usbdevs.h"
50#include <dev/usb/usb.h>
51#include <dev/usb/usb_mfunc.h>
52#include <dev/usb/usb_error.h>
53
54#define USB_DEBUG_VAR udav_debug
55

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

169 .ue_setpromisc = udav_setpromisc,
170 .ue_mii_upd = udav_ifmedia_upd,
171 .ue_mii_sts = udav_ifmedia_status,
172};
173
174#if USB_DEBUG
175static int udav_debug = 0;
176
48
49#include "usbdevs.h"
50#include <dev/usb/usb.h>
51#include <dev/usb/usb_mfunc.h>
52#include <dev/usb/usb_error.h>
53
54#define USB_DEBUG_VAR udav_debug
55

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

169 .ue_setpromisc = udav_setpromisc,
170 .ue_mii_upd = udav_ifmedia_upd,
171 .ue_mii_sts = udav_ifmedia_status,
172};
173
174#if USB_DEBUG
175static int udav_debug = 0;
176
177SYSCTL_NODE(_hw_usb2, OID_AUTO, udav, CTLFLAG_RW, 0, "USB udav");
178SYSCTL_INT(_hw_usb2_udav, OID_AUTO, debug, CTLFLAG_RW, &udav_debug, 0,
177SYSCTL_NODE(_hw_usb, OID_AUTO, udav, CTLFLAG_RW, 0, "USB udav");
178SYSCTL_INT(_hw_usb_udav, OID_AUTO, debug, CTLFLAG_RW, &udav_debug, 0,
179 "Debug level");
180#endif
181
182#define UDAV_SETBIT(sc, reg, x) \
183 udav_csr_write1(sc, reg, udav_csr_read1(sc, reg) | (x))
184
185#define UDAV_CLRBIT(sc, reg, x) \
186 udav_csr_write1(sc, reg, udav_csr_read1(sc, reg) & ~(x))

--- 654 unchanged lines hidden ---
179 "Debug level");
180#endif
181
182#define UDAV_SETBIT(sc, reg, x) \
183 udav_csr_write1(sc, reg, udav_csr_read1(sc, reg) | (x))
184
185#define UDAV_CLRBIT(sc, reg, x) \
186 udav_csr_write1(sc, reg, udav_csr_read1(sc, reg) & ~(x))

--- 654 unchanged lines hidden ---