mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Moved the ft.c from 1.1.5.1 over. It works on my Conner thingie. Got
rid of a ton of unused vars at the same time.
This commit is contained in:
parent
d111a6bea7
commit
87eafbcacd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3085
5 changed files with 2088 additions and 1702 deletions
|
@ -40,7 +40,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.30 1994/09/17 16:56:06 davidg Exp $
|
||||
* $Id: fd.c,v 1.31 1994/09/17 18:08:36 joerg Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -71,6 +71,10 @@
|
|||
#include <i386/isa/fdreg.h>
|
||||
#include <i386/isa/fdc.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#if NFT > 0
|
||||
#include <sys/ftape.h>
|
||||
#include <i386/isa/ftreg.h>
|
||||
#endif
|
||||
|
||||
#define RAW_PART 2
|
||||
#define b_cylin b_resid
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.30 1994/09/17 16:56:06 davidg Exp $
|
||||
* $Id: fd.c,v 1.31 1994/09/17 18:08:36 joerg Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -71,6 +71,10 @@
|
|||
#include <i386/isa/fdreg.h>
|
||||
#include <i386/isa/fdc.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#if NFT > 0
|
||||
#include <sys/ftape.h>
|
||||
#include <i386/isa/ftreg.h>
|
||||
#endif
|
||||
|
||||
#define RAW_PART 2
|
||||
#define b_cylin b_resid
|
||||
|
|
3755
sys/i386/isa/ft.c
3755
sys/i386/isa/ft.c
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1993 Steve Gerakines
|
||||
* Copyright (c) 1993, 1994 Steve Gerakines
|
||||
*
|
||||
* This is freely redistributable software. You may do anything you
|
||||
* wish with it, so long as the above notice stays intact.
|
||||
|
@ -17,6 +17,9 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* ftreg.h - QIC-40/80 floppy tape driver header
|
||||
* 06/03/94 v0.9
|
||||
* Changed seek load point to QC_SEEKLP, added reqseg to SegReq structure.
|
||||
*
|
||||
* 10/30/93 v0.3
|
||||
* More things will end up here. QC_VENDORID and QC_VERSION now used.
|
||||
*
|
||||
|
@ -26,8 +29,6 @@
|
|||
*
|
||||
* 06/03/93 v0.1 Alpha release
|
||||
* Initial revision. Many more things should be moved here.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* QIC-117 command set. */
|
||||
|
@ -44,7 +45,7 @@
|
|||
#define QC_SEEKSTART 11 /* seek to track start */
|
||||
#define QC_SEEKEND 12 /* seek to track end */
|
||||
#define QC_SEEKTRACK 13 /* seek head to track */
|
||||
#define QC_SEEKLOAD 14 /* seek load point */
|
||||
#define QC_SEEKLP 14 /* seek load point */
|
||||
#define QC_FORMAT 15 /* format mode */
|
||||
#define QC_WRITEREF 16 /* write reference */
|
||||
#define QC_VERIFY 17 /* verify mode */
|
||||
|
@ -64,7 +65,7 @@
|
|||
|
||||
/* Colorado enable/disable. */
|
||||
#define QC_COL_ENABLE1 46 /* enable */
|
||||
#define QC_COL_ENABLE2 2 /* null-op */
|
||||
#define QC_COL_ENABLE2 2 /* unit+2 */
|
||||
#define QC_COL_DISABLE 47 /* disable */
|
||||
|
||||
/* Mountain enable/disable. */
|
||||
|
@ -79,5 +80,11 @@ typedef struct segq {
|
|||
long reqcrc; /* CRC Errors found */
|
||||
long reqbad; /* Bad sector map */
|
||||
long reqblk; /* Block request starts at */
|
||||
long reqseg; /* Segment request is at */
|
||||
int reqcan; /* Cancel read-ahead */
|
||||
struct segq *next; /* Next request */
|
||||
} SegReq;
|
||||
|
||||
typedef int ftu_t;
|
||||
typedef int ftsu_t;
|
||||
typedef struct ft_data *ft_p;
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.30 1994/09/17 16:56:06 davidg Exp $
|
||||
* $Id: fd.c,v 1.31 1994/09/17 18:08:36 joerg Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -71,6 +71,10 @@
|
|||
#include <i386/isa/fdreg.h>
|
||||
#include <i386/isa/fdc.h>
|
||||
#include <i386/isa/rtc.h>
|
||||
#if NFT > 0
|
||||
#include <sys/ftape.h>
|
||||
#include <i386/isa/ftreg.h>
|
||||
#endif
|
||||
|
||||
#define RAW_PART 2
|
||||
#define b_cylin b_resid
|
||||
|
|
Loading…
Reference in a new issue