diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2005-10-31 23:30:26 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-02 00:05:53 -0500 |
commit | f11b7bd88f8b41f0986498ffa11ffff1c3e513ca (patch) | |
tree | fbf92752f905946df5bedeffa37a0614bbf2aa86 /arch | |
parent | 9933f299d0e9e7b12ed4260669653d04d5e752c7 (diff) |
[PATCH] powerpc: Move naca.h to platforms/iseries
These days, the NACA only exists on iSeries. Therefore, this patch
moves naca.h from include/asm-ppc64 to arch/powerpc/platforms/iseries.
There was one file including naca.h outside of platforms/iseries -
arch/ppc64/kernel/udbg_scc.c. However, that's obviously a hangover
from older days. The include is not necessary, so this patch simply
removes it.
Built and booted on iSeries, built for G5 (which uses udbg_scc.o).
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/iseries/lpardata.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/naca.h | 24 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/release_data.h | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/setup.c | 2 | ||||
-rw-r--r-- | arch/ppc64/kernel/udbg_scc.c | 1 |
5 files changed, 27 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/iseries/lpardata.c b/arch/powerpc/platforms/iseries/lpardata.c index ed2ffee6f731..e856947bd16d 100644 --- a/arch/powerpc/platforms/iseries/lpardata.c +++ b/arch/powerpc/platforms/iseries/lpardata.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/bitops.h> | 13 | #include <linux/bitops.h> |
14 | #include <asm/processor.h> | 14 | #include <asm/processor.h> |
15 | #include <asm/ptrace.h> | 15 | #include <asm/ptrace.h> |
16 | #include <asm/naca.h> | ||
17 | #include <asm/abs_addr.h> | 16 | #include <asm/abs_addr.h> |
18 | #include <asm/iSeries/ItLpNaca.h> | 17 | #include <asm/iSeries/ItLpNaca.h> |
19 | #include <asm/lppaca.h> | 18 | #include <asm/lppaca.h> |
@@ -23,6 +22,7 @@ | |||
23 | #include <asm/iSeries/ItExtVpdPanel.h> | 22 | #include <asm/iSeries/ItExtVpdPanel.h> |
24 | #include <asm/iSeries/ItLpQueue.h> | 23 | #include <asm/iSeries/ItLpQueue.h> |
25 | 24 | ||
25 | #include "naca.h" | ||
26 | #include "vpd_areas.h" | 26 | #include "vpd_areas.h" |
27 | #include "spcomm_area.h" | 27 | #include "spcomm_area.h" |
28 | #include "ipl_parms.h" | 28 | #include "ipl_parms.h" |
diff --git a/arch/powerpc/platforms/iseries/naca.h b/arch/powerpc/platforms/iseries/naca.h new file mode 100644 index 000000000000..ab2372eb8d2e --- /dev/null +++ b/arch/powerpc/platforms/iseries/naca.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef _PLATFORMS_ISERIES_NACA_H | ||
2 | #define _PLATFORMS_ISERIES_NACA_H | ||
3 | |||
4 | /* | ||
5 | * c 2001 PPC 64 Team, IBM Corp | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of the GNU General Public License | ||
9 | * as published by the Free Software Foundation; either version | ||
10 | * 2 of the License, or (at your option) any later version. | ||
11 | */ | ||
12 | |||
13 | #include <asm/types.h> | ||
14 | |||
15 | struct naca_struct { | ||
16 | /* Kernel only data - undefined for user space */ | ||
17 | void *xItVpdAreas; /* VPD Data 0x00 */ | ||
18 | void *xRamDisk; /* iSeries ramdisk 0x08 */ | ||
19 | u64 xRamDiskSize; /* In pages 0x10 */ | ||
20 | }; | ||
21 | |||
22 | extern struct naca_struct naca; | ||
23 | |||
24 | #endif /* _PLATFORMS_ISERIES_NACA_H */ | ||
diff --git a/arch/powerpc/platforms/iseries/release_data.h b/arch/powerpc/platforms/iseries/release_data.h index c68b9c3e5caf..66189fd2e32d 100644 --- a/arch/powerpc/platforms/iseries/release_data.h +++ b/arch/powerpc/platforms/iseries/release_data.h | |||
@@ -24,7 +24,7 @@ | |||
24 | * address of the OS's NACA). | 24 | * address of the OS's NACA). |
25 | */ | 25 | */ |
26 | #include <asm/types.h> | 26 | #include <asm/types.h> |
27 | #include <asm/naca.h> | 27 | #include "naca.h" |
28 | 28 | ||
29 | /* | 29 | /* |
30 | * When we IPL a secondary partition, we will check if if the | 30 | * When we IPL a secondary partition, we will check if if the |
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c index 06431e642533..7bc19a594cc6 100644 --- a/arch/powerpc/platforms/iseries/setup.c +++ b/arch/powerpc/platforms/iseries/setup.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <asm/firmware.h> | 41 | #include <asm/firmware.h> |
42 | 42 | ||
43 | #include <asm/time.h> | 43 | #include <asm/time.h> |
44 | #include <asm/naca.h> | ||
45 | #include <asm/paca.h> | 44 | #include <asm/paca.h> |
46 | #include <asm/cache.h> | 45 | #include <asm/cache.h> |
47 | #include <asm/sections.h> | 46 | #include <asm/sections.h> |
@@ -54,6 +53,7 @@ | |||
54 | #include <asm/iSeries/HvLpEvent.h> | 53 | #include <asm/iSeries/HvLpEvent.h> |
55 | #include <asm/iSeries/LparMap.h> | 54 | #include <asm/iSeries/LparMap.h> |
56 | 55 | ||
56 | #include "naca.h" | ||
57 | #include "setup.h" | 57 | #include "setup.h" |
58 | #include "irq.h" | 58 | #include "irq.h" |
59 | #include "vpd_areas.h" | 59 | #include "vpd_areas.h" |
diff --git a/arch/ppc64/kernel/udbg_scc.c b/arch/ppc64/kernel/udbg_scc.c index c47fd6c63531..820c53551507 100644 --- a/arch/ppc64/kernel/udbg_scc.c +++ b/arch/ppc64/kernel/udbg_scc.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | #include <asm/udbg.h> | 13 | #include <asm/udbg.h> |
14 | #include <asm/processor.h> | 14 | #include <asm/processor.h> |
15 | #include <asm/naca.h> | ||
16 | #include <asm/io.h> | 15 | #include <asm/io.h> |
17 | #include <asm/prom.h> | 16 | #include <asm/prom.h> |
18 | #include <asm/pmac_feature.h> | 17 | #include <asm/pmac_feature.h> |