svn commit: r213855 - user/weongyo/usb/sys/dev/usb

Weongyo Jeong weongyo at FreeBSD.org
Thu Oct 14 21:09:05 UTC 2010


Author: weongyo
Date: Thu Oct 14 21:09:04 2010
New Revision: 213855
URL: http://svn.freebsd.org/changeset/base/213855

Log:
  Moves two macros for userland parts.

Modified:
  user/weongyo/usb/sys/dev/usb/usb_pf.c
  user/weongyo/usb/sys/dev/usb/usb_pf.h

Modified: user/weongyo/usb/sys/dev/usb/usb_pf.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_pf.c	Thu Oct 14 21:07:09 2010	(r213854)
+++ user/weongyo/usb/sys/dev/usb/usb_pf.c	Thu Oct 14 21:09:04 2010	(r213855)
@@ -1449,13 +1449,6 @@ usbpf_buf_reclaimed(struct usbpf_d *ud)
 	}
 }
 
-/*
- * Alignment macros.  USBPF_WORDALIGN rounds up to the next
- * even multiple of USBPF_ALIGNMENT.
- */
-#define	USBPF_ALIGNMENT sizeof(long)
-#define	USBPF_WORDALIGN(x) (((x)+(USBPF_ALIGNMENT-1))&~(USBPF_ALIGNMENT-1))
-
 #define	SIZEOF_USBPF_HDR(type)	\
     (offsetof(type, uh_hdrlen) + sizeof(((type *)0)->uh_hdrlen))
 

Modified: user/weongyo/usb/sys/dev/usb/usb_pf.h
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_pf.h	Thu Oct 14 21:07:09 2010	(r213854)
+++ user/weongyo/usb/sys/dev/usb/usb_pf.h	Thu Oct 14 21:09:04 2010	(r213855)
@@ -52,6 +52,13 @@ typedef	u_int64_t usbpf_u_int64;
 struct usbpf_if;
 
 /*
+ * Alignment macros.  USBPF_WORDALIGN rounds up to the next
+ * even multiple of USBPF_ALIGNMENT.
+ */
+#define	USBPF_ALIGNMENT sizeof(long)
+#define	USBPF_WORDALIGN(x) (((x)+(USBPF_ALIGNMENT-1))&~(USBPF_ALIGNMENT-1))
+
+/*
  * The instruction encodings.
  */
 


More information about the svn-src-user mailing list