diff options
Diffstat (limited to 'include/asm-cris/arch-v32')
-rw-r--r-- | include/asm-cris/arch-v32/Kbuild | 1 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/ide.h | 56 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/ptrace.h | 4 |
3 files changed, 4 insertions, 57 deletions
diff --git a/include/asm-cris/arch-v32/Kbuild b/include/asm-cris/arch-v32/Kbuild index a0ec545e242e..35f2fc4f993e 100644 --- a/include/asm-cris/arch-v32/Kbuild +++ b/include/asm-cris/arch-v32/Kbuild | |||
@@ -1,3 +1,2 @@ | |||
1 | header-y += ptrace.h | ||
2 | header-y += user.h | 1 | header-y += user.h |
3 | header-y += cryptocop.h | 2 | header-y += cryptocop.h |
diff --git a/include/asm-cris/arch-v32/ide.h b/include/asm-cris/arch-v32/ide.h deleted file mode 100644 index fb9c3627a5b4..000000000000 --- a/include/asm-cris/arch-v32/ide.h +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | /* | ||
2 | * linux/include/asm-cris/ide.h | ||
3 | * | ||
4 | * Copyright (C) 2000-2004 Axis Communications AB | ||
5 | * | ||
6 | * Authors: Bjorn Wesen, Mikael Starvik | ||
7 | * | ||
8 | */ | ||
9 | |||
10 | /* | ||
11 | * This file contains the ETRAX FS specific IDE code. | ||
12 | */ | ||
13 | |||
14 | #ifndef __ASMCRIS_IDE_H | ||
15 | #define __ASMCRIS_IDE_H | ||
16 | |||
17 | #ifdef __KERNEL__ | ||
18 | |||
19 | #include <asm/arch/hwregs/intr_vect.h> | ||
20 | #include <asm/arch/hwregs/ata_defs.h> | ||
21 | #include <asm/io.h> | ||
22 | #include <asm-generic/ide_iops.h> | ||
23 | |||
24 | |||
25 | /* ETRAX FS can support 4 IDE busses on the same pins (serialized) */ | ||
26 | |||
27 | #define MAX_HWIFS 4 | ||
28 | |||
29 | static inline int ide_default_irq(unsigned long base) | ||
30 | { | ||
31 | /* all IDE busses share the same IRQ, | ||
32 | * this has the side-effect that ide-probe.c will cluster our 4 interfaces | ||
33 | * together in a hwgroup, and will serialize accesses. this is good, because | ||
34 | * we can't access more than one interface at the same time on ETRAX100. | ||
35 | */ | ||
36 | return ATA_INTR_VECT; | ||
37 | } | ||
38 | |||
39 | static inline unsigned long ide_default_io_base(int index) | ||
40 | { | ||
41 | reg_ata_rw_ctrl2 ctrl2 = {.sel = index}; | ||
42 | /* we have no real I/O base address per interface, since all go through the | ||
43 | * same register. but in a bitfield in that register, we have the i/f number. | ||
44 | * so we can use the io_base to remember that bitfield. | ||
45 | */ | ||
46 | ctrl2.sel = index; | ||
47 | |||
48 | return REG_TYPE_CONV(unsigned long, reg_ata_rw_ctrl2, ctrl2); | ||
49 | } | ||
50 | |||
51 | #define IDE_ARCH_ACK_INTR | ||
52 | #define ide_ack_intr(hwif) ((hwif)->ack_intr(hwif)) | ||
53 | |||
54 | #endif /* __KERNEL__ */ | ||
55 | |||
56 | #endif /* __ASMCRIS_IDE_H */ | ||
diff --git a/include/asm-cris/arch-v32/ptrace.h b/include/asm-cris/arch-v32/ptrace.h index 516cc7062d94..41f4e8662bc2 100644 --- a/include/asm-cris/arch-v32/ptrace.h +++ b/include/asm-cris/arch-v32/ptrace.h | |||
@@ -106,9 +106,13 @@ struct switch_stack { | |||
106 | unsigned long return_ip; /* ip that _resume will return to */ | 106 | unsigned long return_ip; /* ip that _resume will return to */ |
107 | }; | 107 | }; |
108 | 108 | ||
109 | #ifdef __KERNEL__ | ||
110 | |||
109 | #define user_mode(regs) (((regs)->ccs & (1 << (U_CCS_BITNR + CCS_SHIFT))) != 0) | 111 | #define user_mode(regs) (((regs)->ccs & (1 << (U_CCS_BITNR + CCS_SHIFT))) != 0) |
110 | #define instruction_pointer(regs) ((regs)->erp) | 112 | #define instruction_pointer(regs) ((regs)->erp) |
111 | extern void show_regs(struct pt_regs *); | 113 | extern void show_regs(struct pt_regs *); |
112 | #define profile_pc(regs) instruction_pointer(regs) | 114 | #define profile_pc(regs) instruction_pointer(regs) |
113 | 115 | ||
116 | #endif /* __KERNEL__ */ | ||
117 | |||
114 | #endif | 118 | #endif |