From 47745a094d317541fddcafeceb10cad97db4780d Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 27 May 2001 18:16:21 +0000 Subject: [PATCH] Add support for the Algorithmics ISA floppy controller. --- sys/dev/isa/fd.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index 50f43f6a884b..ba4fe9fee4ec 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $NetBSD: fd.c,v 1.15 2001/05/19 12:04:07 tsutsui Exp $ */ +/* $NetBSD: fd.c,v 1.16 2001/05/27 18:16:21 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -98,7 +98,8 @@ * XXX This driver should be properly MI'd some day, but this allows us * XXX to eliminate a lot of code duplication for now. */ -#if !defined(alpha) && !defined(bebox) && !defined(i386) && !defined(prep) && !defined(atari) +#if !defined(alpha) && !defined(algor) && !defined(atari) && \ + !defined(bebox) && !defined(i386) && !defined(prep) #error platform not supported by this driver, yet #endif @@ -119,6 +120,7 @@ #include #include #include +#include #if NRND > 0 #include #endif @@ -129,12 +131,8 @@ #include #include + #if defined(atari) -#include - -bdev_decl(fd); -cdev_decl(fd); - /* * On the atari, it is configured as fdcisa */ @@ -143,10 +141,7 @@ cdev_decl(fd); #define fd_cd fdisa_cd #define fd_ca fdisa_ca - -#else -#include -#endif /* defined(atari) */ +#endif /* atari */ #include @@ -168,6 +163,9 @@ cdev_decl(fd); #endif /* i386 */ +bdev_decl(fd); +cdev_decl(fd); + #define FDUNIT(dev) (minor(dev) / 8) #define FDTYPE(dev) (minor(dev) % 8)