Add support for the Algorithmics ISA floppy controller.
This commit is contained in:
parent
ce289cc293
commit
47745a094d
|
@ -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.
|
* 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 This driver should be properly MI'd some day, but this allows us
|
||||||
* XXX to eliminate a lot of code duplication for now.
|
* 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
|
#error platform not supported by this driver, yet
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -119,6 +120,7 @@
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <sys/fdio.h>
|
#include <sys/fdio.h>
|
||||||
|
#include <sys/conf.h>
|
||||||
#if NRND > 0
|
#if NRND > 0
|
||||||
#include <sys/rnd.h>
|
#include <sys/rnd.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -129,12 +131,8 @@
|
||||||
|
|
||||||
#include <machine/cpu.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/bus.h>
|
#include <machine/bus.h>
|
||||||
|
|
||||||
#if defined(atari)
|
#if defined(atari)
|
||||||
#include <sys/conf.h>
|
|
||||||
|
|
||||||
bdev_decl(fd);
|
|
||||||
cdev_decl(fd);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On the atari, it is configured as fdcisa
|
* On the atari, it is configured as fdcisa
|
||||||
*/
|
*/
|
||||||
|
@ -143,10 +141,7 @@ cdev_decl(fd);
|
||||||
|
|
||||||
#define fd_cd fdisa_cd
|
#define fd_cd fdisa_cd
|
||||||
#define fd_ca fdisa_ca
|
#define fd_ca fdisa_ca
|
||||||
|
#endif /* atari */
|
||||||
#else
|
|
||||||
#include <machine/conf.h>
|
|
||||||
#endif /* defined(atari) */
|
|
||||||
|
|
||||||
#include <machine/intr.h>
|
#include <machine/intr.h>
|
||||||
|
|
||||||
|
@ -168,6 +163,9 @@ cdev_decl(fd);
|
||||||
|
|
||||||
#endif /* i386 */
|
#endif /* i386 */
|
||||||
|
|
||||||
|
bdev_decl(fd);
|
||||||
|
cdev_decl(fd);
|
||||||
|
|
||||||
#define FDUNIT(dev) (minor(dev) / 8)
|
#define FDUNIT(dev) (minor(dev) / 8)
|
||||||
#define FDTYPE(dev) (minor(dev) % 8)
|
#define FDTYPE(dev) (minor(dev) % 8)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue