1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Stub keyboard and psaux routines to keep Linux from crashing on machines 7 * without a keyboard. 8 * 9 * Copyright (C) 1998 by Ralf Baechle 10 */ 11#include <linux/sched.h> 12#include <asm/keyboard.h> 13 14static void no_kbd_request_region(void) 15{ 16 /* No I/O ports are being used on the Indy. */ 17} 18 19static int no_kbd_request_irq(void (*handler)(int, void *, struct pt_regs *)) 20{ 21 return -ENODEV; 22} 23 24static int no_aux_request_irq(void (*handler)(int, void *, struct pt_regs *)) 25{ 26 return -ENODEV; 27} 28 29static void no_aux_free_irq(void) 30{ 31} 32 33static unsigned char no_kbd_read_input(void) 34{ 35 return 0; 36} 37 38static void no_kbd_write_output(unsigned char val) 39{ 40} 41 42static void no_kbd_write_command(unsigned char val) 43{ 44} 45 46static unsigned char no_kbd_read_status(void) 47{ 48 return 0; 49} 50 51struct kbd_ops no_kbd_ops = { 52 no_kbd_request_region, 53 no_kbd_request_irq, 54 55 no_aux_request_irq, 56 no_aux_free_irq, 57 58 no_kbd_read_input, 59 no_kbd_write_output, 60 no_kbd_write_command, 61 no_kbd_read_status 62}; 63