temp: SR: IO_ADDRESS conversion
[linux-ginger.git] / arch / sh / include / asm / module.h
blob068bf1659750def61fe9e35f1dbb01a20d3fbd0b
1 #ifndef _ASM_SH_MODULE_H
2 #define _ASM_SH_MODULE_H
4 #include <asm-generic/module.h>
6 #ifdef CONFIG_CPU_LITTLE_ENDIAN
7 # ifdef CONFIG_CPU_SH2
8 # define MODULE_PROC_FAMILY "SH2LE "
9 # elif defined CONFIG_CPU_SH3
10 # define MODULE_PROC_FAMILY "SH3LE "
11 # elif defined CONFIG_CPU_SH4
12 # define MODULE_PROC_FAMILY "SH4LE "
13 # elif defined CONFIG_CPU_SH5
14 # define MODULE_PROC_FAMILY "SH5LE "
15 # else
16 # error unknown processor family
17 # endif
18 #else
19 # ifdef CONFIG_CPU_SH2
20 # define MODULE_PROC_FAMILY "SH2BE "
21 # elif defined CONFIG_CPU_SH3
22 # define MODULE_PROC_FAMILY "SH3BE "
23 # elif defined CONFIG_CPU_SH4
24 # define MODULE_PROC_FAMILY "SH4BE "
25 # elif defined CONFIG_CPU_SH5
26 # define MODULE_PROC_FAMILY "SH5BE "
27 # else
28 # error unknown processor family
29 # endif
30 #endif
32 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
34 #endif /* _ASM_SH_MODULE_H */