From 9091bc8257bdb5c76008f1360add444616eb4bbc Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 1 Mar 1994 18:22:52 +0000 Subject: [PATCH] Remove some dead code. --- sys/arch/i386/isa/isa.c | 23 ++++++----------------- sys/dev/isa/isa.c | 23 ++++++----------------- 2 files changed, 12 insertions(+), 34 deletions(-) diff --git a/sys/arch/i386/isa/isa.c b/sys/arch/i386/isa/isa.c index ff61c649c801..5256daa0046e 100644 --- a/sys/arch/i386/isa/isa.c +++ b/sys/arch/i386/isa/isa.c @@ -1,4 +1,5 @@ /*- + * Copyright (c) 1994 Charles Hannum. * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. * @@ -34,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 - * $Id: isa.c,v 1.37 1994/03/01 18:16:33 mycroft Exp $ + * $Id: isa.c,v 1.38 1994/03/01 18:22:52 mycroft Exp $ */ /* @@ -75,8 +76,8 @@ u_short *Crtat = (u_short *)MONO_BUF; /* -** Register definitions for DMA controller 1 (channels 0..3): -*/ + * Register definitions for DMA controller 1 (channels 0..3): + */ #define DMA1_CHN(c) (IO_DMA1 + 1*(2*(c))) /* addr reg for channel c */ #define DMA1_SR (IO_DMA1 + 1*8) /* status register */ #define DMA1_SMSK (IO_DMA1 + 1*10) /* single mask register */ @@ -84,8 +85,8 @@ u_short *Crtat = (u_short *)MONO_BUF; #define DMA1_FFC (IO_DMA1 + 1*12) /* clear first/last FF */ /* -** Register definitions for DMA controller 2 (channels 4..7): -*/ + * Register definitions for DMA controller 2 (channels 4..7): + */ #define DMA2_CHN(c) (IO_DMA2 + 2*(2*(c))) /* addr reg for channel c */ #define DMA2_SR (IO_DMA2 + 2*8) /* status register */ #define DMA2_SMSK (IO_DMA2 + 2*10) /* single mask register */ @@ -709,18 +710,6 @@ sysbeep(int pitch, int period) splx(s); } -/* - * Pass command to keyboard controller (8042) - */ -unsigned -kbc_8042cmd(int val) -{ - while (inb(KBSTATP)&KBS_IBF); - if (val) outb(KBCMDP, val); - while (inb(KBSTATP)&KBS_IBF); - return (inb(KBDATAP)); -} - /* * find an ISA device in a given isa_devtab_* table, given * the table to search, the expected id_driver entry, and the unit number. diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c index ff61c649c801..5256daa0046e 100644 --- a/sys/dev/isa/isa.c +++ b/sys/dev/isa/isa.c @@ -1,4 +1,5 @@ /*- + * Copyright (c) 1994 Charles Hannum. * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. * @@ -34,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 - * $Id: isa.c,v 1.37 1994/03/01 18:16:33 mycroft Exp $ + * $Id: isa.c,v 1.38 1994/03/01 18:22:52 mycroft Exp $ */ /* @@ -75,8 +76,8 @@ u_short *Crtat = (u_short *)MONO_BUF; /* -** Register definitions for DMA controller 1 (channels 0..3): -*/ + * Register definitions for DMA controller 1 (channels 0..3): + */ #define DMA1_CHN(c) (IO_DMA1 + 1*(2*(c))) /* addr reg for channel c */ #define DMA1_SR (IO_DMA1 + 1*8) /* status register */ #define DMA1_SMSK (IO_DMA1 + 1*10) /* single mask register */ @@ -84,8 +85,8 @@ u_short *Crtat = (u_short *)MONO_BUF; #define DMA1_FFC (IO_DMA1 + 1*12) /* clear first/last FF */ /* -** Register definitions for DMA controller 2 (channels 4..7): -*/ + * Register definitions for DMA controller 2 (channels 4..7): + */ #define DMA2_CHN(c) (IO_DMA2 + 2*(2*(c))) /* addr reg for channel c */ #define DMA2_SR (IO_DMA2 + 2*8) /* status register */ #define DMA2_SMSK (IO_DMA2 + 2*10) /* single mask register */ @@ -709,18 +710,6 @@ sysbeep(int pitch, int period) splx(s); } -/* - * Pass command to keyboard controller (8042) - */ -unsigned -kbc_8042cmd(int val) -{ - while (inb(KBSTATP)&KBS_IBF); - if (val) outb(KBCMDP, val); - while (inb(KBSTATP)&KBS_IBF); - return (inb(KBDATAP)); -} - /* * find an ISA device in a given isa_devtab_* table, given * the table to search, the expected id_driver entry, and the unit number.