From patchwork Wed Feb 19 13:37:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 11391471 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BF9AF930 for ; Wed, 19 Feb 2020 13:38:31 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5FA520801 for ; Wed, 19 Feb 2020 13:38:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5FA520801 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4PXH-0007H5-UO; Wed, 19 Feb 2020 13:37:07 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j4PXG-0007H0-LA for xen-devel@lists.xenproject.org; Wed, 19 Feb 2020 13:37:06 +0000 X-Inumbo-ID: ea7e1e68-531c-11ea-ade5-bc764e2007e4 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id ea7e1e68-531c-11ea-ade5-bc764e2007e4; Wed, 19 Feb 2020 13:37:05 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B80DEC0CD; Wed, 19 Feb 2020 13:37:03 +0000 (UTC) To: "xen-devel@lists.xenproject.org" From: Jan Beulich Message-ID: <64aeaf09-df4e-cfc2-7fe0-c7293f2eb958@suse.com> Date: Wed, 19 Feb 2020 14:37:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 Content-Language: en-US Subject: [Xen-devel] [PATCH] AMD/IOMMU: drop unused PCI-generic #define-s X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Quite possibly they had been in use when some of the PCI interfacing was done in an ad hoc way rather than using the PCI functions we have. Right now these have no users (left). Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- a/xen/drivers/passthrough/amd/iommu-defs.h +++ b/xen/drivers/passthrough/amd/iommu-defs.h @@ -40,10 +40,6 @@ #define amd_offset_level_address(offset, level) \ ((uint64_t)(offset) << (12 + (PTE_PER_TABLE_SHIFT * ((level) - 1)))) -#define PCI_MIN_CAP_OFFSET 0x40 -#define PCI_MAX_CAP_BLOCKS 48 -#define PCI_CAP_PTR_MASK 0xFC - /* IOMMU Capability */ #define PCI_CAP_ID_MASK 0x000000FF #define PCI_CAP_ID_SHIFT 0