Browse Source

Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
  powerpc: Remove use of CONFIG_PPC_MERGE
  powerpc: Force printing of 'total_memory' to unsigned long long
  powerpc: Fix compiler warning in arch/powerpc/mm/mem.c
  powerpc: Move include files to arch/powerpc/include/asm
Linus Torvalds 17 years ago
parent
commit
2acb802b0c
100 changed files with 7 additions and 317 deletions
  1. 2 2
      Documentation/powerpc/booting-without-of.txt
  2. 1 1
      Documentation/powerpc/eeh-pci-error-recovery.txt
  3. 1 1
      arch/powerpc/Kconfig.debug
  4. 1 1
      arch/powerpc/boot/io.h
  5. 0 0
      arch/powerpc/include/asm/8253pit.h
  6. 0 0
      arch/powerpc/include/asm/8xx_immap.h
  7. 0 0
      arch/powerpc/include/asm/Kbuild
  8. 0 0
      arch/powerpc/include/asm/a.out.h
  9. 0 0
      arch/powerpc/include/asm/abs_addr.h
  10. 0 0
      arch/powerpc/include/asm/agp.h
  11. 0 0
      arch/powerpc/include/asm/asm-compat.h
  12. 0 0
      arch/powerpc/include/asm/atomic.h
  13. 0 0
      arch/powerpc/include/asm/auxvec.h
  14. 0 0
      arch/powerpc/include/asm/backlight.h
  15. 0 0
      arch/powerpc/include/asm/bitops.h
  16. 0 0
      arch/powerpc/include/asm/bootx.h
  17. 0 0
      arch/powerpc/include/asm/btext.h
  18. 0 0
      arch/powerpc/include/asm/bug.h
  19. 0 0
      arch/powerpc/include/asm/bugs.h
  20. 0 0
      arch/powerpc/include/asm/byteorder.h
  21. 0 0
      arch/powerpc/include/asm/cache.h
  22. 0 0
      arch/powerpc/include/asm/cacheflush.h
  23. 0 0
      arch/powerpc/include/asm/cell-pmu.h
  24. 0 0
      arch/powerpc/include/asm/cell-regs.h
  25. 0 0
      arch/powerpc/include/asm/checksum.h
  26. 0 0
      arch/powerpc/include/asm/clk_interface.h
  27. 0 0
      arch/powerpc/include/asm/code-patching.h
  28. 0 0
      arch/powerpc/include/asm/compat.h
  29. 0 0
      arch/powerpc/include/asm/cpm.h
  30. 0 0
      arch/powerpc/include/asm/cpm1.h
  31. 0 0
      arch/powerpc/include/asm/cpm2.h
  32. 0 0
      arch/powerpc/include/asm/cputable.h
  33. 0 0
      arch/powerpc/include/asm/cputhreads.h
  34. 0 0
      arch/powerpc/include/asm/cputime.h
  35. 0 0
      arch/powerpc/include/asm/current.h
  36. 0 0
      arch/powerpc/include/asm/dbdma.h
  37. 0 0
      arch/powerpc/include/asm/dcr-generic.h
  38. 0 0
      arch/powerpc/include/asm/dcr-mmio.h
  39. 0 0
      arch/powerpc/include/asm/dcr-native.h
  40. 0 0
      arch/powerpc/include/asm/dcr-regs.h
  41. 1 5
      arch/powerpc/include/asm/dcr.h
  42. 0 0
      arch/powerpc/include/asm/delay.h
  43. 0 0
      arch/powerpc/include/asm/device.h
  44. 0 0
      arch/powerpc/include/asm/div64.h
  45. 0 0
      arch/powerpc/include/asm/dma-mapping.h
  46. 0 0
      arch/powerpc/include/asm/dma.h
  47. 0 0
      arch/powerpc/include/asm/edac.h
  48. 0 0
      arch/powerpc/include/asm/eeh.h
  49. 0 0
      arch/powerpc/include/asm/eeh_event.h
  50. 0 0
      arch/powerpc/include/asm/elf.h
  51. 0 0
      arch/powerpc/include/asm/emergency-restart.h
  52. 0 0
      arch/powerpc/include/asm/errno.h
  53. 0 0
      arch/powerpc/include/asm/exception.h
  54. 0 0
      arch/powerpc/include/asm/fb.h
  55. 0 0
      arch/powerpc/include/asm/fcntl.h
  56. 0 0
      arch/powerpc/include/asm/feature-fixups.h
  57. 0 0
      arch/powerpc/include/asm/firmware.h
  58. 0 0
      arch/powerpc/include/asm/fixmap.h
  59. 0 0
      arch/powerpc/include/asm/floppy.h
  60. 0 0
      arch/powerpc/include/asm/fs_pd.h
  61. 0 0
      arch/powerpc/include/asm/fsl_gtm.h
  62. 0 0
      arch/powerpc/include/asm/fsl_lbc.h
  63. 0 0
      arch/powerpc/include/asm/ftrace.h
  64. 0 0
      arch/powerpc/include/asm/futex.h
  65. 0 0
      arch/powerpc/include/asm/gpio.h
  66. 0 0
      arch/powerpc/include/asm/grackle.h
  67. 0 0
      arch/powerpc/include/asm/hardirq.h
  68. 0 0
      arch/powerpc/include/asm/heathrow.h
  69. 0 0
      arch/powerpc/include/asm/highmem.h
  70. 0 0
      arch/powerpc/include/asm/hugetlb.h
  71. 0 0
      arch/powerpc/include/asm/hvcall.h
  72. 0 0
      arch/powerpc/include/asm/hvconsole.h
  73. 0 0
      arch/powerpc/include/asm/hvcserver.h
  74. 0 0
      arch/powerpc/include/asm/hw_irq.h
  75. 0 0
      arch/powerpc/include/asm/hydra.h
  76. 0 5
      arch/powerpc/include/asm/i8259.h
  77. 0 0
      arch/powerpc/include/asm/ibmebus.h
  78. 0 0
      arch/powerpc/include/asm/ide.h
  79. 0 0
      arch/powerpc/include/asm/immap_86xx.h
  80. 0 0
      arch/powerpc/include/asm/immap_cpm2.h
  81. 0 2
      arch/powerpc/include/asm/immap_qe.h
  82. 0 0
      arch/powerpc/include/asm/io-defs.h
  83. 0 0
      arch/powerpc/include/asm/io.h
  84. 0 0
      arch/powerpc/include/asm/ioctl.h
  85. 0 0
      arch/powerpc/include/asm/ioctls.h
  86. 0 0
      arch/powerpc/include/asm/iommu.h
  87. 0 0
      arch/powerpc/include/asm/ipcbuf.h
  88. 0 9
      arch/powerpc/include/asm/ipic.h
  89. 0 288
      arch/powerpc/include/asm/irq.h
  90. 0 0
      arch/powerpc/include/asm/irq_regs.h
  91. 1 3
      arch/powerpc/include/asm/irqflags.h
  92. 0 0
      arch/powerpc/include/asm/iseries/alpaca.h
  93. 0 0
      arch/powerpc/include/asm/iseries/hv_call.h
  94. 0 0
      arch/powerpc/include/asm/iseries/hv_call_event.h
  95. 0 0
      arch/powerpc/include/asm/iseries/hv_call_sc.h
  96. 0 0
      arch/powerpc/include/asm/iseries/hv_call_xm.h
  97. 0 0
      arch/powerpc/include/asm/iseries/hv_lp_config.h
  98. 0 0
      arch/powerpc/include/asm/iseries/hv_lp_event.h
  99. 0 0
      arch/powerpc/include/asm/iseries/hv_types.h
  100. 0 0
      arch/powerpc/include/asm/iseries/iommu.h

+ 2 - 2
Documentation/powerpc/booting-without-of.txt

@@ -278,7 +278,7 @@ it with special cases.
         a 64-bit platform.
 
         d) request and get assigned a platform number (see PLATFORM_*
-        constants in include/asm-powerpc/processor.h
+        constants in arch/powerpc/include/asm/processor.h
 
 32-bit embedded kernels:
 
@@ -340,7 +340,7 @@ the block to RAM before passing it to the kernel.
 ---------
 
    The kernel is entered with r3 pointing to an area of memory that is
-   roughly described in include/asm-powerpc/prom.h by the structure
+   roughly described in arch/powerpc/include/asm/prom.h by the structure
    boot_param_header:
 
 struct boot_param_header {

+ 1 - 1
Documentation/powerpc/eeh-pci-error-recovery.txt

@@ -133,7 +133,7 @@ error.  Given an arbitrary address, the routine
 pci_get_device_by_addr() will find the pci device associated
 with that address (if any).
 
-The default include/asm-powerpc/io.h macros readb(), inb(), insb(),
+The default arch/powerpc/include/asm/io.h macros readb(), inb(), insb(),
 etc. include a check to see if the i/o read returned all-0xff's.
 If so, these make a call to eeh_dn_check_failure(), which in turn
 asks the firmware if the all-ff's value is the sign of a true EEH

+ 1 - 1
arch/powerpc/Kconfig.debug

@@ -97,7 +97,7 @@ config IRQSTACKS
 
 config VIRQ_DEBUG
 	bool "Expose hardware/virtual IRQ mapping via debugfs"
-	depends on DEBUG_FS && PPC_MERGE
+	depends on DEBUG_FS
 	help
 	  This option will show the mapping relationship between hardware irq
 	  numbers and virtual irq numbers. The mapping is exposed via debugfs

+ 1 - 1
arch/powerpc/boot/io.h

@@ -6,7 +6,7 @@
 /*
  * Low-level I/O routines.
  *
- * Copied from <file:include/asm-powerpc/io.h> (which has no copyright)
+ * Copied from <file:arch/powerpc/include/asm/io.h> (which has no copyright)
  */
 static inline int in_8(const volatile unsigned char *addr)
 {

+ 0 - 0
include/asm-powerpc/8253pit.h → arch/powerpc/include/asm/8253pit.h


+ 0 - 0
include/asm-powerpc/8xx_immap.h → arch/powerpc/include/asm/8xx_immap.h


+ 0 - 0
include/asm-powerpc/Kbuild → arch/powerpc/include/asm/Kbuild


+ 0 - 0
include/asm-powerpc/a.out.h → arch/powerpc/include/asm/a.out.h


+ 0 - 0
include/asm-powerpc/abs_addr.h → arch/powerpc/include/asm/abs_addr.h


+ 0 - 0
include/asm-powerpc/agp.h → arch/powerpc/include/asm/agp.h


+ 0 - 0
include/asm-powerpc/asm-compat.h → arch/powerpc/include/asm/asm-compat.h


+ 0 - 0
include/asm-powerpc/atomic.h → arch/powerpc/include/asm/atomic.h


+ 0 - 0
include/asm-powerpc/auxvec.h → arch/powerpc/include/asm/auxvec.h


+ 0 - 0
include/asm-powerpc/backlight.h → arch/powerpc/include/asm/backlight.h


+ 0 - 0
include/asm-powerpc/bitops.h → arch/powerpc/include/asm/bitops.h


+ 0 - 0
include/asm-powerpc/bootx.h → arch/powerpc/include/asm/bootx.h


+ 0 - 0
include/asm-powerpc/btext.h → arch/powerpc/include/asm/btext.h


+ 0 - 0
include/asm-powerpc/bug.h → arch/powerpc/include/asm/bug.h


+ 0 - 0
include/asm-powerpc/bugs.h → arch/powerpc/include/asm/bugs.h


+ 0 - 0
include/asm-powerpc/byteorder.h → arch/powerpc/include/asm/byteorder.h


+ 0 - 0
include/asm-powerpc/cache.h → arch/powerpc/include/asm/cache.h


+ 0 - 0
include/asm-powerpc/cacheflush.h → arch/powerpc/include/asm/cacheflush.h


+ 0 - 0
include/asm-powerpc/cell-pmu.h → arch/powerpc/include/asm/cell-pmu.h


+ 0 - 0
include/asm-powerpc/cell-regs.h → arch/powerpc/include/asm/cell-regs.h


+ 0 - 0
include/asm-powerpc/checksum.h → arch/powerpc/include/asm/checksum.h


+ 0 - 0
include/asm-powerpc/clk_interface.h → arch/powerpc/include/asm/clk_interface.h


+ 0 - 0
include/asm-powerpc/code-patching.h → arch/powerpc/include/asm/code-patching.h


+ 0 - 0
include/asm-powerpc/compat.h → arch/powerpc/include/asm/compat.h


+ 0 - 0
include/asm-powerpc/cpm.h → arch/powerpc/include/asm/cpm.h


+ 0 - 0
include/asm-powerpc/cpm1.h → arch/powerpc/include/asm/cpm1.h


+ 0 - 0
include/asm-powerpc/cpm2.h → arch/powerpc/include/asm/cpm2.h


+ 0 - 0
include/asm-powerpc/cputable.h → arch/powerpc/include/asm/cputable.h


+ 0 - 0
include/asm-powerpc/cputhreads.h → arch/powerpc/include/asm/cputhreads.h


+ 0 - 0
include/asm-powerpc/cputime.h → arch/powerpc/include/asm/cputime.h


+ 0 - 0
include/asm-powerpc/current.h → arch/powerpc/include/asm/current.h


+ 0 - 0
include/asm-powerpc/dbdma.h → arch/powerpc/include/asm/dbdma.h


+ 0 - 0
include/asm-powerpc/dcr-generic.h → arch/powerpc/include/asm/dcr-generic.h


+ 0 - 0
include/asm-powerpc/dcr-mmio.h → arch/powerpc/include/asm/dcr-mmio.h


+ 0 - 0
include/asm-powerpc/dcr-native.h → arch/powerpc/include/asm/dcr-native.h


+ 0 - 0
include/asm-powerpc/dcr-regs.h → arch/powerpc/include/asm/dcr-regs.h


+ 1 - 5
include/asm-powerpc/dcr.h → arch/powerpc/include/asm/dcr.h

@@ -65,17 +65,13 @@ typedef dcr_host_mmio_t dcr_host_t;
 #endif /* defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO) */
 
 /*
- * On CONFIG_PPC_MERGE, we have additional helpers to read the DCR
- * base from the device-tree
+ * additional helpers to read the DCR * base from the device-tree
  */
-#ifdef CONFIG_PPC_MERGE
 struct device_node;
 extern unsigned int dcr_resource_start(struct device_node *np,
 				       unsigned int index);
 extern unsigned int dcr_resource_len(struct device_node *np,
 				     unsigned int index);
-#endif /* CONFIG_PPC_MERGE */
-
 #endif /* CONFIG_PPC_DCR */
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL__ */

+ 0 - 0
include/asm-powerpc/delay.h → arch/powerpc/include/asm/delay.h


+ 0 - 0
include/asm-powerpc/device.h → arch/powerpc/include/asm/device.h


+ 0 - 0
include/asm-powerpc/div64.h → arch/powerpc/include/asm/div64.h


+ 0 - 0
include/asm-powerpc/dma-mapping.h → arch/powerpc/include/asm/dma-mapping.h


+ 0 - 0
include/asm-powerpc/dma.h → arch/powerpc/include/asm/dma.h


+ 0 - 0
include/asm-powerpc/edac.h → arch/powerpc/include/asm/edac.h


+ 0 - 0
include/asm-powerpc/eeh.h → arch/powerpc/include/asm/eeh.h


+ 0 - 0
include/asm-powerpc/eeh_event.h → arch/powerpc/include/asm/eeh_event.h


+ 0 - 0
include/asm-powerpc/elf.h → arch/powerpc/include/asm/elf.h


+ 0 - 0
include/asm-powerpc/emergency-restart.h → arch/powerpc/include/asm/emergency-restart.h


+ 0 - 0
include/asm-powerpc/errno.h → arch/powerpc/include/asm/errno.h


+ 0 - 0
include/asm-powerpc/exception.h → arch/powerpc/include/asm/exception.h


+ 0 - 0
include/asm-powerpc/fb.h → arch/powerpc/include/asm/fb.h


+ 0 - 0
include/asm-powerpc/fcntl.h → arch/powerpc/include/asm/fcntl.h


+ 0 - 0
include/asm-powerpc/feature-fixups.h → arch/powerpc/include/asm/feature-fixups.h


+ 0 - 0
include/asm-powerpc/firmware.h → arch/powerpc/include/asm/firmware.h


+ 0 - 0
include/asm-powerpc/fixmap.h → arch/powerpc/include/asm/fixmap.h


+ 0 - 0
include/asm-powerpc/floppy.h → arch/powerpc/include/asm/floppy.h


+ 0 - 0
include/asm-powerpc/fs_pd.h → arch/powerpc/include/asm/fs_pd.h


+ 0 - 0
include/asm-powerpc/fsl_gtm.h → arch/powerpc/include/asm/fsl_gtm.h


+ 0 - 0
include/asm-powerpc/fsl_lbc.h → arch/powerpc/include/asm/fsl_lbc.h


+ 0 - 0
include/asm-powerpc/ftrace.h → arch/powerpc/include/asm/ftrace.h


+ 0 - 0
include/asm-powerpc/futex.h → arch/powerpc/include/asm/futex.h


+ 0 - 0
include/asm-powerpc/gpio.h → arch/powerpc/include/asm/gpio.h


+ 0 - 0
include/asm-powerpc/grackle.h → arch/powerpc/include/asm/grackle.h


+ 0 - 0
include/asm-powerpc/hardirq.h → arch/powerpc/include/asm/hardirq.h


+ 0 - 0
include/asm-powerpc/heathrow.h → arch/powerpc/include/asm/heathrow.h


+ 0 - 0
include/asm-powerpc/highmem.h → arch/powerpc/include/asm/highmem.h


+ 0 - 0
include/asm-powerpc/hugetlb.h → arch/powerpc/include/asm/hugetlb.h


+ 0 - 0
include/asm-powerpc/hvcall.h → arch/powerpc/include/asm/hvcall.h


+ 0 - 0
include/asm-powerpc/hvconsole.h → arch/powerpc/include/asm/hvconsole.h


+ 0 - 0
include/asm-powerpc/hvcserver.h → arch/powerpc/include/asm/hvcserver.h


+ 0 - 0
include/asm-powerpc/hw_irq.h → arch/powerpc/include/asm/hw_irq.h


+ 0 - 0
include/asm-powerpc/hydra.h → arch/powerpc/include/asm/hydra.h


+ 0 - 5
include/asm-powerpc/i8259.h → arch/powerpc/include/asm/i8259.h

@@ -4,14 +4,9 @@
 
 #include <linux/irq.h>
 
-#ifdef CONFIG_PPC_MERGE
 extern void i8259_init(struct device_node *node, unsigned long intack_addr);
 extern unsigned int i8259_irq(void);
 extern struct irq_host *i8259_get_host(void);
-#else
-extern void i8259_init(unsigned long intack_addr, int offset);
-extern int i8259_irq(void);
-#endif
 
 #endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_I8259_H */

+ 0 - 0
include/asm-powerpc/ibmebus.h → arch/powerpc/include/asm/ibmebus.h


+ 0 - 0
include/asm-powerpc/ide.h → arch/powerpc/include/asm/ide.h


+ 0 - 0
include/asm-powerpc/immap_86xx.h → arch/powerpc/include/asm/immap_86xx.h


+ 0 - 0
include/asm-powerpc/immap_cpm2.h → arch/powerpc/include/asm/immap_cpm2.h


+ 0 - 2
include/asm-powerpc/immap_qe.h → arch/powerpc/include/asm/immap_qe.h

@@ -1,6 +1,4 @@
 /*
- * include/asm-powerpc/immap_qe.h
- *
  * QUICC Engine (QE) Internal Memory Map.
  * The Internal Memory Map for devices with QE on them. This
  * is the superset of all QE devices (8360, etc.).

+ 0 - 0
include/asm-powerpc/io-defs.h → arch/powerpc/include/asm/io-defs.h


+ 0 - 0
include/asm-powerpc/io.h → arch/powerpc/include/asm/io.h


+ 0 - 0
include/asm-powerpc/ioctl.h → arch/powerpc/include/asm/ioctl.h


+ 0 - 0
include/asm-powerpc/ioctls.h → arch/powerpc/include/asm/ioctls.h


+ 0 - 0
include/asm-powerpc/iommu.h → arch/powerpc/include/asm/iommu.h


+ 0 - 0
include/asm-powerpc/ipcbuf.h → arch/powerpc/include/asm/ipcbuf.h


+ 0 - 9
include/asm-powerpc/ipic.h → arch/powerpc/include/asm/ipic.h

@@ -1,6 +1,4 @@
 /*
- * include/asm-powerpc/ipic.h
- *
  * IPIC external definitions and structure.
  *
  * Maintainer: Kumar Gala <galak@kernel.crashing.org>
@@ -79,15 +77,8 @@ extern void ipic_disable_mcp(enum ipic_mcp_irq mcp_irq);
 extern u32 ipic_get_mcp_status(void);
 extern void ipic_clear_mcp_status(u32 mask);
 
-#ifdef CONFIG_PPC_MERGE
 extern struct ipic * ipic_init(struct device_node *node, unsigned int flags);
 extern unsigned int ipic_get_irq(void);
-#else
-extern void ipic_init(phys_addr_t phys_addr, unsigned int flags,
-		unsigned int irq_offset,
-		unsigned char *senses, unsigned int senses_count);
-extern int ipic_get_irq(void);
-#endif
 
 #endif /* __ASM_IPIC_H__ */
 #endif /* __KERNEL__ */

+ 0 - 288
include/asm-powerpc/irq.h → arch/powerpc/include/asm/irq.h

@@ -25,8 +25,6 @@
 
 extern atomic_t ppc_n_lost_interrupts;
 
-#ifdef CONFIG_PPC_MERGE
-
 /* This number is used when no interrupt has been assigned */
 #define NO_IRQ			(0)
 
@@ -326,292 +324,6 @@ static __inline__ int irq_canonicalize(int irq)
 	return irq;
 }
 
-
-#else /* CONFIG_PPC_MERGE */
-
-/* This number is used when no interrupt has been assigned */
-#define NO_IRQ			(-1)
-#define NO_IRQ_IGNORE		(-2)
-
-
-/*
- * These constants are used for passing information about interrupt
- * signal polarity and level/edge sensing to the low-level PIC chip
- * drivers.
- */
-#define IRQ_SENSE_MASK		0x1
-#define IRQ_SENSE_LEVEL		0x1	/* interrupt on active level */
-#define IRQ_SENSE_EDGE		0x0	/* interrupt triggered by edge */
-
-#define IRQ_POLARITY_MASK	0x2
-#define IRQ_POLARITY_POSITIVE	0x2	/* high level or low->high edge */
-#define IRQ_POLARITY_NEGATIVE	0x0	/* low level or high->low edge */
-
-
-#if defined(CONFIG_40x)
-#include <asm/ibm4xx.h>
-
-#ifndef NR_BOARD_IRQS
-#define NR_BOARD_IRQS 0
-#endif
-
-#ifndef UIC_WIDTH /* Number of interrupts per device */
-#define UIC_WIDTH 32
-#endif
-
-#ifndef NR_UICS /* number  of UIC devices */
-#define NR_UICS 1
-#endif
-
-#if defined (CONFIG_403)
-/*
- * The PowerPC 403 cores' Asynchronous Interrupt Controller (AIC) has
- * 32 possible interrupts, a majority of which are not implemented on
- * all cores. There are six configurable, external interrupt pins and
- * there are eight internal interrupts for the on-chip serial port
- * (SPU), DMA controller, and JTAG controller.
- *
- */
-
-#define	NR_AIC_IRQS 32
-#define	NR_IRQS	 (NR_AIC_IRQS + NR_BOARD_IRQS)
-
-#elif !defined (CONFIG_403)
-
-/*
- *  The PowerPC 405 cores' Universal Interrupt Controller (UIC) has 32
- * possible interrupts as well. There are seven, configurable external
- * interrupt pins and there are 17 internal interrupts for the on-chip
- * serial port, DMA controller, on-chip Ethernet controller, PCI, etc.
- *
- */
-
-
-#define NR_UIC_IRQS UIC_WIDTH
-#define NR_IRQS		((NR_UIC_IRQS * NR_UICS) + NR_BOARD_IRQS)
-#endif
-
-#elif defined(CONFIG_44x)
-#include <asm/ibm44x.h>
-
-#define	NR_UIC_IRQS	32
-#define	NR_IRQS		((NR_UIC_IRQS * NR_UICS) + NR_BOARD_IRQS)
-
-#elif defined(CONFIG_8xx)
-
-/* Now include the board configuration specific associations.
-*/
-#include <asm/mpc8xx.h>
-
-/* The MPC8xx cores have 16 possible interrupts.  There are eight
- * possible level sensitive interrupts assigned and generated internally
- * from such devices as CPM, PCMCIA, RTC, PIT, TimeBase and Decrementer.
- * There are eight external interrupts (IRQs) that can be configured
- * as either level or edge sensitive.
- *
- * On some implementations, there is also the possibility of an 8259
- * through the PCI and PCI-ISA bridges.
- *
- * We are "flattening" the interrupt vectors of the cascaded CPM
- * and 8259 interrupt controllers so that we can uniquely identify
- * any interrupt source with a single integer.
- */
-#define NR_SIU_INTS	16
-#define NR_CPM_INTS	32
-#ifndef NR_8259_INTS
-#define NR_8259_INTS 0
-#endif
-
-#define SIU_IRQ_OFFSET		0
-#define CPM_IRQ_OFFSET		(SIU_IRQ_OFFSET + NR_SIU_INTS)
-#define I8259_IRQ_OFFSET	(CPM_IRQ_OFFSET + NR_CPM_INTS)
-
-#define NR_IRQS	(NR_SIU_INTS + NR_CPM_INTS + NR_8259_INTS)
-
-/* These values must be zero-based and map 1:1 with the SIU configuration.
- * They are used throughout the 8xx I/O subsystem to generate
- * interrupt masks, flags, and other control patterns.  This is why the
- * current kernel assumption of the 8259 as the base controller is such
- * a pain in the butt.
- */
-#define	SIU_IRQ0	(0)	/* Highest priority */
-#define	SIU_LEVEL0	(1)
-#define	SIU_IRQ1	(2)
-#define	SIU_LEVEL1	(3)
-#define	SIU_IRQ2	(4)
-#define	SIU_LEVEL2	(5)
-#define	SIU_IRQ3	(6)
-#define	SIU_LEVEL3	(7)
-#define	SIU_IRQ4	(8)
-#define	SIU_LEVEL4	(9)
-#define	SIU_IRQ5	(10)
-#define	SIU_LEVEL5	(11)
-#define	SIU_IRQ6	(12)
-#define	SIU_LEVEL6	(13)
-#define	SIU_IRQ7	(14)
-#define	SIU_LEVEL7	(15)
-
-#define MPC8xx_INT_FEC1		SIU_LEVEL1
-#define MPC8xx_INT_FEC2		SIU_LEVEL3
-
-#define MPC8xx_INT_SCC1		(CPM_IRQ_OFFSET + CPMVEC_SCC1)
-#define MPC8xx_INT_SCC2		(CPM_IRQ_OFFSET + CPMVEC_SCC2)
-#define MPC8xx_INT_SCC3		(CPM_IRQ_OFFSET + CPMVEC_SCC3)
-#define MPC8xx_INT_SCC4		(CPM_IRQ_OFFSET + CPMVEC_SCC4)
-#define MPC8xx_INT_SMC1		(CPM_IRQ_OFFSET + CPMVEC_SMC1)
-#define MPC8xx_INT_SMC2		(CPM_IRQ_OFFSET + CPMVEC_SMC2)
-
-/* The internal interrupts we can configure as we see fit.
- * My personal preference is CPM at level 2, which puts it above the
- * MBX PCI/ISA/IDE interrupts.
- */
-#ifndef PIT_INTERRUPT
-#define PIT_INTERRUPT		SIU_LEVEL0
-#endif
-#ifndef	CPM_INTERRUPT
-#define CPM_INTERRUPT		SIU_LEVEL2
-#endif
-#ifndef	PCMCIA_INTERRUPT
-#define PCMCIA_INTERRUPT	SIU_LEVEL6
-#endif
-#ifndef	DEC_INTERRUPT
-#define DEC_INTERRUPT		SIU_LEVEL7
-#endif
-
-/* Some internal interrupt registers use an 8-bit mask for the interrupt
- * level instead of a number.
- */
-#define	mk_int_int_mask(IL) (1 << (7 - (IL/2)))
-
-#else /* CONFIG_40x + CONFIG_8xx */
-/*
- * this is the # irq's for all ppc arch's (pmac/chrp/prep)
- * so it is the max of them all
- */
-#define NR_IRQS			256
-#define __DO_IRQ_CANON	1
-
-#ifndef CONFIG_8260
-
-#define NUM_8259_INTERRUPTS	16
-
-#else /* CONFIG_8260 */
-
-/* The 8260 has an internal interrupt controller with a maximum of
- * 64 IRQs.  We will use NR_IRQs from above since it is large enough.
- * Don't be confused by the 8260 documentation where they list an
- * "interrupt number" and "interrupt vector".  We are only interested
- * in the interrupt vector.  There are "reserved" holes where the
- * vector number increases, but the interrupt number in the table does not.
- * (Document errata updates have fixed this...make sure you have up to
- * date processor documentation -- Dan).
- */
-
-#ifndef CPM_IRQ_OFFSET
-#define CPM_IRQ_OFFSET	0
-#endif
-
-#define NR_CPM_INTS	64
-
-#define	SIU_INT_ERROR		((uint)0x00 + CPM_IRQ_OFFSET)
-#define	SIU_INT_I2C		((uint)0x01 + CPM_IRQ_OFFSET)
-#define	SIU_INT_SPI		((uint)0x02 + CPM_IRQ_OFFSET)
-#define	SIU_INT_RISC		((uint)0x03 + CPM_IRQ_OFFSET)
-#define	SIU_INT_SMC1		((uint)0x04 + CPM_IRQ_OFFSET)
-#define	SIU_INT_SMC2		((uint)0x05 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IDMA1		((uint)0x06 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IDMA2		((uint)0x07 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IDMA3		((uint)0x08 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IDMA4		((uint)0x09 + CPM_IRQ_OFFSET)
-#define	SIU_INT_SDMA		((uint)0x0a + CPM_IRQ_OFFSET)
-#define	SIU_INT_USB		((uint)0x0b + CPM_IRQ_OFFSET)
-#define	SIU_INT_TIMER1		((uint)0x0c + CPM_IRQ_OFFSET)
-#define	SIU_INT_TIMER2		((uint)0x0d + CPM_IRQ_OFFSET)
-#define	SIU_INT_TIMER3		((uint)0x0e + CPM_IRQ_OFFSET)
-#define	SIU_INT_TIMER4		((uint)0x0f + CPM_IRQ_OFFSET)
-#define	SIU_INT_TMCNT		((uint)0x10 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PIT		((uint)0x11 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PCI		((uint)0x12 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IRQ1		((uint)0x13 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IRQ2		((uint)0x14 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IRQ3		((uint)0x15 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IRQ4		((uint)0x16 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IRQ5		((uint)0x17 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IRQ6		((uint)0x18 + CPM_IRQ_OFFSET)
-#define	SIU_INT_IRQ7		((uint)0x19 + CPM_IRQ_OFFSET)
-#define	SIU_INT_FCC1		((uint)0x20 + CPM_IRQ_OFFSET)
-#define	SIU_INT_FCC2		((uint)0x21 + CPM_IRQ_OFFSET)
-#define	SIU_INT_FCC3		((uint)0x22 + CPM_IRQ_OFFSET)
-#define	SIU_INT_MCC1		((uint)0x24 + CPM_IRQ_OFFSET)
-#define	SIU_INT_MCC2		((uint)0x25 + CPM_IRQ_OFFSET)
-#define	SIU_INT_SCC1		((uint)0x28 + CPM_IRQ_OFFSET)
-#define	SIU_INT_SCC2		((uint)0x29 + CPM_IRQ_OFFSET)
-#define	SIU_INT_SCC3		((uint)0x2a + CPM_IRQ_OFFSET)
-#define	SIU_INT_SCC4		((uint)0x2b + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC15		((uint)0x30 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC14		((uint)0x31 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC13		((uint)0x32 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC12		((uint)0x33 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC11		((uint)0x34 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC10		((uint)0x35 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC9		((uint)0x36 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC8		((uint)0x37 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC7		((uint)0x38 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC6		((uint)0x39 + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC5		((uint)0x3a + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC4		((uint)0x3b + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC3		((uint)0x3c + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC2		((uint)0x3d + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC1		((uint)0x3e + CPM_IRQ_OFFSET)
-#define	SIU_INT_PC0		((uint)0x3f + CPM_IRQ_OFFSET)
-
-#endif /* CONFIG_8260 */
-
-#endif /* Whatever way too big #ifdef */
-
-#define NR_MASK_WORDS	((NR_IRQS + 31) / 32)
-/* pedantic: these are long because they are used with set_bit --RR */
-extern unsigned long ppc_cached_irq_mask[NR_MASK_WORDS];
-
-/*
- * Because many systems have two overlapping names spaces for
- * interrupts (ISA and XICS for example), and the ISA interrupts
- * have historically not been easy to renumber, we allow ISA
- * interrupts to take values 0 - 15, and shift up the remaining
- * interrupts by 0x10.
- */
-#define NUM_ISA_INTERRUPTS	0x10
-extern int __irq_offset_value;
-
-static inline int irq_offset_up(int irq)
-{
-	return(irq + __irq_offset_value);
-}
-
-static inline int irq_offset_down(int irq)
-{
-	return(irq - __irq_offset_value);
-}
-
-static inline int irq_offset_value(void)
-{
-	return __irq_offset_value;
-}
-
-#ifdef __DO_IRQ_CANON
-extern int ppc_do_canonicalize_irqs;
-#else
-#define ppc_do_canonicalize_irqs	0
-#endif
-
-static __inline__ int irq_canonicalize(int irq)
-{
-	if (ppc_do_canonicalize_irqs && irq == 2)
-		irq = 9;
-	return irq;
-}
-#endif /* CONFIG_PPC_MERGE */
-
 extern int distribute_irqs;
 
 struct irqaction;

+ 0 - 0
include/asm-powerpc/irq_regs.h → arch/powerpc/include/asm/irq_regs.h


+ 1 - 3
include/asm-powerpc/irqflags.h → arch/powerpc/include/asm/irqflags.h

@@ -1,6 +1,4 @@
 /*
- * include/asm-powerpc/irqflags.h
- *
  * IRQ flags handling
  */
 #ifndef _ASM_IRQFLAGS_H
@@ -10,7 +8,7 @@
 /*
  * Get definitions for raw_local_save_flags(x), etc.
  */
-#include <asm-powerpc/hw_irq.h>
+#include <asm/hw_irq.h>
 
 #else
 #ifdef CONFIG_TRACE_IRQFLAGS

+ 0 - 0
include/asm-powerpc/iseries/alpaca.h → arch/powerpc/include/asm/iseries/alpaca.h


+ 0 - 0
include/asm-powerpc/iseries/hv_call.h → arch/powerpc/include/asm/iseries/hv_call.h


+ 0 - 0
include/asm-powerpc/iseries/hv_call_event.h → arch/powerpc/include/asm/iseries/hv_call_event.h


+ 0 - 0
include/asm-powerpc/iseries/hv_call_sc.h → arch/powerpc/include/asm/iseries/hv_call_sc.h


+ 0 - 0
include/asm-powerpc/iseries/hv_call_xm.h → arch/powerpc/include/asm/iseries/hv_call_xm.h


+ 0 - 0
include/asm-powerpc/iseries/hv_lp_config.h → arch/powerpc/include/asm/iseries/hv_lp_config.h


+ 0 - 0
include/asm-powerpc/iseries/hv_lp_event.h → arch/powerpc/include/asm/iseries/hv_lp_event.h


+ 0 - 0
include/asm-powerpc/iseries/hv_types.h → arch/powerpc/include/asm/iseries/hv_types.h


+ 0 - 0
include/asm-powerpc/iseries/iommu.h → arch/powerpc/include/asm/iseries/iommu.h


Some files were not shown because too many files changed in this diff