kernel-hacking-2024-linux-s.../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
apus_pci.c
apus_pci.h
apus_setup.c
bseip.h
ccm.h
chestnut.c Merge from Linus' tree 2005-10-12 14:43:32 +10:00
chestnut.h
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
ev64260.c Create platform_device.h to contain all the platform device details. 2005-10-29 19:07:23 +01:00
ev64260.h
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
gemini_pci.c
gemini_prom.S
gemini_serial.h
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
hermes.h
ip860.h
ivms8.h
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
lite5200.c ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
lite5200.h
lopec.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
lopec.h
lwmon.h
Makefile [PATCH] ppc32: nvram driver for chrp 2005-10-29 14:35:00 +10:00
mbx.h
mpc885ads.h [PATCH] ppc32: ppc_sys fixes for 8xx and 82xx 2005-10-29 14:49:29 +10:00
mpc5200.c
mvme5100.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
mvme5100.h
pal4.h
pal4_pci.c
pal4_serial.h
pal4_setup.c ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
pcu_e.h
pmac_backlight.c [PATCH] powerpc: Remove sections use from ppc 2005-09-19 09:38:49 +10:00
pmac_cache.S
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
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
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
pplus.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
pplus.h
pq2ads.c
pq2ads.h
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
prpmc800.c [PATCH] useless includes of linux/irq.h (arch/ppc) 2005-09-30 08:54:02 -07:00
prpmc800.h
radstone_ppc7d.c Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel 2005-10-31 07:32:56 -08:00
radstone_ppc7d.h
residual.c [PATCH] powerpc: Remove sections use from ppc 2005-09-19 09:38:49 +10:00
rpx8260.h
rpxclassic.h
rpxhiox.h
rpxlite.h
sandpoint.c powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
sandpoint.h
sbc82xx.c
sbc82xx.h
sbs8260.h
spruce.c
spruce.h
tqm8xx.h [PATCH] ppc32: Remove board support for SM850 2005-09-05 00:05:55 -07:00
tqm8260.h
tqm8260_setup.c [PATCH] ppc32: Fix building of TQM8260 board 2005-07-27 16:25:56 -07:00