From patchwork Sun Aug 6 00:03:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 9883449 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A1287603B4 for ; Sun, 6 Aug 2017 00:04:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97881286F6 for ; Sun, 6 Aug 2017 00:04:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BE172874B; Sun, 6 Aug 2017 00:04:34 +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=-6.9 required=2.0 tests=BAYES_00,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 16ACE286F6 for ; Sun, 6 Aug 2017 00:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219AbdHFAEc (ORCPT ); Sat, 5 Aug 2017 20:04:32 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:25470 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207AbdHFAEc (ORCPT ); Sat, 5 Aug 2017 20:04:32 -0400 Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id 8A0E33140EFCC; Sun, 6 Aug 2017 01:04:25 +0100 (IST) Received: from localhost (10.20.79.108) by HHMAIL01.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Sun, 6 Aug 2017 01:04:30 +0100 From: Paul Burton To: Bjorn Helgaas , CC: Bharat Kumar Gogada , Michal Simek , Ravikiran Gummaluri , , Paul Burton Subject: [PATCH v6 1/6] PCI: Move enum pci_interrupt_pin to a new common header Date: Sat, 5 Aug 2017 17:03:46 -0700 Message-ID: <20170806000351.17952-2-paul.burton@imgtec.com> X-Mailer: git-send-email 2.13.4 In-Reply-To: <20170806000351.17952-1-paul.burton@imgtec.com> References: <20170806000351.17952-1-paul.burton@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [10.20.79.108] Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We currently have a definition of enum pci_interrupt_pin in a header specific to PCI endpoints - pci-epf.h. In order to allow for use of this enum from PCI host code in a future commit, move its definition to a new pci-common.h header which we'll include from both host & endpoint code. Signed-off-by: Paul Burton Cc: Bjorn Helgaas Cc: linux-pci@vger.kernel.org --- Changes in v6: - New patch. include/linux/pci-common.h | 31 +++++++++++++++++++++++++++++++ include/linux/pci-epf.h | 9 +-------- 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 include/linux/pci-common.h diff --git a/include/linux/pci-common.h b/include/linux/pci-common.h new file mode 100644 index 000000000000..6a69a2c95ac7 --- /dev/null +++ b/include/linux/pci-common.h @@ -0,0 +1,31 @@ +/** + * Common PCI definitions + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 of + * the License as published by the Free Software Foundation. + */ + +#ifndef __LINUX_PCI_COMMON_H__ +#define __LINUX_PCI_COMMON_H__ + +/** + * enum pci_interrupt_pin - PCI INTx interrupt values + * @PCI_INTERRUPT_UNKNOWN: Unknown or unassigned interrupt + * @PCI_INTERRUPT_INTA: PCI INTA pin + * @PCI_INTERRUPT_INTB: PCI INTB pin + * @PCI_INTERRUPT_INTC: PCI INTC pin + * @PCI_INTERRUPT_INTD: PCI INTD pin + * + * Corresponds to values for legacy PCI INTx interrupts, as can be found in the + * PCI_INTERRUPT_PIN register. + */ +enum pci_interrupt_pin { + PCI_INTERRUPT_UNKNOWN, + PCI_INTERRUPT_INTA, + PCI_INTERRUPT_INTB, + PCI_INTERRUPT_INTC, + PCI_INTERRUPT_INTD, +}; + +#endif /* __LINUX_PCI_COMMON_H__ */ diff --git a/include/linux/pci-epf.h b/include/linux/pci-epf.h index 0d529cb90143..77c92fcb2416 100644 --- a/include/linux/pci-epf.h +++ b/include/linux/pci-epf.h @@ -14,17 +14,10 @@ #include #include +#include struct pci_epf; -enum pci_interrupt_pin { - PCI_INTERRUPT_UNKNOWN, - PCI_INTERRUPT_INTA, - PCI_INTERRUPT_INTB, - PCI_INTERRUPT_INTC, - PCI_INTERRUPT_INTD, -}; - enum pci_barno { BAR_0, BAR_1,