Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fdio(7) — SunOS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dkio(7)

hdio(7)

fdio(7)

NAME

fdio − floppy disk control operations

SYNOPSIS

#include <sys/fdio.h>

DESCRIPTION

The floppy driver, fd, supports a 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 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 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 argument is a pointer to a fdk_char structure (described below).  This ioctl() sets the characteristics of the floppy diskette from 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() request the floppy drive to eject the diskette. 

SEE ALSO

dkio(7), hdio(7)

SunOS 5.1  —  Last change: 24 May 1992

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