Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3947122ybb; Tue, 31 Mar 2020 15:29:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt/qi+kAkUNxa+79iMOmbEKbk6T/i+e2xYO1+faGs6FmH/Zh9dKbWxHIlL2zefKpgMW4isw X-Received: by 2002:a9d:b8c:: with SMTP id 12mr3328593oth.205.1585693798223; Tue, 31 Mar 2020 15:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585693798; cv=none; d=google.com; s=arc-20160816; b=wu2g7jPFmIYx58/bQqmtAlYJOektYgr6nRAunviBuPvrVNnOkMyBX5Rtp4uVg/YdcF HJTH8I+l2sllZlicQWZrjmkadRkFBum0/d6gkhVAhik+ut45z0bK6h99Jn4wfhmN5OKQ mgybPMHBo24vKLAT3uKDa/6UuSyqMgX0AFrEdm1xeY/QcYjH5oDfLNvHJP0I17wnKbmt ROkZ+2tFUti7/hekEx6v5aXHi8MFix22LGHQBrF1Lkm/y7+s90LLEzX0GopsDWOnczuA +kZnYndQb1cai4eQBkrZr+a5xSJHPT7X/WGNnDy59cVDYSlt3dm3hNESmL58cvCwJdXx fSQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EIvjO3useBmli2uM/TiwQHJ2Nhnb37wdo2/REgTIMZs=; b=buXcx/wBU8QeNXWP9L4Gr7mvIC8SD2QvDPXHm3Q5SKnPHy0RrpzTv6pLKbdU6HDhOS 30bkVCmctGvIAKuxhK2yqnyHcwF2xTKGbRCVQBQkvzK3crZ6ku+R4qvFLBlxp97TU8GD e57ut4a/K44ItgfZiPNdQAjTJtNpnZUfAeA9eQTAatwNXvW2jzfyVPfVqBhezdYTLvdO w3WohBsDkCzPbdugnHybdcq+ffO8qk2R/OM+kEzm5EE9ca2AICHRF5vUZnh/aavq1dn9 0yGHE8b0JhAYbCMxBEHX4nm+MFk/I1md6RCyZ0w/nXsWieM3i8B6NWadPo8+/r+uLaWR OnYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=1HPT3qPK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i132si111165oih.249.2020.03.31.15.29.41; Tue, 31 Mar 2020 15:29:58 -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=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=1HPT3qPK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731509AbgCaW3G (ORCPT + 99 others); Tue, 31 Mar 2020 18:29:06 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36607 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731498AbgCaW3F (ORCPT ); Tue, 31 Mar 2020 18:29:05 -0400 Received: by mail-qk1-f195.google.com with SMTP id d11so25005267qko.3 for ; Tue, 31 Mar 2020 15:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EIvjO3useBmli2uM/TiwQHJ2Nhnb37wdo2/REgTIMZs=; b=1HPT3qPKF4EF9BC3fvNrOGqBGrIGMEw/N6QnTXx2h0iMrwZt1fxApFa5I2f+PnrHpq IFOQRd9KYU4U3crhwvG1Tv69ZX4X/ZSZfkcJB0F/4LmS404Ny9okaNvOZWH6Vx//JCcY HXFOuJmYWOJoNc69bF/N4pTLr6dU68Uq8znrzmBf9088qdZKMOTeMrpsQuK1c0b79KE0 7fOcHlBBEqJlkIZ8VWS5DKaCbAPERXmQHVwiNZbB+mCv5DcWUQOfAYyt6Rp8hnkGCwkE 4F5beE/fL1IhefnVEvRBmFGs2ldU4cFy5nOwJElFwcyiXtXfote4mRslLOF0AdgaHynN YqvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EIvjO3useBmli2uM/TiwQHJ2Nhnb37wdo2/REgTIMZs=; b=TBOlkStVC7YSXxsMCDVYnjSq1SARwSQTWbbnyR0xShsz6+1cYhox/Kn1JJD6Efw/cu 1UMQnHQV6ULea1msE6Ehu66RtRpspethC8AlQgYpQ0OZqjXxiVqs9Ql/oH+RVLKX8ckL DOodv0ec082LVn8buHZDxynu+UDBi+k+JdfOfZDxfqkUQeyZBrOhLmLo9BGMhaFdJyQ9 nVBhANtUFuK4DIJ9T/WHLzp0p/BfPeU3P+wOXZZeVD3zAbb1uprYPx3693ganWroxJSo AfgihhNb0PohuNMi3/pzJP83m+LWpXiKaO4xyB6auPXTdecPBMQ6ctnE2LmdthaKiK4u cV1w== X-Gm-Message-State: ANhLgQ00lQW0zC0Cx+4uqxQRm8Yi2Wi9b7AUol9evtFAByRzx7IqLkxk DEFGVw6m4C1sye0IdG7PUiQ4DiM92UXVKg== X-Received: by 2002:a37:a397:: with SMTP id m145mr6970037qke.411.1585693743617; Tue, 31 Mar 2020 15:29:03 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id 206sm238659qkn.36.2020.03.31.15.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 15:29:03 -0700 (PDT) From: Vitor Massaru Iha To: linux-doc@vger.kernel.org Cc: corbet@lwn.net, linux-kernel@vger.kernel.org, brendanhiggins@google.com, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH 1/2] Documentation: filesystems: Convert sysfs-pci to ReST Date: Tue, 31 Mar 2020 19:28:56 -0300 Message-Id: <637c0379a76fcf4eb6cdde0de3cc727203fd942f.1585693146.git.vitor@massaru.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Vitor Massaru Iha --- .../{sysfs-pci.txt => sysfs-pci.rst} | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) rename Documentation/filesystems/{sysfs-pci.txt => sysfs-pci.rst} (82%) diff --git a/Documentation/filesystems/sysfs-pci.txt b/Documentation/filesystems/sysfs-pci.rst similarity index 82% rename from Documentation/filesystems/sysfs-pci.txt rename to Documentation/filesystems/sysfs-pci.rst index 06f1d64c6f70..9b93e7444b15 100644 --- a/Documentation/filesystems/sysfs-pci.txt +++ b/Documentation/filesystems/sysfs-pci.rst @@ -1,5 +1,8 @@ +.. SPDX-License-Identifier: GPL-2.0 + +============================================ Accessing PCI device resources through sysfs --------------------------------------------- +============================================ sysfs, usually mounted at /sys, provides access to PCI resources on platforms that support it. For example, a given bus might look like this: @@ -30,23 +33,24 @@ This bus contains a single function device in slot 0. The domain and bus numbers are reproduced for convenience. Under the device directory are several files, each with their own function. - file function - ---- -------- - class PCI class (ascii, ro) - config PCI config space (binary, rw) - device PCI device (ascii, ro) - enable Whether the device is enabled (ascii, rw) - irq IRQ number (ascii, ro) - local_cpus nearby CPU mask (cpumask, ro) - remove remove device from kernel's list (ascii, wo) - resource PCI resource host addresses (ascii, ro) - resource0..N PCI resource N, if present (binary, mmap, rw[1]) - resource0_wc..N_wc PCI WC map resource N, if prefetchable (binary, mmap) - revision PCI revision (ascii, ro) - rom PCI ROM resource, if present (binary, ro) - subsystem_device PCI subsystem device (ascii, ro) - subsystem_vendor PCI subsystem vendor (ascii, ro) - vendor PCI vendor (ascii, ro) + file function + =================== ====================================================== + class PCI class (ascii, ro) + config PCI config space (binary, rw) + device PCI device (ascii, ro) + enable Whether the device is enabled (ascii, rw) + irq IRQ number (ascii, ro) + local_cpus nearby CPU mask (cpumask, ro) + remove remove device from kernel's list (ascii, wo) + resource PCI resource host addresses (ascii, ro) + resource0..N PCI resource N, if present (binary, mmap, rw[1]) + resource0_wc..N_wc PCI WC map resource N, if prefetchable (binary, mmap) + revision PCI revision (ascii, ro) + rom PCI ROM resource, if present (binary, ro) + subsystem_device PCI subsystem device (ascii, ro) + subsystem_vendor PCI subsystem vendor (ascii, ro) + vendor PCI vendor (ascii, ro) + =================== ====================================================== ro - read only file rw - file is readable and writable -- 2.21.1