Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / arch / mips / lib / kbd-no.c
blobc94e8c000648aa066d2a9634894b546cb97b6a86
1 /* $Id: kbd-no.c,v 1.1 1998/10/28 12:38:14 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Stub keyboard and psaux routines to keep Linux from crashing on machines
8 * without a keyboard.
10 * Copyright (C) 1998 by Ralf Baechle
12 #include <linux/sched.h>
13 #include <asm/keyboard.h>
15 static void no_kbd_request_region(void)
17 /* No I/O ports are being used on the Indy. */
20 static int no_kbd_request_irq(void (*handler)(int, void *, struct pt_regs *))
22 return -ENODEV;
25 static int no_aux_request_irq(void (*handler)(int, void *, struct pt_regs *))
27 return -ENODEV;
30 static void no_aux_free_irq(void)
34 static unsigned char no_kbd_read_input(void)
36 return 0;
39 static void no_kbd_write_output(unsigned char val)
43 static void no_kbd_write_command(unsigned char val)
47 static unsigned char no_kbd_read_status(void)
49 return 0;
52 struct kbd_ops no_kbd_ops = {
53 no_kbd_request_region,
54 no_kbd_request_irq,
56 no_aux_request_irq,
57 no_aux_free_irq,
59 no_kbd_read_input,
60 no_kbd_write_output,
61 no_kbd_write_command,
62 no_kbd_read_status