Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 12:50:13 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341959 - in stable/12/sys: dev/mlx5 dev/mlx5/mlx5_fpga_tools modules/mlx5fpga_tools
Message-ID:  <201812121250.wBCCoDrC092464@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Dec 12 12:50:13 2018
New Revision: 341959
URL: https://svnweb.freebsd.org/changeset/base/341959

Log:
  MFC r341573 and r341643:
  mlx5fpga_tools initial code import.
  
  Submitted by:   kib@
  Sponsored by:   Mellanox Technologies

Added:
  stable/12/sys/dev/mlx5/mlx5_fpga_tools/
     - copied from r341573, head/sys/dev/mlx5/mlx5_fpga_tools/
  stable/12/sys/modules/mlx5fpga_tools/
     - copied from r341573, head/sys/modules/mlx5fpga_tools/
Modified:
  stable/12/sys/dev/mlx5/mlx5io.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mlx5/mlx5io.h
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5io.h	Wed Dec 12 12:46:12 2018	(r341958)
+++ stable/12/sys/dev/mlx5/mlx5io.h	Wed Dec 12 12:50:13 2018	(r341959)
@@ -97,4 +97,15 @@ enum mlx5_fpga_access_type {
 	MLX5_FPGA_ACCESS_TYPE_MAX = MLX5_FPGA_ACCESS_TYPE_DONTCARE,
 };
 
+#define	MLX5_FPGA_CAP_ARR_SZ 0x40
+
+#define	MLX5_FPGA_ACCESS_TYPE	_IOWINT('m', 0x80)
+#define	MLX5_FPGA_LOAD		_IOWINT('m', 0x81)
+#define	MLX5_FPGA_RESET		_IO('m', 0x82)
+#define	MLX5_FPGA_IMAGE_SEL	_IOWINT('m', 0x83)
+#define	MLX5_FPGA_QUERY		_IOR('m', 0x84, struct mlx5_fpga_query)
+#define	MLX5_FPGA_CAP		_IOR('m', 0x85, uint32_t[MLX5_FPGA_CAP_ARR_SZ])
+
+#define	MLX5_FPGA_TOOLS_NAME_SUFFIX	"_mlx5_fpga_tools"
+
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812121250.wBCCoDrC092464>