Technical data
fdio(7I) Ioctl Requests SunOS 5.5
NAME fdio − floppy disk control operations
SYNOPSIS #include <sys/fdio.h>
DESCRIPTION The Solaris floppy driver supports a set of ioctl(2) requests for getting and setting the
floppy drive characteristics. Basic to these ioctl() requests are the definitions in
<sys/fdio.h>.
IOCTLS The following ioctl() requests are available only on the Solaris floppy driver.
FDDEFGEOCHAR
x86: This ioctl() forces the floppy driver to restore the diskette and
drive characteristics and geometry, and partition information to default
values based on the device configuration.
FDGETCHANGE
The argument is a pointer to an int. This ioctl() returns the status of the
diskette-changed signal from the floppy interface. The following defines
are provided for cohesion.
Note that for x86 systems, FDGC_DETECTED (which is available only on x86) should be
used instead of FDGC_HISTORY.
/∗
∗ Used by FDGETCHANGE, returned state of the sense disk change bit.
∗/
#define FDGC_HISTORY 0x01 /∗ disk has changed since last call ∗/
#define FDGC_CURRENT 0x02 /∗ current state of disk change ∗/
#define FDGC_CURWPROT 0x10 /∗ current state of write protect ∗/
#define FDGC_DETECTED 0x20 /∗ previous state of DISK CHANGE ∗/
FDIOGCHAR The argument is a pointer to an fd_char structure (described below).
This ioctl() gets the characteristics of the floppy diskette from the floppy
controller.
FDIOSCHAR The argument is a pointer to an fd_char structure (described below).
This ioctl() sets the characteristics of the floppy diskette for the floppy
controller. Typical values in the fd_char structure for a high density
diskette:
field value
fdc_medium 0
fdc_transfer_rate 500
fdc_ncyl 80
fdc_nhead 2
fdc_sec_size 512
fdc_secptrack 18
fdc_steps -1 { This field doesn’t apply. }
7I-116 modified 27 Apr 1995










