iwlwifi: 3945 remove duplicated code from iwl-3945-commands.h
[zen-stable.git] / arch / powerpc / xmon / dis-asm.h
blobbe3533b93f30902c7c7a27d5575fddbcc47ad4cd
1 #ifndef _POWERPC_XMON_DIS_ASM_H
2 #define _POWERPC_XMON_DIS_ASM_H
3 /*
4 * Copyright (C) 2006 Michael Ellerman, IBM Corporation.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
12 extern void print_address (unsigned long memaddr);
14 #ifdef CONFIG_XMON_DISASSEMBLY
15 extern int print_insn_powerpc(unsigned long insn, unsigned long memaddr);
16 extern int print_insn_spu(unsigned long insn, unsigned long memaddr);
17 #else
18 static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
20 printf("%.8x", insn);
21 return 0;
24 static inline int print_insn_spu(unsigned long insn, unsigned long memaddr)
26 printf("%.8x", insn);
27 return 0;
29 #endif
31 #endif /* _POWERPC_XMON_DIS_ASM_H */