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

1991/0906/pc/devfloppy.c (diff list | history)

1991/0902/sys/src/9/pc/devfloppy.c:700,7101991/0906/sys/src/9/pc/devfloppy.c:700,707 (short | long | prev | next)
1991/0731    
static long 
1991/0802    
floppyxfer(Drive *dp, int cmd, void *a, long off, long n) 
1991/0727    
{ 
	ulong addr; 
	long offset; 
 
	addr = (ulong)a; 
                 
1991/0731    
	qlock(&floppy); 
	qlock(dp); 
1991/0802    
	if(waserror()){ 
1991/0902/sys/src/9/pc/devfloppy.c:728,7351991/0906/sys/src/9/pc/devfloppy.c:725,733
1991/0731    
	if(floppyseek(dp) < 0) 
		errors("seeking floppy"); 
1991/0727    
 
1991/0906    
	 
1991/0823    
/*print("tcyl %d, thead %d, tsec %d, addr %lux, n %d\n", 
1991/0727    
		dp->tcyl, dp->thead, dp->tsec, addr, n);/**/ 
1991/0906    
		dp->tcyl, dp->thead, dp->tsec, a, n);/**/ 
1991/0727    
 
	/* 
1991/0731    
	 *  set up the dma (dp->len may be trimmed) 


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