if_udavreg.h (196219) | if_udavreg.h (238466) |
---|---|
1/* $NetBSD: if_udavreg.h,v 1.2 2003/09/04 15:17:39 tsutsui Exp $ */ 2/* $nabe: if_udavreg.h,v 1.2 2003/08/21 16:26:40 nabe Exp $ */ | 1/* $NetBSD: if_udavreg.h,v 1.2 2003/09/04 15:17:39 tsutsui Exp $ */ 2/* $nabe: if_udavreg.h,v 1.2 2003/08/21 16:26:40 nabe Exp $ */ |
3/* $FreeBSD: head/sys/dev/usb/net/if_udavreg.h 196219 2009-08-14 20:03:53Z jhb $ */ | 3/* $FreeBSD: head/sys/dev/usb/net/if_udavreg.h 238466 2012-07-15 05:49:02Z rpaulo $ */ |
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 --- 142 unchanged lines hidden (view full) --- 154struct udav_softc { 155 struct usb_ether sc_ue; 156 struct mtx sc_mtx; 157 struct usb_xfer *sc_xfer[UDAV_N_TRANSFER]; 158 159 int sc_flags; 160#define UDAV_FLAG_LINK 0x0001 161#define UDAV_FLAG_EXT_PHY 0x0040 | 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 --- 142 unchanged lines hidden (view full) --- 154struct udav_softc { 155 struct usb_ether sc_ue; 156 struct mtx sc_mtx; 157 struct usb_xfer *sc_xfer[UDAV_N_TRANSFER]; 158 159 int sc_flags; 160#define UDAV_FLAG_LINK 0x0001 161#define UDAV_FLAG_EXT_PHY 0x0040 |
162#define UDAV_FLAG_NO_PHY 0x0080 |
|
162}; 163 164#define UDAV_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 165#define UDAV_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 166#define UDAV_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t) | 163}; 164 165#define UDAV_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 166#define UDAV_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 167#define UDAV_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t) |