ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-mips / module.h
1 #ifndef _ASM_MODULE_H
2 #define _ASM_MODULE_H
3
4 #include <linux/config.h>
5
6 struct mod_arch_specific {
7         /* Data Bus Error exception tables */
8         const struct exception_table_entry *dbe_table_start;
9         const struct exception_table_entry *dbe_table_end;
10 };
11
12 typedef uint8_t Elf64_Byte;             /* Type for a 8-bit quantity.  */
13
14 typedef struct
15 {
16   Elf64_Addr r_offset;                  /* Address of relocation.  */
17   Elf64_Word r_sym;                     /* Symbol index.  */
18   Elf64_Byte r_ssym;                    /* Special symbol.  */
19   Elf64_Byte r_type3;                   /* Third relocation.  */
20   Elf64_Byte r_type2;                   /* Second relocation.  */
21   Elf64_Byte r_type;                    /* First relocation.  */
22   Elf64_Sxword r_addend;                /* Addend.  */
23 } Elf64_Mips_Rela;
24
25 #ifdef CONFIG_MIPS32
26
27 #define Elf_Shdr        Elf32_Shdr
28 #define Elf_Sym         Elf32_Sym
29 #define Elf_Ehdr        Elf32_Ehdr
30
31 #endif
32
33 #ifdef CONFIG_MIPS64
34
35 #define Elf_Shdr        Elf64_Shdr
36 #define Elf_Sym         Elf64_Sym
37 #define Elf_Ehdr        Elf64_Ehdr
38
39 #endif
40
41 #endif /* _ASM_MODULE_H */