patch-2.3.48 linux/arch/mips64/lib/floppy-no.c
Next file: linux/arch/mips64/lib/floppy-std.c
Previous file: linux/arch/mips64/lib/dump_tlb.c
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Thu Feb 24 22:53:35 2000
- Orig file:
v2.3.47/linux/arch/mips64/lib/floppy-no.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.47/linux/arch/mips64/lib/floppy-no.c linux/arch/mips64/lib/floppy-no.c
@@ -0,0 +1,58 @@
+/* $Id: floppy-no.c,v 1.2 1999/12/04 03:59:00 ralf Exp $
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Dummy file for machines without standard floppy drives.
+ *
+ * Copyright (C) 1998 by Ralf Baechle
+ */
+#include <linux/init.h>
+#include <linux/kernel.h>
+#include <linux/mm.h>
+#include <asm/floppy.h>
+
+/*
+ * How to access the FDC's registers.
+ */
+static void no_fd_dummy(void)
+{
+ panic("no_fd_dummy called - shouldn't happen");
+}
+
+static unsigned long no_fd_getfdaddr1(void)
+{
+ return (unsigned long)-1; /* No FDC nowhere ... */
+}
+
+static unsigned long no_fd_drive_type(unsigned long n)
+{
+ return 0;
+}
+
+struct fd_ops no_fd_ops = {
+ /*
+ * How to access the floppy controller's ports
+ */
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ /*
+ * How to access the floppy DMA functions.
+ */
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ no_fd_getfdaddr1,
+ (void *) no_fd_dummy,
+ (void *) no_fd_dummy,
+ no_fd_drive_type
+};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)