summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/i386/include/ioctl_fd.h16
-rw-r--r--sys/sys/fdcio.h16
2 files changed, 30 insertions, 2 deletions
diff --git a/sys/i386/include/ioctl_fd.h b/sys/i386/include/ioctl_fd.h
index f3bf953cd9d0..f5a5d6af6ed7 100644
--- a/sys/i386/include/ioctl_fd.h
+++ b/sys/i386/include/ioctl_fd.h
@@ -24,7 +24,7 @@
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
- * $Id$
+ * $Id: ioctl_fd.h,v 1.5 1994/09/17 16:55:59 davidg Exp $
*/
#ifndef _IOCTL_FD_H
@@ -104,4 +104,18 @@ struct fd_type {
#define FDOPT_NORETRY 0x0001 /* no retries on failure (cleared on close) */
+/*
+ * The following definitions duplicate those in sys/i386/isa/fdreg.h
+ * They are here since their values are to be used in the above
+ * structure when formatting a floppy. For very obvious reasons, both
+ * definitions must match ;-)
+ */
+#ifndef FDC_500KBPS
+#define FDC_500KBPS 0x00 /* 500KBPS MFM drive transfer rate */
+#define FDC_300KBPS 0x01 /* 300KBPS MFM drive transfer rate */
+#define FDC_250KBPS 0x02 /* 250KBPS MFM drive transfer rate */
+#define FDC_125KBPS 0x03 /* 125KBPS FM drive transfer rate */
+ /* for some controllers 1MPBS instead */
+#endif /* FDC_500KBPS */
+
#endif /* !def _IOCTL_FD_H */
diff --git a/sys/sys/fdcio.h b/sys/sys/fdcio.h
index f3bf953cd9d0..f5a5d6af6ed7 100644
--- a/sys/sys/fdcio.h
+++ b/sys/sys/fdcio.h
@@ -24,7 +24,7 @@
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
- * $Id$
+ * $Id: ioctl_fd.h,v 1.5 1994/09/17 16:55:59 davidg Exp $
*/
#ifndef _IOCTL_FD_H
@@ -104,4 +104,18 @@ struct fd_type {
#define FDOPT_NORETRY 0x0001 /* no retries on failure (cleared on close) */
+/*
+ * The following definitions duplicate those in sys/i386/isa/fdreg.h
+ * They are here since their values are to be used in the above
+ * structure when formatting a floppy. For very obvious reasons, both
+ * definitions must match ;-)
+ */
+#ifndef FDC_500KBPS
+#define FDC_500KBPS 0x00 /* 500KBPS MFM drive transfer rate */
+#define FDC_300KBPS 0x01 /* 300KBPS MFM drive transfer rate */
+#define FDC_250KBPS 0x02 /* 250KBPS MFM drive transfer rate */
+#define FDC_125KBPS 0x03 /* 125KBPS FM drive transfer rate */
+ /* for some controllers 1MPBS instead */
+#endif /* FDC_500KBPS */
+
#endif /* !def _IOCTL_FD_H */