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

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

diff -u --recursive --new-file v1.3.96/linux/include/asm-sparc/floppy.h linux/include/asm-sparc/floppy.h
@@ -344,4 +344,15 @@
 	return -1;
 }
 
+static int sparc_eject(void)
+{
+	set_dor(0, ~0, 0x90);
+	udelay(500);
+	set_dor(0, ~0x90, 0);
+	udelay(500);
+	return 0;
+}
+
+#define fd_eject(drive) sparc_eject()
+
 #endif /* !(__ASM_SPARC_FLOPPY_H) */

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