Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fdio(7) — SunOS 5.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ioctl(2)

dkio(7)

hdio(7)

fdio(7)

NAME

fdio − floppy disk control operations

SYNOPSIS

#include <sys/fdio.h>

DESCRIPTION

A floppy driver may support one or more of this set of ioctl(2) requests for ejecting and 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 fd driver:

FDGETCHANGE
The third 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. 

/∗
 ∗ Used by FDKGETCHANGE, returned state of the sense disk change bit.
 ∗/
#define FDKGC_HISTORY0x01/∗ disk has changed since last call ∗/
#define FDKGC_CURRENT0x02/∗ current state of disk change ∗/

FDIOGCHAR The third argument is a pointer to a fdk_char structure (described below).  This ioctl() gets the characteristics of the floppy diskette from the floppy controller. 

FDIOSCHAR The third argument is a pointer to a fdk_char structure (described below).  This ioctl() sets the characteristics of the floppy diskette through the floppy controller. 

/∗
 ∗ Floppy characteristics
 ∗/
struct fd_char {
u_charfdc_medium;/∗ medium type (scsi floppy only) ∗/
intfdc_transfer_rate;/∗ transfer rate ∗/
intfdc_ncyl;/∗ number of cylinders ∗/
intfdc_nhead;/∗ number of heads ∗/
intfdc_sec_size;/∗ sector size ∗/
intfdc_secptrack;/∗ sectors per track ∗/
intfdc_steps;/∗ number of steps per ∗/
};

FDEJECT This ioctl() requests the floppy drive to eject the diskette. 

SEE ALSO

ioctl(2), dkio(7), hdio(7)

Sun Microsystems  —  Last change: 19 Feb 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026