From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10564C433F5 for ; Sat, 2 Oct 2021 16:05:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E6D4E61B21 for ; Sat, 2 Oct 2021 16:05:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233438AbhJBQHQ (ORCPT ); Sat, 2 Oct 2021 12:07:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:39540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232575AbhJBQHQ (ORCPT ); Sat, 2 Oct 2021 12:07:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0823A61B20; Sat, 2 Oct 2021 16:05:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633190730; bh=0e21ahfOw7r9mIE1wd2YEhuy9T9s5lMvl3ukZGlKlIo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=C2lMaDbRMp4ezW0He9nWcaSKuFIEL+PgcCu4VSxfCy1eKDQNM2oQ3YQEHlks+ci3+ h8FeVwPBTkHBH4Y7/wrPKsv7FolviFsOu+J3cgcXhAeuUDPwlfyDR1zGxd+IpjeYaa P6C1rLbqHyqrLRWTeOLNJZAkf24FLoHr7HRQrygLhiBiknia5SlxdU/akZRVOFqP7B QoJetbvYxflJAOFPfvPiTu1Sk7kJTBKyJOktv++SnYi0KJPIdjEwr65YpehuYICVhi hASLI/28Qrnc7h2bmRschC5RjOnAJVQCneaEYYe3Sm9/zZxBHSOUiHwQEGk/lkgQoA 8MUXRDSX4/Weg== Date: Sat, 2 Oct 2021 11:05:28 -0500 From: Bjorn Helgaas To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Lorenzo Pieralisi , Thomas Petazzoni , Bjorn Helgaas , linux-pci@vger.kernel.org, pali@kernel.org Subject: Re: [PATCH 01/13] PCI: Add PCI_EXP_DEVCTL_PAYLOAD_* macros Message-ID: <20211002160528.GA971430@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211001195856.10081-2-kabel@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Fri, Oct 01, 2021 at 09:58:44PM +0200, Marek Behún wrote: > From: Pali Rohár > > 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 > Signed-off-by: Marek Behún Reviewed-by: Bjorn Helgaas > --- > 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.32.0 >