powerpc: Move iSeries_pci.c to powerpc/platform/iseries
and rename it to pci.c. This also required moving arch/ppc64/kernel/pci.h into include/asm-powerpc (called ppc-pci.h. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o \
|
obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o \
|
||||||
hvcall.o proc.o htab.o iommu.o
|
hvcall.o proc.o htab.o iommu.o
|
||||||
|
obj-$(CONFIG_PCI) += pci.o
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* iSeries_pci.c
|
|
||||||
*
|
|
||||||
* Copyright (C) 2001 Allan Trautman, IBM Corporation
|
* Copyright (C) 2001 Allan Trautman, IBM Corporation
|
||||||
*
|
*
|
||||||
* iSeries specific routines for PCI.
|
* iSeries specific routines for PCI.
|
||||||
@@ -43,7 +41,7 @@
|
|||||||
#include <asm/iSeries/iSeries_pci.h>
|
#include <asm/iSeries/iSeries_pci.h>
|
||||||
#include <asm/iSeries/mf.h>
|
#include <asm/iSeries/mf.h>
|
||||||
|
|
||||||
#include "pci.h"
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
extern unsigned long io_page_mask;
|
extern unsigned long io_page_mask;
|
||||||
|
|
@@ -16,7 +16,7 @@ obj-y += vdso32/ vdso64/
|
|||||||
|
|
||||||
obj-$(CONFIG_PPC_OF) += of_device.o
|
obj-$(CONFIG_PPC_OF) += of_device.o
|
||||||
|
|
||||||
pci-obj-$(CONFIG_PPC_ISERIES) += iSeries_pci.o iSeries_irq.o \
|
pci-obj-$(CONFIG_PPC_ISERIES) += iSeries_irq.o \
|
||||||
iSeries_VpdInfo.o
|
iSeries_VpdInfo.o
|
||||||
pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o
|
pci-obj-$(CONFIG_PPC_MULTIPLATFORM) += pci_dn.o pci_direct_iommu.o
|
||||||
|
|
||||||
|
@@ -39,8 +39,8 @@
|
|||||||
#include <asm/pmac_feature.h>
|
#include <asm/pmac_feature.h>
|
||||||
#include <asm/abs_addr.h>
|
#include <asm/abs_addr.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#include "pci.h"
|
|
||||||
#include "bpa_iommu.h"
|
#include "bpa_iommu.h"
|
||||||
|
|
||||||
static inline unsigned long
|
static inline unsigned long
|
||||||
|
@@ -43,8 +43,8 @@
|
|||||||
#include <asm/time.h>
|
#include <asm/time.h>
|
||||||
#include <asm/nvram.h>
|
#include <asm/nvram.h>
|
||||||
#include <asm/cputable.h>
|
#include <asm/cputable.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#include "pci.h"
|
|
||||||
#include "bpa_iic.h"
|
#include "bpa_iic.h"
|
||||||
#include "bpa_iommu.h"
|
#include "bpa_iommu.h"
|
||||||
|
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
#include <asm/rtas.h>
|
#include <asm/rtas.h>
|
||||||
#include <asm/atomic.h>
|
#include <asm/atomic.h>
|
||||||
#include <asm/systemcfg.h>
|
#include <asm/systemcfg.h>
|
||||||
#include "pci.h"
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
|
|
||||||
|
@@ -23,8 +23,7 @@
|
|||||||
#include <asm/pci-bridge.h>
|
#include <asm/pci-bridge.h>
|
||||||
#include <asm/machdep.h>
|
#include <asm/machdep.h>
|
||||||
#include <asm/iommu.h>
|
#include <asm/iommu.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define DBG(x...) printk(x)
|
#define DBG(x...) printk(x)
|
||||||
|
@@ -47,7 +47,7 @@
|
|||||||
#include <asm/systemcfg.h>
|
#include <asm/systemcfg.h>
|
||||||
#include <asm/firmware.h>
|
#include <asm/firmware.h>
|
||||||
#include <asm/tce.h>
|
#include <asm/tce.h>
|
||||||
#include "pci.h"
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#define DBG(fmt...)
|
#define DBG(fmt...)
|
||||||
|
|
||||||
|
@@ -29,8 +29,7 @@
|
|||||||
|
|
||||||
#include <asm/pci-bridge.h>
|
#include <asm/pci-bridge.h>
|
||||||
#include <asm/prom.h>
|
#include <asm/prom.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
static int __initdata s7a_workaround = -1;
|
static int __initdata s7a_workaround = -1;
|
||||||
|
|
||||||
|
@@ -63,9 +63,9 @@
|
|||||||
#include <asm/firmware.h>
|
#include <asm/firmware.h>
|
||||||
#include <asm/pmc.h>
|
#include <asm/pmc.h>
|
||||||
#include <asm/mpic.h>
|
#include <asm/mpic.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#include "i8259.h"
|
#include "i8259.h"
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define DBG(fmt...) udbg_printf(fmt)
|
#define DBG(fmt...) udbg_printf(fmt)
|
||||||
|
@@ -31,8 +31,7 @@
|
|||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
#include <asm/machdep.h>
|
#include <asm/machdep.h>
|
||||||
#include <asm/udbg.h>
|
#include <asm/udbg.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define DBG(fmt...) udbg_printf(fmt)
|
#define DBG(fmt...) udbg_printf(fmt)
|
||||||
|
@@ -27,8 +27,7 @@
|
|||||||
#include <asm/machdep.h>
|
#include <asm/machdep.h>
|
||||||
#include <asm/pmac_feature.h>
|
#include <asm/pmac_feature.h>
|
||||||
#include <asm/abs_addr.h>
|
#include <asm/abs_addr.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
static void *pci_direct_alloc_coherent(struct device *hwdev, size_t size,
|
static void *pci_direct_alloc_coherent(struct device *hwdev, size_t size,
|
||||||
dma_addr_t *dma_handle, unsigned int __nocast flag)
|
dma_addr_t *dma_handle, unsigned int __nocast flag)
|
||||||
|
@@ -30,8 +30,7 @@
|
|||||||
#include <asm/prom.h>
|
#include <asm/prom.h>
|
||||||
#include <asm/pci-bridge.h>
|
#include <asm/pci-bridge.h>
|
||||||
#include <asm/pSeries_reconfig.h>
|
#include <asm/pSeries_reconfig.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Traverse_func that inits the PCI fields of the device node.
|
* Traverse_func that inits the PCI fields of the device node.
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
#include <asm/iommu.h>
|
#include <asm/iommu.h>
|
||||||
#include <asm/pci-bridge.h>
|
#include <asm/pci-bridge.h>
|
||||||
#include <asm/machdep.h>
|
#include <asm/machdep.h>
|
||||||
#include "pci.h"
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#ifdef CONFIG_PPC_ISERIES
|
#ifdef CONFIG_PPC_ISERIES
|
||||||
#include <asm/iSeries/iSeries_pci.h>
|
#include <asm/iSeries/iSeries_pci.h>
|
||||||
|
@@ -27,8 +27,8 @@
|
|||||||
#include <asm/machdep.h>
|
#include <asm/machdep.h>
|
||||||
#include <asm/pmac_feature.h>
|
#include <asm/pmac_feature.h>
|
||||||
#include <asm/iommu.h>
|
#include <asm/iommu.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
|
|
||||||
#include "pci.h"
|
|
||||||
#include "pmac.h"
|
#include "pmac.h"
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
@@ -39,8 +39,7 @@
|
|||||||
#include <asm/iommu.h>
|
#include <asm/iommu.h>
|
||||||
#include <asm/rtas.h>
|
#include <asm/rtas.h>
|
||||||
#include <asm/mpic.h>
|
#include <asm/mpic.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
/* RTAS tokens */
|
/* RTAS tokens */
|
||||||
static int read_pci_config;
|
static int read_pci_config;
|
||||||
|
@@ -53,8 +53,7 @@
|
|||||||
#include <asm/time.h>
|
#include <asm/time.h>
|
||||||
#include <asm/mmu_context.h>
|
#include <asm/mmu_context.h>
|
||||||
#include <asm/systemcfg.h>
|
#include <asm/systemcfg.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
/* readdir & getdents */
|
/* readdir & getdents */
|
||||||
#define NAME_OFFSET(de) ((int) ((de)->d_name - (char __user *) (de)))
|
#define NAME_OFFSET(de) ((int) ((de)->d_name - (char __user *) (de)))
|
||||||
|
@@ -45,8 +45,7 @@
|
|||||||
#include <asm/cacheflush.h>
|
#include <asm/cacheflush.h>
|
||||||
#include <asm/lmb.h>
|
#include <asm/lmb.h>
|
||||||
#include <asm/dart.h>
|
#include <asm/dart.h>
|
||||||
|
#include <asm/ppc-pci.h>
|
||||||
#include "pci.h"
|
|
||||||
|
|
||||||
extern int iommu_force_on;
|
extern int iommu_force_on;
|
||||||
|
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
* as published by the Free Software Foundation; either version
|
* as published by the Free Software Foundation; either version
|
||||||
* 2 of the License, or (at your option) any later version.
|
* 2 of the License, or (at your option) any later version.
|
||||||
*/
|
*/
|
||||||
#ifndef __PPC_KERNEL_PCI_H__
|
#ifndef _ASM_POWERPC_PPC_PCI_H
|
||||||
#define __PPC_KERNEL_PCI_H__
|
#define _ASM_POWERPC_PPC_PCI_H
|
||||||
|
|
||||||
#include <linux/pci.h>
|
#include <linux/pci.h>
|
||||||
#include <asm/pci-bridge.h>
|
#include <asm/pci-bridge.h>
|
||||||
@@ -51,4 +51,4 @@ extern unsigned long pci_probe_only;
|
|||||||
extern unsigned long pci_assign_all_buses;
|
extern unsigned long pci_assign_all_buses;
|
||||||
extern int pci_read_irq_line(struct pci_dev *pci_dev);
|
extern int pci_read_irq_line(struct pci_dev *pci_dev);
|
||||||
|
|
||||||
#endif /* __PPC_KERNEL_PCI_H__ */
|
#endif /* _ASM_POWERPC_PPC_PCI_H */
|
Reference in New Issue
Block a user