1
0
Fork 0
alistair23-linux/arch/ppc/platforms
David Gibson 26ef5c0957 [PATCH] powerpc: Merge cacheflush.h and cache.h
The ppc32 and ppc64 versions of cacheflush.h were almost identical.
The two versions of cache.h are fairly similar, except for a bunch of
register definitions in the ppc32 version which probably belong better
elsewhere.  This patch, therefore, merges both headers.  Notable
points:
	- there are several functions in cacheflush.h which exist only
on ppc32 or only on ppc64.  These are handled by #ifdef for now, but
these should probably be consolidated, along with the actual code
behind them later.
	- Confusingly, both ppc32 and ppc64 have a
flush_dcache_range(), but they're subtly different: it uses dcbf on
ppc32 and dcbst on ppc64, ppc64 has a flush_inval_dcache_range() which
uses dcbf.  These too should be merged and consolidated later.
	- Also flush_dcache_range() was defined in cacheflush.h on
ppc64, and in cache.h on ppc32.  In the merged version it's in
cacheflush.h
	- On ppc32 flush_icache_range() is a normal function from
misc.S.  On ppc64, it was wrapper, testing a feature bit before
calling __flush_icache_range() which does the actual flush.  This
patch takes the ppc64 approach, which amounts to no change on ppc32,
since CPU_FTR_COHERENT_ICACHE will never be set there, but does mean
renaming flush_icache_range() to __flush_icache_range() in
arch/ppc/kernel/misc.S and arch/powerpc/kernel/misc_32.S
	- The PReP register info from asm-ppc/cache.h has moved to
arch/ppc/platforms/prep_setup.c
	- The 8xx register info from asm-ppc/cache.h has moved to a
new asm-powerpc/reg_8xx.h, included from reg.h
	- flush_dcache_all() was defined on ppc32 (only), but was
never called (although it was exported).  Thus this patch removes it
from cacheflush.h and from ARCH=powerpc (misc_32.S) entirely.  It's
left in ARCH=ppc for now, with the prototype moved to ppc_ksyms.c.

Built for Walnut (ARCH=ppc), 32-bit multiplatform (pmac, CHRP and PReP
ARCH=ppc, pmac and CHRP ARCH=powerpc).  Built and booted on POWER5
LPAR (ARCH=powerpc and ARCH=ppc64).

Built for 32-bit powermac (ARCH=ppc and ARCH=powerpc).  Built and
booted on POWER5 LPAR (ARCH=powerpc and ARCH=ppc64).  Built and booted
on G5 (ARCH=powerpc)

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-11-10 13:09:22 +11:00
..
4xx [PATCH] ppc32: cleanup AMCC PPC40x eval boards to support U-Boot 2005-11-07 07:53:26 -08:00
83xx [PATCH] ppc32: Update MPC834x platform to work with new phylib 2005-11-09 07:55:52 -08:00
85xx [PATCH] ppc32: Fix STx GP3 build 2005-11-09 07:55:51 -08:00
Makefile [PATCH] ppc32: nvram driver for chrp 2005-10-29 14:35:00 +10:00
apus_pci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
apus_pci.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
apus_setup.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bseip.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ccm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
chestnut.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
chestnut.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
chrp_nvram.c [PATCH] ppc32: nvram driver for chrp 2005-10-29 14:35:00 +10:00
chrp_pci.c ppc: rename pci_assign_all_busses to pci_assign_all_buses 2005-10-20 20:57:05 +10:00
chrp_pegasos_eth.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
chrp_setup.c [PATCH] ppc32: nvram driver for chrp 2005-10-29 14:35:00 +10:00
chrp_smp.c ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
chrp_time.c [PATCH] powerpc: Remove sections use from ppc 2005-09-19 09:38:49 +10:00
cpci690.c Create platform_device.h to contain all the platform device details. 2005-10-29 19:07:23 +01:00
cpci690.h [PATCH] ppc32: cpci690 updates 2005-09-05 00:06:01 -07:00
est8260.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ev64260.c Create platform_device.h to contain all the platform device details. 2005-10-29 19:07:23 +01:00
ev64260.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ev64360.c [PATCH] ppc32: add watchdog & RTC support for Marvell EV64360BP board 2005-11-07 07:53:26 -08:00
ev64360.h [PATCH] ppc32: add support for Marvell EV64360BP board 2005-09-05 00:05:59 -07:00
fads.h [PATCH] ppc32: ppc_sys fixes for 8xx and 82xx 2005-10-29 14:49:29 +10:00
gemini.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gemini_pci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gemini_prom.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gemini_serial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gemini_setup.c ppc: Minor smp changes for consistency with ppc64 2005-10-19 21:44:51 +10:00
hdpu.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
hdpu.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hermes.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip860.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ivms8.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
katana.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
katana.h [PATCH] ppc32: katana updates 2005-09-05 00:06:00 -07:00
lantec.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lite5200.c ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
lite5200.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lopec.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
lopec.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lwmon.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mbx.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mpc885ads.h [PATCH] ppc32: ppc_sys fixes for 8xx and 82xx 2005-10-29 14:49:29 +10:00
mpc5200.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mvme5100.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
mvme5100.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pal4.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pal4_pci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pal4_serial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pal4_setup.c ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
pcu_e.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_backlight.c [PATCH] powerpc: Remove sections use from ppc 2005-09-19 09:38:49 +10:00
pmac_cache.S [PATCH] ppc32: Workaround a cache flush issue on sleep 2005-05-01 18:22:34 -07:00
pmac_cpufreq.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
pmac_feature.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
pmac_low_i2c.c [PATCH] ppc iomem annotations: pmac_low_i2c 2005-04-25 07:55:58 -07:00
pmac_nvram.c [PATCH] powerpc: Remove sections use from ppc 2005-09-19 09:38:49 +10:00
pmac_pci.c ppc: rename pci_assign_all_busses to pci_assign_all_buses 2005-10-20 20:57:05 +10:00
pmac_pic.c powerpc: merge irq.c 2005-11-09 18:07:45 +11:00
pmac_pic.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_setup.c ppc: Minor smp changes for consistency with ppc64 2005-10-19 21:44:51 +10:00
pmac_sleep.S ppc32: use L1_CACHE_SHIFT/L1_CACHE_BYTES 2005-10-17 11:50:32 +10:00
pmac_smp.c ppc: Minor smp changes for consistency with ppc64 2005-10-19 21:44:51 +10:00
pmac_time.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
powerpmc250.c [PATCH] useless includes of linux/irq.h (arch/ppc) 2005-09-30 08:54:02 -07:00
powerpmc250.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pplus.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
pplus.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pq2ads.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pq2ads.h [PATCH] ppc32: Support for 82xx PQII on-chip PCI bridge 2005-05-28 16:46:15 -07:00
prep_pci.c [PATCH] powerpc: Remove sections use from ppc 2005-09-19 09:38:49 +10:00
prep_setup.c [PATCH] powerpc: Merge cacheflush.h and cache.h 2005-11-10 13:09:22 +11:00
prpmc750.c [PATCH] useless includes of linux/irq.h (arch/ppc) 2005-09-30 08:54:02 -07:00
prpmc750.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
prpmc800.c [PATCH] useless includes of linux/irq.h (arch/ppc) 2005-09-30 08:54:02 -07:00
prpmc800.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
radstone_ppc7d.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
radstone_ppc7d.h [PATCH] ppc32: fix for misreported SDRAM size on Radstone PPC7D platform 2005-05-01 08:58:40 -07:00
residual.c [PATCH] powerpc: Remove sections use from ppc 2005-09-19 09:38:49 +10:00
rpx8260.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rpxclassic.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rpxhiox.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rpxlite.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sandpoint.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
sandpoint.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sbc82xx.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sbc82xx.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sbs8260.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
spruce.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
spruce.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tqm8xx.h [PATCH] ppc32: Remove board support for SM850 2005-09-05 00:05:55 -07:00
tqm8260.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tqm8260_setup.c [PATCH] ppc32: Fix building of TQM8260 board 2005-07-27 16:25:56 -07:00