Skip to content

Commit

Permalink
PCI: Move ecam.h to linux/include/pci-ecam.h
Browse files Browse the repository at this point in the history
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: Jayachandran C <jchandra@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
  • Loading branch information
Jayachandran C authored and Bjorn Helgaas committed Jun 10, 2016
1 parent af8c34c commit 80955f9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions drivers/pci/ecam.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/pci-ecam.h>
#include <linux/slab.h>

#include "ecam.h"

/*
* 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
Expand Down
3 changes: 1 addition & 2 deletions drivers/pci/host/pci-host-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_pci.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h>

#include "../ecam.h"

static int gen_pci_parse_request_of_pci_ranges(struct device *dev,
struct list_head *resources, struct resource **bus_range)
{
Expand Down
3 changes: 1 addition & 2 deletions drivers/pci/host/pci-host-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_pci.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h>

#include "../ecam.h"

static struct pci_ecam_ops gen_pci_cfg_cam_bus_ops = {
.bus_shift = 16,
.pci_ops = {
Expand Down
3 changes: 1 addition & 2 deletions drivers/pci/host/pci-thunder-ecam.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
#include <linux/ioport.h>
#include <linux/of_pci.h>
#include <linux/of.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h>

#include "../ecam.h"

static void set_val(u32 v, int where, int size, u32 *val)
{
int shift = (where & 3) * 8;
Expand Down
3 changes: 1 addition & 2 deletions drivers/pci/host/pci-thunder-pem.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_pci.h>
#include <linux/pci-ecam.h>
#include <linux/platform_device.h>

#include "../ecam.h"

#define PEM_CFG_WR 0x28
#define PEM_CFG_RD 0x30

Expand Down
File renamed without changes.

0 comments on commit 80955f9

Please sign in to comment.