From owner-svn-src-projects@FreeBSD.ORG Fri Jun 25 01:03:11 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24BCF106566B; Fri, 25 Jun 2010 01:03:11 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 138088FC12; Fri, 25 Jun 2010 01:03:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o5P13ASx053052; Fri, 25 Jun 2010 01:03:10 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5P13AQQ053046; Fri, 25 Jun 2010 01:03:10 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201006250103.o5P13AQQ053046@svn.freebsd.org> From: Jeff Roberson Date: Fri, 25 Jun 2010 01:03:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r209519 - in projects/ofed/head/contrib/ofed/usr.lib: . libibverbs libmlx4 libmthca X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2010 01:03:11 -0000 Author: jeff Date: Fri Jun 25 01:03:10 2010 New Revision: 209519 URL: http://svn.freebsd.org/changeset/base/209519 Log: - Add bmake files for ofed libraries. Sponsored by: Isilon Systems, iX Systems, and Panasas. Added: projects/ofed/head/contrib/ofed/usr.lib/ projects/ofed/head/contrib/ofed/usr.lib/libibverbs/ projects/ofed/head/contrib/ofed/usr.lib/libibverbs/Makefile projects/ofed/head/contrib/ofed/usr.lib/libibverbs/alloca.h projects/ofed/head/contrib/ofed/usr.lib/libibverbs/config.h projects/ofed/head/contrib/ofed/usr.lib/libmlx4/ projects/ofed/head/contrib/ofed/usr.lib/libmlx4/Makefile projects/ofed/head/contrib/ofed/usr.lib/libmlx4/config.h projects/ofed/head/contrib/ofed/usr.lib/libmthca/ projects/ofed/head/contrib/ofed/usr.lib/libmthca/Makefile projects/ofed/head/contrib/ofed/usr.lib/libmthca/config.h Added: projects/ofed/head/contrib/ofed/usr.lib/libibverbs/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/usr.lib/libibverbs/Makefile Fri Jun 25 01:03:10 2010 (r209519) @@ -0,0 +1,39 @@ +# $FreeBSD$ + +SHLIBDIR?= /usr/lib + +.include + +IBVERBSDIR= ../../libibverbs +IBSRCDIR= ${IBVERBSDIR}/src +IBMANDIR= ${IBVERBSDIR}/man +OFEDSYS= ../../../../sys/ofed + +.PATH: ${IBSRCDIR} ${IBMANDIR} + +LIB= ibverbs +SHLIB_MAJOR= 1 +NO_PROFILE= + +SRCS= device.c init.c marshall.c verbs.c cmd.c enum_strs.c kern_abi.h \ + memory.c compat-1_0.c sysfs.c + +MAN= ibv_alloc_pd.3 ibv_asyncwatch.1 ibv_attach_mcast.3 ibv_create_ah.3 \ + ibv_create_ah_from_wc.3 ibv_create_comp_channel.3 ibv_create_cq.3 \ + ibv_create_qp.3 ibv_create_srq.3 ibv_devices.1 ibv_devinfo.1 \ + ibv_event_type_str.3 ibv_fork_init.3 ibv_get_async_event.3 \ + ibv_get_cq_event.3 ibv_get_device_guid.3 ibv_get_device_list.3 \ + ibv_get_device_name.3 ibv_modify_qp.3 ibv_modify_srq.3 \ + ibv_open_device.3 ibv_poll_cq.3 ibv_post_recv.3 ibv_post_send.3 \ + ibv_post_srq_recv.3 ibv_query_device.3 ibv_query_gid.3 \ + ibv_query_pkey.3 ibv_query_port.3 ibv_query_qp.3 ibv_query_srq.3 \ + ibv_rate_to_mult.3 ibv_rc_pingpong.1 ibv_reg_mr.3 ibv_req_notify_cq.3 \ + ibv_resize_cq.3 ibv_srq_pingpong.1 ibv_uc_pingpong.1 ibv_ud_pingpong.1 + + +CFLAGS+= -DHAVE_CONFIG_H -DIBV_CONFIG_DIR=\"/etc/ibverbs/\" +CFLAGS+= -I${.CURDIR} -I${IBSRCDIR} -I${IBVERBSDIR}/include -I${OFEDSYS}/include + +VERSION_MAP= ${IBSRCDIR}/libibverbs.map + +.include Added: projects/ofed/head/contrib/ofed/usr.lib/libibverbs/alloca.h ============================================================================== Added: projects/ofed/head/contrib/ofed/usr.lib/libibverbs/config.h ============================================================================== Added: projects/ofed/head/contrib/ofed/usr.lib/libmlx4/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/usr.lib/libmlx4/Makefile Fri Jun 25 01:03:10 2010 (r209519) @@ -0,0 +1,26 @@ +# $FreeBSD$ + +SHLIBDIR?= /usr/lib + +.include + +MLX4DIR= ../../libmlx4 +IBVERBSDIR= ../../libibverbs +MLXSRCDIR= ${MLX4DIR}/src +OFEDSYS= ../../../../sys/ofed + +.PATH: ${MLXSRCDIR} + +LIB= mlx4 +SHLIB_MAJOR= 1 +NO_PROFILE= + +SRCS= buf.c cq.c dbrec.c mlx4.c qp.c srq.c verbs.c + +CFLAGS+= -DHAVE_CONFIG_H +CFLAGS+= -I${.CURDIR} -I${MLXSRCDIR} -I${IBVERBSDIR}/include +CFLAGS+= -I${OFEDSYS}/include + +VERSION_MAP= ${MLXSRCDIR}/mlx4.map + +.include Added: projects/ofed/head/contrib/ofed/usr.lib/libmlx4/config.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/usr.lib/libmlx4/config.h Fri Jun 25 01:03:10 2010 (r209519) @@ -0,0 +1,4 @@ +#define HAVE_IBV_DONTFORK_RANGE +#define HAVE_IBV_DOFORK_RANGE +#define HAVE_IBV_REGISTER_DRIVER +#define HAVE_IBV_READ_SYSFS_FILE Added: projects/ofed/head/contrib/ofed/usr.lib/libmthca/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/usr.lib/libmthca/Makefile Fri Jun 25 01:03:10 2010 (r209519) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +SHLIBDIR?= /usr/lib + +.include + +MTHCADIR= ../../libmthca +IBVERBSDIR= ../../libibverbs +MTHCASRCDIR= ${MTHCADIR}/src +OFEDSYS= ../../../../sys/ofed + +.PATH: ${MTHCASRCDIR} + +LIB= mthca +SHLIB_MAJOR= 1 +NO_PROFILE= + +SRCS= ah.c buf.c cq.c memfree.c mthca.c qp.c srq.c verbs.c + + +CFLAGS+= -DHAVE_CONFIG_H +CFLAGS+= -I${.CURDIR} -I${MTHCASRCDIR} -I${IBVERBSDIR}/include +CFLAGS+= -I${OFEDSYS}/include + +VERSION_MAP= ${MTHCASRCDIR}/mthca.map + +.include Added: projects/ofed/head/contrib/ofed/usr.lib/libmthca/config.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/ofed/head/contrib/ofed/usr.lib/libmthca/config.h Fri Jun 25 01:03:10 2010 (r209519) @@ -0,0 +1,9 @@ +#define HAVE_IBV_DONTFORK_RANGE +#define HAVE_IBV_DOFORK_RANGE +#define HAVE_IBV_REGISTER_DRIVER +#define HAVE_IBV_READ_SYSFS_FILE +#ifdef __LP64__ +#define SIZEOF_LONG 8 +#else +#define SIZEOF_LONG 4 +#endif