Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5557987imm; Wed, 12 Sep 2018 07:45:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZc++VCkFJStH594UtnPlz2HyjkkiuGLwPS/six500KZNas1MRvvqZN5+EBq5G14jRt93BF X-Received: by 2002:a63:d857:: with SMTP id k23-v6mr2754552pgj.106.1536763543229; Wed, 12 Sep 2018 07:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536763543; cv=none; d=google.com; s=arc-20160816; b=ZM/NA5hKttMKFFnIYmOfWVcO3tu9UT0E1OkEhLCYvMO4KPQU4VmoMcwdTBeZl8/5E/ aLl7pQOhq27YOXd8a9947mMtWPDFvCGWiJm38pIhGtLJz+dODA9pRWj7s61HkqLGBIN6 uBN3r5U5szN7SIgQ4UO6HjcHnxXXD74CxHS5Tl1xetBRvP+qjsLvUSh95RLilTVxWI7p vq47TKgpm0Rd4iFFUWV1TDuAlj2JJHbo7szz0PWXeaLYpDO58cayVtwrF2lzxAulj/oN 5Neewz/jsHIdGRGuAOBQVxNjb8nxmBuoTRCgIHB0baed8Kv6FBTxXsDNjsTQvbcywLmE RQ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=I3XxS5+4Wb8421A88lUG79kx5etZ54OuSN5+RZUbY7A=; b=eQiwpYwe32f+mvcKV6miilZbbFuyDTDELDo3vSETcXneA1IGcpagRqtfwtPSqeVOHA GzULgAfOHsMw6UD5CBZHwIGf2tlTIIacWQO4/weLBUAT9EWJhj9OOyLHDaRJOMd6OvD7 DtDImxj62s/PtLrnuta0TluaP8Ai7SRO5TPKcYTWnm9bHsyt/5z8C7IwD7WyNHZ+/5eg BR4boDDN37KS8BcTZU8JpTZ5ZpsgRk3nJFOBpMwzdQL0Ho7FtVbCs/8qmGhvyJs3s2nz h9U+R5JgVRWmYYh1rEwVKL6xhsgRHHEkx7pGGuov+3aymSmeUzh+7w1IjyburVV2VdE6 ksWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t+30j7m6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20-v6si1454108pgk.120.2018.09.12.07.45.25; Wed, 12 Sep 2018 07:45:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t+30j7m6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728188AbeILTsY (ORCPT + 99 others); Wed, 12 Sep 2018 15:48:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:60506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726819AbeILTsX (ORCPT ); Wed, 12 Sep 2018 15:48:23 -0400 Received: from localhost.localdomain (unknown [192.55.54.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 202EB20890; Wed, 12 Sep 2018 14:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536763414; bh=yKljEVtdaoaWDOq+fXyi2HFOTsAsLv6SxqNeUvjjTCw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t+30j7m6jm4BgDlz5FsfKjssrTk82n8SCm8Ybjv/V5xXF+pc2tF7YJHaPK4IFG7ke Wc4SIyOPS+I0JLzFcmLjX59opHGa7mY58BfU5EF8xXYNiyF7OJrgSor4DGpGp4Qu3T v04CG3eFU8emUsCeuyj1/xh8+lkbgRRltOVzmetw= From: Alan Tull To: Greg Kroah-Hartman Cc: Moritz Fischer , Alan Tull , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH 3/5] docs: fpga: document fpga manager flags Date: Wed, 12 Sep 2018 09:43:25 -0500 Message-Id: <20180912144327.3130-4-atull@kernel.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180912144327.3130-1-atull@kernel.org> References: <20180912144327.3130-1-atull@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add flags #defines to kerneldoc documentation in a useful place. Signed-off-by: Alan Tull Acked-by: Moritz Fischer --- Documentation/driver-api/fpga/fpga-mgr.rst | 5 +++++ include/linux/fpga/fpga-mgr.h | 20 ++++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Documentation/driver-api/fpga/fpga-mgr.rst b/Documentation/driver-api/fpga/fpga-mgr.rst index 4b3825d..82b6dbb 100644 --- a/Documentation/driver-api/fpga/fpga-mgr.rst +++ b/Documentation/driver-api/fpga/fpga-mgr.rst @@ -184,6 +184,11 @@ API for implementing a new FPGA Manager driver API for programming an FPGA --------------------------- +FPGA Manager flags + +.. kernel-doc:: include/linux/fpga/fpga-mgr.h + :doc: FPGA Manager flags + .. kernel-doc:: include/linux/fpga/fpga-mgr.h :functions: fpga_image_info diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h index 8942e61..8ab5df7 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h @@ -53,12 +53,20 @@ enum fpga_mgr_states { FPGA_MGR_STATE_OPERATING, }; -/* - * FPGA Manager flags - * FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported - * FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting - * FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first - * FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed +/** + * DOC: FPGA Manager flags + * + * Flags used in the &fpga_image_info->flags field + * + * %FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported + * + * %FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting + * + * %FPGA_MGR_ENCRYPTED_BITSTREAM: indicates bitstream is encrypted + * + * %FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first + * + * %FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed */ #define FPGA_MGR_PARTIAL_RECONFIG BIT(0) #define FPGA_MGR_EXTERNAL_CONFIG BIT(1) -- 2.7.4