diff options
author | Greg Ungerer <gerg@snapgear.com> | 2010-09-07 01:48:43 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-10-22 03:43:23 -0400 |
commit | b0860c1d80016df82b93b926f1cff3110ccb5028 (patch) | |
tree | 563c9361c76c904f7ead9c1e92849c7fe6396927 /arch/m68k | |
parent | ea61bc461d09e8d331a307916530aaae808c72a2 (diff) |
m68k/m68knommu: merge machdep.h files into a single file
No need to have separate machdep.h files for each of the MMU and non-MMU
cases. Merge them all into a single file.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/machdep.h | 49 | ||||
-rw-r--r-- | arch/m68k/include/asm/machdep_mm.h | 35 | ||||
-rw-r--r-- | arch/m68k/include/asm/machdep_no.h | 26 |
3 files changed, 44 insertions, 66 deletions
diff --git a/arch/m68k/include/asm/machdep.h b/arch/m68k/include/asm/machdep.h index fc24b6fc5508..789f3b2de0e9 100644 --- a/arch/m68k/include/asm/machdep.h +++ b/arch/m68k/include/asm/machdep.h | |||
@@ -1,5 +1,44 @@ | |||
1 | #ifdef __uClinux__ | 1 | #ifndef _M68K_MACHDEP_H |
2 | #include "machdep_no.h" | 2 | #define _M68K_MACHDEP_H |
3 | #else | 3 | |
4 | #include "machdep_mm.h" | 4 | #include <linux/seq_file.h> |
5 | #endif | 5 | #include <linux/interrupt.h> |
6 | |||
7 | struct pt_regs; | ||
8 | struct mktime; | ||
9 | struct rtc_time; | ||
10 | struct rtc_pll_info; | ||
11 | struct buffer_head; | ||
12 | |||
13 | extern void (*mach_sched_init) (irq_handler_t handler); | ||
14 | /* machine dependent irq functions */ | ||
15 | extern void (*mach_init_IRQ) (void); | ||
16 | extern void (*mach_get_model) (char *model); | ||
17 | extern void (*mach_get_hardware_list) (struct seq_file *m); | ||
18 | /* machine dependent timer functions */ | ||
19 | extern unsigned long (*mach_gettimeoffset)(void); | ||
20 | extern int (*mach_hwclk)(int, struct rtc_time*); | ||
21 | extern unsigned int (*mach_get_ss)(void); | ||
22 | extern int (*mach_get_rtc_pll)(struct rtc_pll_info *); | ||
23 | extern int (*mach_set_rtc_pll)(struct rtc_pll_info *); | ||
24 | extern int (*mach_set_clock_mmss)(unsigned long); | ||
25 | extern void (*mach_gettod)(int *year, int *mon, int *day, int *hour, | ||
26 | int *min, int *sec); | ||
27 | extern void (*mach_reset)( void ); | ||
28 | extern void (*mach_halt)( void ); | ||
29 | extern void (*mach_power_off)( void ); | ||
30 | extern unsigned long (*mach_hd_init) (unsigned long, unsigned long); | ||
31 | extern void (*mach_hd_setup)(char *, int *); | ||
32 | extern long mach_max_dma_address; | ||
33 | extern void (*mach_heartbeat) (int); | ||
34 | extern void (*mach_l2_flush) (int); | ||
35 | extern void (*mach_beep) (unsigned int, unsigned int); | ||
36 | |||
37 | /* Hardware clock functions */ | ||
38 | extern void hw_timer_init(void); | ||
39 | extern unsigned long hw_timer_offset(void); | ||
40 | extern irqreturn_t arch_timer_interrupt(int irq, void *dummy); | ||
41 | |||
42 | extern void config_BSP(char *command, int len); | ||
43 | |||
44 | #endif /* _M68K_MACHDEP_H */ | ||
diff --git a/arch/m68k/include/asm/machdep_mm.h b/arch/m68k/include/asm/machdep_mm.h deleted file mode 100644 index 5637dcef314e..000000000000 --- a/arch/m68k/include/asm/machdep_mm.h +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | #ifndef _M68K_MACHDEP_H | ||
2 | #define _M68K_MACHDEP_H | ||
3 | |||
4 | #include <linux/seq_file.h> | ||
5 | #include <linux/interrupt.h> | ||
6 | |||
7 | struct pt_regs; | ||
8 | struct mktime; | ||
9 | struct rtc_time; | ||
10 | struct rtc_pll_info; | ||
11 | struct buffer_head; | ||
12 | |||
13 | extern void (*mach_sched_init) (irq_handler_t handler); | ||
14 | /* machine dependent irq functions */ | ||
15 | extern void (*mach_init_IRQ) (void); | ||
16 | extern void (*mach_get_model) (char *model); | ||
17 | extern void (*mach_get_hardware_list) (struct seq_file *m); | ||
18 | /* machine dependent timer functions */ | ||
19 | extern unsigned long (*mach_gettimeoffset)(void); | ||
20 | extern int (*mach_hwclk)(int, struct rtc_time*); | ||
21 | extern unsigned int (*mach_get_ss)(void); | ||
22 | extern int (*mach_get_rtc_pll)(struct rtc_pll_info *); | ||
23 | extern int (*mach_set_rtc_pll)(struct rtc_pll_info *); | ||
24 | extern int (*mach_set_clock_mmss)(unsigned long); | ||
25 | extern void (*mach_reset)( void ); | ||
26 | extern void (*mach_halt)( void ); | ||
27 | extern void (*mach_power_off)( void ); | ||
28 | extern unsigned long (*mach_hd_init) (unsigned long, unsigned long); | ||
29 | extern void (*mach_hd_setup)(char *, int *); | ||
30 | extern long mach_max_dma_address; | ||
31 | extern void (*mach_heartbeat) (int); | ||
32 | extern void (*mach_l2_flush) (int); | ||
33 | extern void (*mach_beep) (unsigned int, unsigned int); | ||
34 | |||
35 | #endif /* _M68K_MACHDEP_H */ | ||
diff --git a/arch/m68k/include/asm/machdep_no.h b/arch/m68k/include/asm/machdep_no.h deleted file mode 100644 index de9f47a51cc2..000000000000 --- a/arch/m68k/include/asm/machdep_no.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | #ifndef _M68KNOMMU_MACHDEP_H | ||
2 | #define _M68KNOMMU_MACHDEP_H | ||
3 | |||
4 | #include <linux/interrupt.h> | ||
5 | |||
6 | /* Hardware clock functions */ | ||
7 | extern void hw_timer_init(void); | ||
8 | extern unsigned long hw_timer_offset(void); | ||
9 | |||
10 | extern irqreturn_t arch_timer_interrupt(int irq, void *dummy); | ||
11 | |||
12 | /* Machine dependent time handling */ | ||
13 | extern void (*mach_gettod)(int *year, int *mon, int *day, int *hour, | ||
14 | int *min, int *sec); | ||
15 | extern int (*mach_set_clock_mmss)(unsigned long); | ||
16 | |||
17 | /* machine dependent power off functions */ | ||
18 | extern void (*mach_reset)( void ); | ||
19 | extern void (*mach_halt)( void ); | ||
20 | extern void (*mach_power_off)( void ); | ||
21 | |||
22 | extern void config_BSP(char *command, int len); | ||
23 | |||
24 | extern void do_IRQ(int irq, struct pt_regs *fp); | ||
25 | |||
26 | #endif /* _M68KNOMMU_MACHDEP_H */ | ||