diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-11-30 22:33:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-11-30 22:33:22 +0000 |
commit | fc533f72eabcbaa9ede820da4c379923193bbb78 (patch) | |
tree | 6411f6165a0016e3f90c16c5a140da4325329b8a /sys/dev/isa | |
parent | ed88235c4c5560a7b5797f2b729b4dca4aead12c (diff) |
use libkern's bcd convs
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/mcd.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c index 4387d246872..107599f8965 100644 --- a/sys/dev/isa/mcd.c +++ b/sys/dev/isa/mcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcd.c,v 1.22 1997/10/18 10:37:12 deraadt Exp $ */ +/* $OpenBSD: mcd.c,v 1.23 1997/11/30 22:33:21 mickey Exp $ */ /* $NetBSD: mcd.c,v 1.49 1996/05/12 23:53:11 mycroft Exp $ */ /* @@ -81,6 +81,8 @@ #include <dev/isa/mcdreg.h> #include <dev/isa/opti.h> +#include <lib/libkern/libkern.h> + #ifndef MCDDEBUG #define MCD_TRACE(fmt,a,b,c,d) #else @@ -150,8 +152,6 @@ struct mcd_softc { cdev_decl(mcd); bdev_decl(mcd); -static int bcd2bin __P((bcd_t)); -static bcd_t bin2bcd __P((int)); static void hsg2msf __P((int, bcd_t *)); static daddr_t msf2hsg __P((bcd_t *, int)); @@ -1001,22 +1001,6 @@ mcd_send(sc, mbx, diskin) return 0; } -static int -bcd2bin(b) - bcd_t b; -{ - - return (b >> 4) * 10 + (b & 15); -} - -static bcd_t -bin2bcd(b) - int b; -{ - - return ((b / 10) << 4) | (b % 10); -} - static void hsg2msf(hsg, msf) int hsg; |