/*********************************************************************** * file: ss_dc.h * part#: * internal sequence#: * * ************************************************************** * * "(c)Copyright Hewlett-Packard Company, 1984.* All * * * rights are reserved. Copying or other reproduction * * * of this program except for archival purposes is * * * prohibited without the prior written consent of * * * Hewlett-Packard Company." * * ************************************************************** * * Pisces Q-DOS project * Andy Rood Kernel project lead * Bob Cline Kernel project engineer * ----------------------------------------------------- * initial 1/84 rcc * removed mount strat 7/84 rcc */ /********************************************************************** * ss_dc.h * This header file contains all the global definition stuff * needed by the ss_dc.c disk driver. All nifty, handy data * structures and constants are here. *********************************************************************/ #define SS_ON 1 /* handy on/off indicators */ #define SS_OFF 0 #define SS_RETRY 5 /* number of error retries on reads and writes. */ #define SS_FORMCHK 0xFF /* byte sent to determine if a device understands the set format command */ #define SS_FORM512 0x02 /* byte to set 512 byte sector size with the set format command */ /* * handy structure to package up the important information of a disk * transfer */ struct ss_xfer { dev_t dev; /* device number */ unsigned char haddr, /* hpib address */ unit, /* unit number */ volume, /* volume number */ inst; /* mount instance */ unsigned int length; /* number of bytes to transfer */ unsigned int sector; /* absolute sector address of the transfer */ int error; /* error resulting from transfer */ }; /* * handy structure that defines the fields retrieved from an SS-80 * describe command. See ss80 manual for a detailed description * of the contents of each field. */ struct ss_describe_info { unsigned short cunitmask; unsigned short crate; unsigned char ctype; unsigned char utype; unsigned char udev[3]; unsigned short ubsize; unsigned char ubufsize; unsigned char uburstsize; unsigned short ublocktime; unsigned short ulongrate; unsigned short uretrytime; unsigned short umaxaccess; unsigned char umaxinter; unsigned char ufixedvol; unsigned char uremovevol; unsigned char vmaxcyl[3]; unsigned char vmaxhead; unsigned short vmaxsect; unsigned short vsvahigh2; unsigned int vmaxsva; unsigned char vmaxinter; };