Date: Thu, 14 Oct 2010 21:09:04 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r213855 - user/weongyo/usb/sys/dev/usb Message-ID: <201010142109.o9EL94Xu037159@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010142109.o9EL94Xu037159>