Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4906478ooa; Tue, 14 Aug 2018 12:17:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyh5t/yeri8VuSREQPNJJgjXTVxDdljKwXrSPncilf3BBpYqprusUkFICuwcDVCf5zyy2Fd X-Received: by 2002:a17:902:24e:: with SMTP id 72-v6mr21365559plc.74.1534274220533; Tue, 14 Aug 2018 12:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534274220; cv=none; d=google.com; s=arc-20160816; b=FEL672/lTEwJfyYoEToYJw7X9FYo2sgmAcTaT4iQu5xcUYkm8hSn+zrZN7OIvp50mr 5+S8BwpY/HbhfwLjd4yMn7OrWJzBYzAMVi6CtOvpHZd4tHPlUG2FL+B7cnUeMmQPuvLr jhjDVBh8WPNA7vW7u2xYD0mwmCdP2Z1jyd++WV6Q9d8SaB8dTN3cy0C9qDXZSeevoDzG UTL8nNjzGXxkCQs15GnQelgCmJNRwP0D9rXpnu4bCdikhdr5EywTo2x+cFIj0Bqjquvx KKV9dCaqDFbdKgNBXdBtN/jSNjL4GKHuS3M991A4mwCI+PBoAJiT70CcrXX8mrndtZhD y4EA== 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:arc-authentication-results; bh=jYrcv00jfys9GJNWCuOeoFP8r0r6zCPEHqjO9OEdKV4=; b=x8dCc8pdUm8iT4f8SrMIw3xpyN8SqemU2uL7p5hxs5yi4UiDXzpVRHFi+NJt9n7CBi yE0TvqyrOWptRSAmdcWPIFJr/L+IpPjpie+wPKJX6fJMtPVqd9ATMEmBfoNDIf8ar07Q uorRfhRxB8maftzzCVrInCBJ0I7bAslE67xGSJdqtl/+Lmruo1uuE5MUNvHTpKhlbiAV g+ycFNmeaWZDJbB91Ik4bLPGrySpAVK3Y5YLL0CbRbaCv3WX8QNId4uMAJ22XObzYv4v B8AUgSlnZhHIUhXrGSmMQENlMV5k8+NU2a5TwyXtCP2XwgBQcBJKmDjnW/kTrV+KmGCj TrTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SkNAGkj9; 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 d17-v6si17996588pgp.549.2018.08.14.12.16.45; Tue, 14 Aug 2018 12:17:00 -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=SkNAGkj9; 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 S1730099AbeHNWEQ (ORCPT + 99 others); Tue, 14 Aug 2018 18:04:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:50952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730004AbeHNWEP (ORCPT ); Tue, 14 Aug 2018 18:04:15 -0400 Received: from localhost.localdomain (unknown [192.55.54.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B8F0E2172B; Tue, 14 Aug 2018 19:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534274138; bh=pWWMwnbd02elfRJzVpfdowZMWmN32d+r/R5GZjcXNpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SkNAGkj9FLYTMGDrXEV4r0wTJmQ+CG+HrzzRnMEatVh5fQm57GV/SS2V1bygBnuXD yqAJuSA5HJaFTP9uk/xqMoWqYN+SY/J2Es7nFMrMDkw14jEtm7pat3nprZYvucgM50 d5gliufK1BgVWQCT5Kl2izCDFU4nsENmFCTfZ00Q= From: Alan Tull To: Moritz Fischer , Jonathan Corbet Cc: Randy Dunlap , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, linux-doc@vger.kernel.org, Alan Tull Subject: [PATCH 7/8] docs: fpga: document fpga manager flags Date: Tue, 14 Aug 2018 14:15:25 -0500 Message-Id: <20180814191526.3247-8-atull@kernel.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180814191526.3247-1-atull@kernel.org> References: <20180814191526.3247-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 --- Documentation/driver-api/fpga/fpga-mgr.rst | 5 +++++ include/linux/fpga/fpga-mgr.h | 18 ++++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/Documentation/driver-api/fpga/fpga-mgr.rst b/Documentation/driver-api/fpga/fpga-mgr.rst index 431556d..db8885e 100644 --- a/Documentation/driver-api/fpga/fpga-mgr.rst +++ b/Documentation/driver-api/fpga/fpga-mgr.rst @@ -183,6 +183,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 1ca02ce..777c502 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h @@ -53,12 +53,18 @@ 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_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