Deleted Added
full compact
32c32
< * $FreeBSD: head/sys/dev/usb2/ethernet/if_cuereg.h 187378 2009-01-18 05:35:58Z thompsa $
---
> * $FreeBSD: head/sys/dev/usb2/ethernet/if_cuereg.h 188412 2009-02-09 22:02:38Z thompsa $
102d101
< #define CUE_MCAST_TABLE_LEN 64
119,121c118
< CUE_BULK_CS_WR,
< CUE_BULK_CS_RD,
< CUE_N_TRANSFER = 4,
---
> CUE_N_TRANSFER,
125c122,124
< struct ifnet *sc_ifp;
---
> struct usb2_ether sc_ue;
> struct mtx sc_mtx;
> struct usb2_xfer *sc_xfer[CUE_N_TRANSFER];
127,142c126,127
< struct usb2_config_td sc_config_td;
< struct usb2_callout sc_watchdog;
< struct mtx sc_mtx;
<
< device_t sc_dev;
< struct usb2_device *sc_udev;
< struct usb2_xfer *sc_xfer[CUE_N_TRANSFER];
<
< uint32_t sc_unit;
<
< uint16_t sc_flags;
< #define CUE_FLAG_READ_STALL 0x0010 /* wait for clearing of stall */
< #define CUE_FLAG_WRITE_STALL 0x0020 /* wait for clearing of stall */
< #define CUE_FLAG_LL_READY 0x0040 /* Lower Layer Ready */
< #define CUE_FLAG_HL_READY 0x0080 /* Higher Layer Ready */
< #define CUE_FLAG_INTR_STALL 0x0100 /* wait for clearing of stall */
---
> int sc_flags;
> #define CUE_FLAG_LINK 0x0001 /* got a link */
143a129,132
>
> #define CUE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
> #define CUE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
> #define CUE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)