diff options
author | joerg <joerg@FreeBSD.org> | 1994-09-25 18:41:21 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1994-09-25 18:41:21 +0000 |
commit | 6af51c66ed21005d0b84015b1d68632698710cfd (patch) | |
tree | d3dd90bdd12f00abffaf7bf7be8901a1c13b74f7 /sys | |
parent | 6f303e99351daee1b39170a6bd59677992df1da8 (diff) | |
download | FreeBSD-src-6af51c66ed21005d0b84015b1d68632698710cfd.zip FreeBSD-src-6af51c66ed21005d0b84015b1d68632698710cfd.tar.gz |
Copied over the transfer speed definitions from sys/i386/isa/fdreg.h.
This is needed for having the fdformat program no longer searching
non-public include paths.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/include/ioctl_fd.h | 16 | ||||
-rw-r--r-- | sys/sys/fdcio.h | 16 |
2 files changed, 30 insertions, 2 deletions
diff --git a/sys/i386/include/ioctl_fd.h b/sys/i386/include/ioctl_fd.h index f3bf953..f5a5d6a 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 f3bf953..f5a5d6a 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 */ |