2 * linux/arch/m68k/hp300/config.c
4 * Copyright (C) 1998 Philip Blundell <philb@gnu.org>
6 * This file contains the HP300-specific initialisation code. It gets
10 #include <linux/config.h>
11 #include <linux/types.h>
14 #include <linux/tty.h>
15 #include <linux/console.h>
16 #include <linux/interrupt.h>
17 #include <linux/init.h>
18 #include <asm/machdep.h>
19 #include <asm/blinken.h>
20 #include <asm/io.h> /* readb() and writeb() */
21 #include <asm/hwtest.h> /* hwreg_present() */
26 extern void hp300_reset(void);
27 extern void (*hp300_default_handler
[])(int, void *, struct pt_regs
*);
28 extern int hp300_get_irq_list(char *buf
);
31 extern int hp300_keyb_init(void);
33 /* Dummy function for when there is no keyboard. */
34 int __init
hp300_keyb_init(void)
39 #ifdef CONFIG_HEARTBEAT
40 static void hp300_pulse(int x
)
49 static int hp300_kbdrate(struct kbd_repeat
*k
)
54 static void hp300_kbd_leds(unsigned int leds
)
58 static void hp300_get_model(char *model
)
60 strcpy(model
, "HP9000/300");
63 void __init
config_hp300(void)
65 mach_sched_init
= hp300_sched_init
;
66 mach_keyb_init
= hp300_keyb_init
;
67 mach_kbdrate
= hp300_kbdrate
;
68 mach_kbd_leds
= hp300_kbd_leds
;
69 mach_init_IRQ
= hp300_init_IRQ
;
70 mach_request_irq
= hp300_request_irq
;
71 mach_free_irq
= hp300_free_irq
;
72 mach_get_model
= hp300_get_model
;
73 mach_get_irq_list
= hp300_get_irq_list
;
74 mach_gettimeoffset
= hp300_gettimeoffset
;
75 mach_default_handler
= &hp300_default_handler
;
77 mach_gettod
= hp300_gettod
;
79 mach_reset
= hp300_reset
;
80 #ifdef CONFIG_HEARTBEAT
81 mach_heartbeat
= hp300_pulse
;
83 #ifdef CONFIG_DUMMY_CONSOLE
84 conswitchp
= &dummy_con
;
86 mach_max_dma_address
= 0xffffffff;