Commit 740a1459 authored by Jayachandran C's avatar Jayachandran C Committed by Khalid Elmously

PCI: Move ecam.h to linux/include/pci-ecam.h

BugLink: https://bugs.launchpad.net/bugs/1797092

This header will be used from arch/arm64 for ACPI PCI implementation so it
needs to be moved out of drivers/pci.

Update users of the header file to use the new name.  No functional
changes.
Signed-off-by: default avatarJayachandran C <jchandra@broadcom.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
(cherry picked from commit 80955f9e)
Signed-off-by: default avatardann frazier <dann.frazier@canonical.com>
Acked-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 204ed652
...@@ -19,10 +19,9 @@ ...@@ -19,10 +19,9 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/pci-ecam.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "ecam.h"
/* /*
* On 64-bit systems, we do a single ioremap for the whole config space * On 64-bit systems, we do a single ioremap for the whole config space
* since we have enough virtual address range available. On 32-bit, we * since we have enough virtual address range available. On 32-bit, we
......
...@@ -20,10 +20,9 @@ ...@@ -20,10 +20,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_pci.h> #include <linux/of_pci.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include "../ecam.h"
static int gen_pci_parse_request_of_pci_ranges(struct device *dev, static int gen_pci_parse_request_of_pci_ranges(struct device *dev,
struct list_head *resources, struct resource **bus_range) struct list_head *resources, struct resource **bus_range)
{ {
......
...@@ -23,10 +23,9 @@ ...@@ -23,10 +23,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_pci.h> #include <linux/of_pci.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include "../ecam.h"
static struct pci_ecam_ops gen_pci_cfg_cam_bus_ops = { static struct pci_ecam_ops gen_pci_cfg_cam_bus_ops = {
.bus_shift = 16, .bus_shift = 16,
.pci_ops = { .pci_ops = {
......
...@@ -11,10 +11,9 @@ ...@@ -11,10 +11,9 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/of_pci.h> #include <linux/of_pci.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include "../ecam.h"
static void set_val(u32 v, int where, int size, u32 *val) static void set_val(u32 v, int where, int size, u32 *val)
{ {
int shift = (where & 3) * 8; int shift = (where & 3) * 8;
......
...@@ -18,10 +18,9 @@ ...@@ -18,10 +18,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_pci.h> #include <linux/of_pci.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include "../ecam.h"
#define PEM_CFG_WR 0x28 #define PEM_CFG_WR 0x28
#define PEM_CFG_RD 0x30 #define PEM_CFG_RD 0x30
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment