Date: Thu, 29 Jul 2010 02:21:51 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r210592 - projects/ofed/head/sys/ofed/include/asm Message-ID: <201007290221.o6T2LpO7001859@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jeff Date: Thu Jul 29 02:21:51 2010 New Revision: 210592 URL: http://svn.freebsd.org/changeset/base/210592 Log: - Add be16_add_cpu for mthca support. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/asm/byteorder.h Modified: projects/ofed/head/sys/ofed/include/asm/byteorder.h ============================================================================== --- projects/ofed/head/sys/ofed/include/asm/byteorder.h Thu Jul 29 02:21:18 2010 (r210591) +++ projects/ofed/head/sys/ofed/include/asm/byteorder.h Thu Jul 29 02:21:51 2010 (r210592) @@ -81,4 +81,10 @@ #define swab32 bswap32 #define swab64 bswap64 +static inline void +be16_add_cpu(u16 *var, u16 val) +{ + *var = cpu_to_be16(be16_to_cpu(*var) + val); +} + #endif /* _ASM_BYTEORDER_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007290221.o6T2LpO7001859>