spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
[zen-stable.git] / arch / sh / include / asm / module.h
blobb7927de86f9fcfb9d220abfd03872d06307cf149
1 #ifndef _ASM_SH_MODULE_H
2 #define _ASM_SH_MODULE_H
4 struct mod_arch_specific {
5 #ifdef CONFIG_DWARF_UNWINDER
6 struct list_head fde_list;
7 struct list_head cie_list;
8 #endif
9 };
11 #ifdef CONFIG_64BIT
12 #define Elf_Shdr Elf64_Shdr
13 #define Elf_Sym Elf64_Sym
14 #define Elf_Ehdr Elf64_Ehdr
15 #else
16 #define Elf_Shdr Elf32_Shdr
17 #define Elf_Sym Elf32_Sym
18 #define Elf_Ehdr Elf32_Ehdr
19 #endif
21 #ifdef CONFIG_CPU_LITTLE_ENDIAN
22 # ifdef CONFIG_CPU_SH2
23 # define MODULE_PROC_FAMILY "SH2LE "
24 # elif defined CONFIG_CPU_SH3
25 # define MODULE_PROC_FAMILY "SH3LE "
26 # elif defined CONFIG_CPU_SH4
27 # define MODULE_PROC_FAMILY "SH4LE "
28 # elif defined CONFIG_CPU_SH5
29 # define MODULE_PROC_FAMILY "SH5LE "
30 # else
31 # error unknown processor family
32 # endif
33 #else
34 # ifdef CONFIG_CPU_SH2
35 # define MODULE_PROC_FAMILY "SH2BE "
36 # elif defined CONFIG_CPU_SH3
37 # define MODULE_PROC_FAMILY "SH3BE "
38 # elif defined CONFIG_CPU_SH4
39 # define MODULE_PROC_FAMILY "SH4BE "
40 # elif defined CONFIG_CPU_SH5
41 # define MODULE_PROC_FAMILY "SH5BE "
42 # else
43 # error unknown processor family
44 # endif
45 #endif
47 #define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
49 #endif /* _ASM_SH_MODULE_H */