plan 9 kernel history: overview | file list | diff list

1999/0415/alphapc/floppy.h (diff list | history)

1999/0415/sys/src/9/alphapc/floppy.h:136,1412000/0401/sys/src/9/alphapc/floppy.h:136,148 (short | long)
1999/0415    
void 
floppysetup0(FController *fl) 
{ 
2000/0401    
	fl->ndrive = 0; 
	if(ioalloc(Psra, 6, 0, "floppy") < 0) 
		return; 
	if(ioalloc(Pdir, 1, 0, "floppy") < 0){ 
		iofree(Psra); 
		return; 
	} 
1999/0415    
	fl->ndrive = 1; 
} 
 
1999/0415/sys/src/9/alphapc/floppy.h:151,1572000/0401/sys/src/9/alphapc/floppy.h:158,164
1999/0415    
		floppysetdef(&fl->d[1]); 
	} 
 
	intrenable(VectorPIC+IrqFLOPPY, pcfloppyintr, fl, BUSUNKNOWN); 
2000/0401    
	intrenable(IrqFLOPPY, pcfloppyintr, fl, BUSUNKNOWN, "floppy"); 
1999/0415    
} 
 
/* 
2000/0401/sys/src/9/alphapc/floppy.h:3,92001/1122/sys/src/9/alphapc/floppy.h:3,9 (short | long)
1999/0415    
typedef struct FType FType; 
 
static void floppyintr(Ureg*); 
static void floppyon(FDrive*); 
2001/1122    
static int floppyon(FDrive*); 
1999/0415    
static void floppyoff(FDrive*); 
static void floppysetdef(FDrive*); 
 
2000/0401/sys/src/9/alphapc/floppy.h:20,252001/1122/sys/src/9/alphapc/floppy.h:20,26
1999/0415    
	int	cyl;		/* current arm position */ 
	int	confused;	/* needs to be recalibrated */ 
	int	vers; 
2001/1122    
	int	maxtries;	/* max read attempts before Eio */ 
1999/0415    
 
	int	tcyl;		/* target cylinder */ 
	int	thead;		/* target head */ 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)