Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1471834pxy; Thu, 6 May 2021 08:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQgw7b45NH/Kba3V/5rISpHvdoS6L9RAW+WOVctOHAFE9lxqOoQeVO/dAy7kBVNSX6XaKy X-Received: by 2002:a05:6a00:882:b029:24b:afda:acfa with SMTP id q2-20020a056a000882b029024bafdaacfamr5374113pfj.72.1620315467316; Thu, 06 May 2021 08:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620315467; cv=none; d=google.com; s=arc-20160816; b=f1dgIiPNOZ3UZL6imGEPoKbElkoQMhnVRWunLsmKCDDlnmiJ32HYJ2DAL3qnY1rK8O 4suCUWGMqRTtg8xt2Tlpdq7BT9ahF66Up+bbXPLxQ+BK6QRBykTP0TgDso3VChjY/b1o Nef7HSTT+GYJ63SMCiSD2O2R+/yyehuvlH+SqB4rqxQHNl5TFIfTwrNKSD2iokgPUjiQ 68Na7Z2vhFh6XqUzGq/czRHUEMIKdZODKazpw4f2LP3hl7NkuRqCBUUT1KXHdCh+8tSz RO5JV+5oo6SzuyncIwZn/LfgxuS5BKHCUwZ0vZZZuXFmqc0zZfajkeYemUmhLJi94xcj jfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=a7oAqRLBBduyA4zBl/G9dUcUcITaSsmHtoA3f2FyUbo=; b=SSeJoKrB7Iy1Exqn3gI4MiYJMlnaHjErMiX9Xq9NkkadhjO9FWHhEsSUyjAPtKr/0M gnK/stTHV6b16UdnoiOCtAdLwPkFve/dmGg7KRDoB3h9q/x9w/8c8XC9Ztw863oU8Mob 5vTafiibyXgqG4lyCFgqEHUX/oI45Zd8l5T/SiLS3onptkX6/TYn/laJwfTKD4sea6GC Fcou7aYAtJNz102E6R3eX/rEKSfKt5IDR2r+FP5Go9QmZzUEbPhrJ8jgEWV9IoPkiH/H wdckZawq7M4J3rBPW6Ux/z1xmOhgRQC+4c0a4U75ZlrhmA49sYjGTA89jbXjR3lsmURD iB7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lu3gn9NO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id w35si282662pgl.208.2021.05.06.08.37.33; Thu, 06 May 2021 08:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lu3gn9NO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236363AbhEFPfy (ORCPT + 99 others); Thu, 6 May 2021 11:35:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:45966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbhEFPdq (ORCPT ); Thu, 6 May 2021 11:33:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E7C16613F1; Thu, 6 May 2021 15:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620315168; bh=bSHnjsAOWAaXk6MagAsbXeDOrNG/Ncxs7ohUVA+0BuE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lu3gn9NOUBT7/7SrdpU1mDws9aNot/XnGNu0fjUxvHANFgbHn4gXB8fYhrelVusFa 1pEA5vHqN+9XcnaiySPOaNU+e9WaaJj/ga7If4f9jXUIYoez1bWWqo1DG0Yw99juHu P6c2SRhEVglPp83VITcK2MHrHkQvd6cLq6/sGYap+959HFAkG/XsoFc37e1q5JHJkE LBrqmtWlKbQYhiZhiiO8IhGvDrhxHe2jJXz23Ja6ehS+9TeOoSJxu/1HACsLWpPwL3 dMDk2old8ySWch484OOCcBMyF62Q+wXpCKSGl60tCNnu1w7P9R+i1T0QekDJNj1Xag UOHo8CjY/1SXw== Received: by pali.im (Postfix) id 50B861206; Thu, 6 May 2021 17:32:46 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , Thomas Petazzoni , Rob Herring , Bjorn Helgaas Cc: Russell King , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Remi Pommarel , Xogium , Tomasz Maciej Nowak , Marc Zyngier , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/42] PCI: Add PCI_EXP_DEVCTL_PAYLOAD_* macros Date: Thu, 6 May 2021 17:31:19 +0200 Message-Id: <20210506153153.30454-9-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210506153153.30454-1-pali@kernel.org> References: <20210506153153.30454-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define a macro PCI_EXP_DEVCTL_PAYLOAD_* for every possible Max Payload Size in linux/pci_regs.h, in the same style as PCI_EXP_DEVCTL_READRQ_*. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- include/uapi/linux/pci_regs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index e709ae8235e7..ff6ccbc6efe9 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -504,6 +504,12 @@ #define PCI_EXP_DEVCTL_URRE 0x0008 /* Unsupported Request Reporting En. */ #define PCI_EXP_DEVCTL_RELAX_EN 0x0010 /* Enable relaxed ordering */ #define PCI_EXP_DEVCTL_PAYLOAD 0x00e0 /* Max_Payload_Size */ +#define PCI_EXP_DEVCTL_PAYLOAD_128B 0x0000 /* 128 Bytes */ +#define PCI_EXP_DEVCTL_PAYLOAD_256B 0x0020 /* 256 Bytes */ +#define PCI_EXP_DEVCTL_PAYLOAD_512B 0x0040 /* 512 Bytes */ +#define PCI_EXP_DEVCTL_PAYLOAD_1024B 0x0060 /* 1024 Bytes */ +#define PCI_EXP_DEVCTL_PAYLOAD_2048B 0x0080 /* 2048 Bytes */ +#define PCI_EXP_DEVCTL_PAYLOAD_4096B 0x00a0 /* 4096 Bytes */ #define PCI_EXP_DEVCTL_EXT_TAG 0x0100 /* Extended Tag Field Enable */ #define PCI_EXP_DEVCTL_PHANTOM 0x0200 /* Phantom Functions Enable */ #define PCI_EXP_DEVCTL_AUX_PME 0x0400 /* Auxiliary Power PM Enable */ -- 2.20.1