From patchwork Tue Dec 4 12:04:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 10711645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B29401731 for ; Tue, 4 Dec 2018 12:05:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A54A02AD6B for ; Tue, 4 Dec 2018 12:05:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9966A2AEFD; Tue, 4 Dec 2018 12:05:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 447FF2AD6B for ; Tue, 4 Dec 2018 12:05:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726220AbeLDMFh (ORCPT ); Tue, 4 Dec 2018 07:05:37 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:1134 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbeLDMFh (ORCPT ); Tue, 4 Dec 2018 07:05:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1543925136; x=1575461136; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=eA5PNUR3ZMzNrFTxTFhMfOFL2oxNvZcrB5xhzkAR6is=; b=vTjjXVf5XavLTA+tGkBwJWmvD6ZUMUSjGZ/nv0Dg4BYYS8fDAuSbgpTR 5j17Sp6DM0wUgFhCA+llcb9avDGRhYm+12PK2TJm4uSeC0JNlbMGX12s9 p9O5uJ4LQV8U+SIGmOVcLE/PcTVmRHP7hbs6iRYTNjC2s6BFzvcQ36StE Q=; X-IronPort-AV: E=Sophos;i="5.56,253,1539648000"; d="scan'208";a="768929513" Received: from sea3-co-svc-lb6-vlan2.sea.amazon.com (HELO email-inbound-relay-1d-98acfc19.us-east-1.amazon.com) ([10.47.22.34]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Dec 2018 12:04:57 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-98acfc19.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id wB4C4tHq110407 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 4 Dec 2018 12:04:56 GMT Received: from EX13D02EUB001.ant.amazon.com (10.43.166.150) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 4 Dec 2018 12:04:56 +0000 Received: from EX13MTAUEB001.ant.amazon.com (10.43.60.96) by EX13D02EUB001.ant.amazon.com (10.43.166.150) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 4 Dec 2018 12:04:54 +0000 Received: from galpress-VirtualBox.hfa16.amazon.com (10.218.62.26) by mail-relay.amazon.com (10.43.60.129) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 4 Dec 2018 12:04:52 +0000 From: Gal Pressman To: Doug Ledford , Jason Gunthorpe CC: Alexander Matushevsky , Yossi Leybovich , , Tom Tucker , Gal Pressman Subject: [PATCH rdma-next 03/13] RDMA/efa: Add the PCI device id definitions Date: Tue, 4 Dec 2018 14:04:19 +0200 Message-ID: <1543925069-8838-4-git-send-email-galpress@amazon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543925069-8838-1-git-send-email-galpress@amazon.com> References: <1543925069-8838-1-git-send-email-galpress@amazon.com> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add EFA PCI device IDs. Signed-off-by: Gal Pressman --- drivers/infiniband/hw/efa/efa_pci_id_tbl.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 drivers/infiniband/hw/efa/efa_pci_id_tbl.h diff --git a/drivers/infiniband/hw/efa/efa_pci_id_tbl.h b/drivers/infiniband/hw/efa/efa_pci_id_tbl.h new file mode 100644 index 000000000000..3bb21a95fe54 --- /dev/null +++ b/drivers/infiniband/hw/efa/efa_pci_id_tbl.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ +/* + * Copyright 2018 Amazon.com, Inc. or its affiliates. + */ + +#ifndef _EFA_PCI_ID_TBL_H_ +#define _EFA_PCI_ID_TBL_H_ + +#ifndef PCI_VENDOR_ID_AMAZON +#define PCI_VENDOR_ID_AMAZON 0x1d0f +#endif + +#ifndef PCI_DEV_ID_EFA_VF +#define PCI_DEV_ID_EFA_VF 0xefa0 +#endif + +#define EFA_PCI_DEVICE_ID(devid) \ + { PCI_VDEVICE(AMAZON, devid) } + +static const struct pci_device_id efa_pci_tbl[] = { + EFA_PCI_DEVICE_ID(PCI_DEV_ID_EFA_VF), + { } +}; + +#endif /* _EFA_PCI_ID_TBL_H_ */