/*********************************************************************** * file: am_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 10/83 rcc * removed mount strat 7/84 rcc */ /********************************************************************** * am_dc.h * This header file contains all the global definition stuff * needed by the am_dc.c disk driver. All nifty, handy data * structures and constants are here. *********************************************************************/ #define AM_RETRY 3 /* total error retries on failed reads */ /* and writes */ #define AM_SECTSIZE 256 /* sectorsize of the disks */ #define AM_SECTPERBLK (BSIZE/AM_SECTSIZE) /* sectors per HP-UX block */ #define AM_SECTSHIFT 8 /* byte address to sector number shift */ #define AM_TOTSPARES 4 /* max spared sectors for format operation */ #define AM_ON 1 /* handy on/off indicators */ #define AM_OFF 0 #define AM_NUMDEVS 6 /* number of device types handled by this driver */ /* * handy structure to package up the important information of a disk * transfer */ struct am_xfer { unsigned char haddr, unit; unsigned char head; unsigned short cylinder; unsigned char sector; unsigned int length; unsigned char am_status[4]; int retry; int error; }; /* * structure and information concerning the various amigo disks to * be handled by this driver */ struct am_infodisks { unsigned long size; int sectspercyl; int sectspertrk; int headspercyl; unsigned short type; int interleave; }; struct am_infodisks am_diskinfo[AM_NUMDEVS] = { 1056, 32, 16, 2, 0404, 5, /* chinook */ 1056, 32, 16, 2, 0404, 9, /* sony */ 4500, 60, 30, 2, 0201, 11, /* 8" floppy disk */ 18848, 124, 31, 4, 0406, 1, /* 5" hard disk */ 37720, 124, 31, 4, 0412, 1, /* Roadrunner II */ 56730, 186, 31, 6, 0417, 1, /* 9133/4XV */ };