home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
CMDS
/
dmode.lzh
/
rbfparams.h
< prev
Wrap
Text File
|
1994-11-13
|
3KB
|
81 lines
/* RBFPARAMS.H - Private definition of an RBF descriptor
parameter area.
*/
#ifndef RBFDEV
#ifndef _sysio
#include <sysio.h>
#endif
typedef struct {
u_char pd_dtp; /* device type */
u_char pd_drv; /* drive number */
u_char pd_stp; /* step rate */
u_char pd_typ; /* disk device type (5", 8", other) */
#define TYP_FIVE (0<<0) /* drive is 5.25" floppy */
#define TYP_EIGHT (1<<0) /* device is 8" floppy */
#define SIZE_OLD (0) /* size/speed defined by bit 0 */
#define TYP_SIZE8 (1) /* 8" disk */
#define TYP_SIZE5 (2) /* 5.25" disk */
#define TYP_SIZE3 (3) /* 3.5" disk */
#define TYP_HARD (1<<7) /* hard disk type */
#define TYP_HREMOV (1<<6) /* removable hard disk type */
#define TYP_DDTRK0 (1<<5) /* floppy disk is d/d trk 0 */
u_char pd_dns; /* density capabilities */
#define DNS_DD (1) /* double density */
#define DNS_DT (1<<1) /* double track density */
#define DNS_QUAD (1<<2) /* quad track density */
#define DNS_OCTAL (1<<3) /* octal track density */
u_char pd_res1; /* reserved */
u_short pd_cyl; /* number of cylinders */
u_char pd_sid; /* number of surfaces */
u_char pd_vfy; /* 0=verify disk writes */
u_short pd_sct; /* default sectors/track */
u_short pd_t0s; /* default sectors/track for trk0 */
u_short pd_sas; /* segment allocation size */
u_char pd_ilv; /* sector interleave offset */
u_char pd_tfm; /* DMA transfer mode */
u_char pd_toffs; /* track base offset */
u_char pd_soffs; /* sector base offset */
u_short pd_ssize; /* size of sector in bytes */
u_short pd_cntl; /* control word */
#define CNTL_NOFMT (1<<0) /* device is format protected */
#define CNTL_MULTSECT (1<<1) /* no multi-sector transfers */
#define CNTL_STABID (1<<2) /* device has stable id */
#define CNTL_AUTOSIZE (1<<3) /* device tells size (SS_DSize), */
#define CNTL_FMTTRK (1<<4) /* device allows "format track" */
u_char pd_trys; /* # tries */
# define TRYS_DRIVER_DEFAULT 0;
u_char pd_lun; /* SCSI unit number of drive */
u_short pd_wpc; /* first write precomp cylinder */
u_short pd_rwr; /* first reduced write current cylinder */
u_short pd_park; /* park cylinder for hard disks */
u_int pd_lsnoffs; /* LSN offset for partition */
u_short pd_totcyls; /* total cylinders on device */
u_char pd_ctrlrid; /* SCSI controller id */
u_char pd_rate; /* transfer rate and rotational speed */
#define RPM_300 0
#define RPM_360 1
#define RPM_600 2
#define XFR_125K (0)
#define XFR_250K (1)
#define XFR_300K (2)
#define XFR_500K (3)
#define XFR_1M (4)
#define XFR_2M (5)
#define XFR_5M (6)
u_int pd_scsiopt; /* SCSI options flags */
#define SCSI_ATN (1<<0) /* assert ATN supported */
#define SCSI_TARGET (1<<1) /* target mode supported */
#define SCSI_SYNCHR (1<<2) /* synchronous transfers supported */
#define SCSI_PARITY (1<<3) /* enable SCSI parity */
u_int pd_maxcnt; /* max bytes transferred per request */
} rbf_dev;
#define SECTOR_SIZE 256 /* size of one sector */
#define MAX_NAME 28 /* maximum length of pathname element */
#define MAX_SECTORS 255 /* maximum sector count passable to driver */
#define RBFDEV
#endif