Date: Tue, 23 Dec 2008 04:10:51 GMT From: Weongyo Jeong <weongyo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 155146 for review Message-ID: <200812230410.mBN4ApQl097600@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=155146 Change 155146 by weongyo@weongyo_ws on 2008/12/23 04:10:13 style(9) Affected files ... .. //depot/projects/ndisusb/sys/dev/if_ndis/if_ndisvar.h#9 edit Differences ... ==== //depot/projects/ndisusb/sys/dev/if_ndis/if_ndisvar.h#9 (text+ko) ==== @@ -113,10 +113,10 @@ }; #define NDIS_VAP(vap) ((struct ndis_vap *)(vap)) -#define NDISUSB_CONFIG_NO 1 +#define NDISUSB_CONFIG_NO 1 #define NDISUSB_IFACE_INDEX 0 -#define NDISUSB_INTR_TIMEOUT 1000 -#define NDISUSB_TX_TIMEOUT 10000 +#define NDISUSB_INTR_TIMEOUT 1000 +#define NDISUSB_TX_TIMEOUT 10000 struct ndisusb_xfer { usbd_xfer_handle nx_xfer; usbd_private_handle nx_priv; @@ -204,27 +204,27 @@ io_workitem *ndisusb_xferitem; list_entry ndisusb_xferlist; kspin_lock ndisusb_xferlock; -#define NDISUSB_ENDPT_BOUT 0 -#define NDISUSB_ENDPT_BIN 1 -#define NDISUSB_ENDPT_IIN 2 -#define NDISUSB_ENDPT_IOUT 3 -#define NDISUSB_ENDPT_MAX 4 +#define NDISUSB_ENDPT_BOUT 0 +#define NDISUSB_ENDPT_BIN 1 +#define NDISUSB_ENDPT_IIN 2 +#define NDISUSB_ENDPT_IOUT 3 +#define NDISUSB_ENDPT_MAX 4 usbd_pipe_handle ndisusb_ep[NDISUSB_ENDPT_MAX]; char *ndisusb_iin_buf; int ndisusb_status; #define NDISUSB_STATUS_DETACH 0x1 }; -#define NDISMTX_LOCK(_sc) mtx_lock(&(_sc)->ndis_mtx) -#define NDISMTX_UNLOCK(_sc) mtx_unlock(&(_sc)->ndis_mtx) -#define NDISUSB_LOCK(_sc) mtx_lock(&Giant) -#define NDISUSB_UNLOCK(_sc) mtx_unlock(&Giant) -#define NDIS_LOCK(_sc) do { \ +#define NDISMTX_LOCK(_sc) mtx_lock(&(_sc)->ndis_mtx) +#define NDISMTX_UNLOCK(_sc) mtx_unlock(&(_sc)->ndis_mtx) +#define NDISUSB_LOCK(_sc) mtx_lock(&Giant) +#define NDISUSB_UNLOCK(_sc) mtx_unlock(&Giant) +#define NDIS_LOCK(_sc) do { \ if ((_sc)->ndis_iftype == PNPBus) \ NDISUSB_LOCK(_sc); \ NDISMTX_LOCK(_sc); \ } while (0) -#define NDIS_UNLOCK(_sc) do { \ +#define NDIS_UNLOCK(_sc) do { \ if ((_sc)->ndis_iftype == PNPBus) \ NDISUSB_UNLOCK(_sc); \ NDISMTX_UNLOCK(_sc); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812230410.mBN4ApQl097600>