diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2005-11-11 00:42:12 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-11 06:23:34 -0500 |
commit | 35cd8785de39c90a52287d0f041cff8a792eaa74 (patch) | |
tree | e45b94be971992d21f06086ef2ae443b90fd621b /include | |
parent | a7df61a0e2b6300d8b8349c1e5e87a4336c0ab38 (diff) |
[PATCH] powerpc: Move udbg code to arch/powerpc
Since the udbg code in ppc64 has no ppc32 equivalent, move it straight
over into arch/powerpc (and include/asm-powerpc for udbg.h). In time,
we probably want to meld the various bits and pieces of 32-bit early
debugging code into udbg, but for now only include it on
CONFIG_PPC64=y builds. The only change during the move is to
standardise the protecting #ifdef/#define in udbg.h, and move its
banner comment above the initial #ifdef (which seems to be normal
practice).
Built and booted on POWER5 LPAR (ARCH=powerpc and ARCH=ppc64). Built
for 32bit multiplatform (ARCH=powerpc).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/udbg.h (renamed from include/asm-ppc64/udbg.h) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-ppc64/udbg.h b/include/asm-powerpc/udbg.h index e3b927991851..a383383bc4d4 100644 --- a/include/asm-ppc64/udbg.h +++ b/include/asm-powerpc/udbg.h | |||
@@ -1,9 +1,3 @@ | |||
1 | #ifndef __UDBG_HDR | ||
2 | #define __UDBG_HDR | ||
3 | |||
4 | #include <linux/compiler.h> | ||
5 | #include <linux/init.h> | ||
6 | |||
7 | /* | 1 | /* |
8 | * c 2001 PPC 64 Team, IBM Corp | 2 | * c 2001 PPC 64 Team, IBM Corp |
9 | * | 3 | * |
@@ -13,6 +7,12 @@ | |||
13 | * 2 of the License, or (at your option) any later version. | 7 | * 2 of the License, or (at your option) any later version. |
14 | */ | 8 | */ |
15 | 9 | ||
10 | #ifndef _ASM_POWERPC_UDBG_H | ||
11 | #define _ASM_POWERPC_UDBG_H | ||
12 | |||
13 | #include <linux/compiler.h> | ||
14 | #include <linux/init.h> | ||
15 | |||
16 | extern void (*udbg_putc)(unsigned char c); | 16 | extern void (*udbg_putc)(unsigned char c); |
17 | extern unsigned char (*udbg_getc)(void); | 17 | extern unsigned char (*udbg_getc)(void); |
18 | extern int (*udbg_getc_poll)(void); | 18 | extern int (*udbg_getc_poll)(void); |
@@ -28,4 +28,4 @@ extern void udbg_init_uart(void __iomem *comport, unsigned int speed); | |||
28 | 28 | ||
29 | struct device_node; | 29 | struct device_node; |
30 | extern void udbg_init_scc(struct device_node *np); | 30 | extern void udbg_init_scc(struct device_node *np); |
31 | #endif | 31 | #endif /* _ASM_POWERPC_UDBG_H */ |