summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-12-27 13:40:57 +0000
committerphk <phk@FreeBSD.org>1998-12-27 13:40:57 +0000
commit6c6e9b35144ac0ad6a5f3a025c004080d76caa5b (patch)
treef45e71b12d9ad1c97d0a9d9e766147f1fbefce6c /sys/isa
parent49535908df01bbb7b31b2b8eb6dd2d55233a1700 (diff)
downloadFreeBSD-src-6c6e9b35144ac0ad6a5f3a025c004080d76caa5b.zip
FreeBSD-src-6c6e9b35144ac0ad6a5f3a025c004080d76caa5b.tar.gz
Pre 3.0 branch cleanup casualty #6: ft
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/fd.c84
1 files changed, 2 insertions, 82 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index e644f78..5380d54 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -47,14 +47,10 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.128 1998/12/12 08:16:01 imp Exp $
+ * $Id: fd.c,v 1.129 1998/12/14 16:29:58 bde Exp $
*
*/
-#include "ft.h"
-#if NFT < 1
-#undef NFDC
-#endif
#include "fd.h"
#include "opt_devfs.h"
#include "opt_fdc.h"
@@ -80,10 +76,6 @@
#include <i386/isa/fdc.h>
#include <i386/isa/rtc.h>
#include <machine/stdarg.h>
-#if NFT > 0
-#include <sys/ftape.h>
-#include <i386/isa/ftreg.h>
-#endif
#ifdef DEVFS
#include <sys/devfsext.h>
#endif /* DEVFS */
@@ -198,17 +190,6 @@ static struct fd_data {
* fdsu is the floppy drive unit number on that controller. (sub-unit) *
\***********************************************************************/
-#if NFT > 0
-int ftopen(dev_t, int);
-int ftintr(ftu_t ftu);
-int ftclose(dev_t, int);
-void ftstrategy(struct buf *);
-int ftioctl(dev_t, unsigned long, caddr_t, int, struct proc *);
-int ftdump(dev_t);
-int ftsize(dev_t);
-int ftattach(struct isa_device *, struct isa_device *, int);
-#endif
-
#ifdef FDC_YE
#include "card.h"
static int yeattach(struct isa_device *);
@@ -650,9 +631,6 @@ fdattach(struct isa_device *dev)
fdc_p fdc = fdc_data + fdcu;
fd_p fd;
int fdsu, st0, st3, i;
-#if NFT > 0
- int unithasfd;
-#endif
struct isa_device *fdup;
int ic_type = 0;
#ifdef DEVFS
@@ -679,7 +657,7 @@ fdattach(struct isa_device *dev)
continue;
fdu = fdup->id_unit;
fd = &fd_data[fdu];
- if (fdu >= (NFD+NFT))
+ if (fdu >= (NFD))
continue;
fdsu = fdup->id_physid;
/* look up what bios thinks we have */
@@ -696,26 +674,8 @@ fdattach(struct isa_device *dev)
}
/* is there a unit? */
if ((fdt == RTCFDT_NONE)
-#if NFT > 0
- || (fdsu >= DRVS_PER_CTLR)) {
-#else
) {
fd->type = NO_TYPE;
-#endif
-#if NFT > 0
- /* If BIOS says no floppy, or > 2nd device */
- /* Probe for and attach a floppy tape. */
- /* Tell FT if there was already a disk */
- /* with this unit number found. */
-
- unithasfd = 0;
- if (fdu < NFD && fd->type != NO_TYPE)
- unithasfd = 1;
- if (ftattach(dev, fdup, unithasfd))
- continue;
- if (fdsu < DRVS_PER_CTLR)
- fd->type = NO_TYPE;
-#endif
continue;
}
@@ -1264,11 +1224,6 @@ Fdopen(dev_t dev, int flags, int mode, struct proc *p)
int type = FDTYPE(minor(dev));
fdc_p fdc;
-#if NFT > 0
- /* check for a tape open */
- if (type & F_TAPE_TYPE)
- return(ftopen(dev, flags));
-#endif
/* check bounds */
if (fdu >= NFD)
return(ENXIO);
@@ -1342,12 +1297,6 @@ fdclose(dev_t dev, int flags, int mode, struct proc *p)
{
fdu_t fdu = FDUNIT(minor(dev));
-#if NFT > 0
- int type = FDTYPE(minor(dev));
-
- if (type & F_TAPE_TYPE)
- return ftclose(dev, flags);
-#endif
fd_data[fdu].flags &= ~FD_OPEN;
fd_data[fdu].options &= ~FDOPT_NORETRY;
@@ -1397,20 +1346,6 @@ fdstrategy(struct buf *bp)
};
#endif
-#if NFT > 0
- if (FDTYPE(minor(bp->b_dev)) & F_TAPE_TYPE) {
- /* ft tapes do not (yet) support strategy i/o */
- bp->b_error = ENODEV;
- bp->b_flags |= B_ERROR;
- goto bad;
- }
- /* check for controller already busy with tape */
- if (fdc->flags & FDC_TAPE_BUSY) {
- bp->b_error = EBUSY;
- bp->b_flags |= B_ERROR;
- goto bad;
- }
-#endif
fdblk = 128 << (fd->ft->secsize);
if (!(bp->b_flags & B_FORMAT)) {
if ((fdu >= NFD) || (bp->b_blkno < 0)) {
@@ -1544,13 +1479,6 @@ static void
fdintr(fdcu_t fdcu)
{
fdc_p fdc = fdc_data + fdcu;
-#if NFT > 0
- fdu_t fdu = fdc->fdu;
-
- if (fdc->flags & FDC_TAPE_BUSY)
- (ftintr(fdu));
- else
-#endif
while(fdstate(fdcu, fdc))
;
}
@@ -2251,14 +2179,6 @@ fdioctl(dev, cmd, addr, flag, p)
char buffer[DEV_BSIZE];
int error = 0;
-#if NFT > 0
- int type = FDTYPE(minor(dev));
-
- /* check for a tape ioctl */
- if (type & F_TAPE_TYPE)
- return ftioctl(dev, cmd, addr, flag, p);
-#endif
-
fdblk = 128 << fd->ft->secsize;
switch (cmd)
OpenPOWER on IntegriCloud