if_udavreg.h (190749) | if_udavreg.h (192984) |
---|---|
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 190749 2009-04-05 21:24:15Z piso $ */ | 3/* $FreeBSD: head/sys/dev/usb/net/if_udavreg.h 192984 2009-05-28 17:36:36Z 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 --- 135 unchanged lines hidden (view full) --- 147enum { 148 UDAV_BULK_DT_WR, 149 UDAV_BULK_DT_RD, 150 UDAV_INTR_DT_RD, 151 UDAV_N_TRANSFER, 152}; 153 154struct udav_softc { | 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 --- 135 unchanged lines hidden (view full) --- 147enum { 148 UDAV_BULK_DT_WR, 149 UDAV_BULK_DT_RD, 150 UDAV_INTR_DT_RD, 151 UDAV_N_TRANSFER, 152}; 153 154struct udav_softc { |
155 struct usb2_ether sc_ue; | 155 struct usb_ether sc_ue; |
156 struct mtx sc_mtx; | 156 struct mtx sc_mtx; |
157 struct usb2_xfer *sc_xfer[UDAV_N_TRANSFER]; | 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}; 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) | 158 159 int sc_flags; 160#define UDAV_FLAG_LINK 0x0001 161#define UDAV_FLAG_EXT_PHY 0x0040 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) |