patch-1.3.92 linux/include/asm-sparc/floppy.h

Next file: linux/include/linux/comstats.h
Previous file: linux/include/asm-i386/floppy.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.91/linux/include/asm-sparc/floppy.h linux/include/asm-sparc/floppy.h
@@ -263,9 +263,16 @@
 
 static int sun_fd_eject(void)
 {
-	set_auxio(AUXIO_FLPY_DSEL, AUXIO_FLPY_EJCT);
-	udelay(1000);
-	set_auxio(AUXIO_FLPY_EJCT, AUXIO_FLPY_DSEL);
+	if(sparc_cpu_model == sun4c) {
+		set_auxio(AUXIO_FLPY_DSEL, AUXIO_FLPY_EJCT);
+		udelay(1000);
+		set_auxio(AUXIO_FLPY_EJCT, AUXIO_FLPY_DSEL);
+	} else {
+		set_dor(fdc, ~0, 0x90);
+		udelay(500);
+		set_dor(fdc, ~0x80, 0);
+		udelay(500);
+	}
 	return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this