urx.4
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 4 代码 · 共 166 行
4
166 行
.\" SCCSID: @(#)urx.4 8.1 9/11/90.TH urx 4 VAX "" Unsupported.SH Nameurx \- DEC RX02 floppy disk interface.SH Syntax.B "controller fx0 at uba0 csr 0177170 vector rxintr".br.B "disk rx0 at fx0 drive 0".br.B "disk rx1 at fx0 slave 1".SH DescriptionThe.PN urxdevice provides access to a DEC RX02 floppy diskunit with M8256 interface module (RX211 configuration). The RX02 uses 8-inch, single-sided, soft-sectored floppydisks (with pre-formatted industry-standard headers) ineither single or double density..PPFloppy disks handled by the RX02 contain 77 tracks, each with 26sectors (for a total of 2,002 sectors). The sector size is 128bytes for single density, 256 bytes for double density. Single density disks are compatible with the RX01 floppy disk unit and withIBM 3740 Series Diskette 1 systems. .PPIn addition to normal (`block' and `raw') i/o, the driver supportsformatting of disks for either density andthe ability to invoke a 2 for 1 interleaved sector mappingcompatible with the DEC operating system RT-11..PPThe minor device number is interpreted as follows:.PP.nf.ta \w'Bit 'u\fBBit Description\fP0 Sector interleaving (1 disables interleaving)1 Logical sector 1 is on track 1 (0 no, 1 yes)2 Not used, reservedOther Drive number.fi.PPThe two drives in a single RX02 unit are treated astwo disks attached to a single controller. Thus, if there are twoRX02's on a system, the drives on the first RX02 are``rx0'' and ``rx1'',while the drives on the second are ``rx2'' and ``rx3''. .PPWhen the device is opened, the density of the diskcurrently in the drive is automatically determined. If thereis no floppy in the device, open will fail..PPThe interleaving parameters are represented in raw devicenames by the letters `a' through `d'. Thus, unit 0, drive 0 iscalled by one of the following names:.PP.nf.ta \w'interleaved 'u +\w'Device name 'u\fBMapping Device name Starting track\fPinterleaved /dev/rrx0a 0direct /dev/rrx0b 0interleaved /dev/rrx0c 1direct /dev/rrx0d 1.fi.PPThe mapping used on the `c' device is compatible with theDEC operating system RT-11. The `b' device accesses thesectors of the disk in strictly sequential order. The `a' device is the most efficient for disk-to-disk copying..PPTheI/O requests must start on a sector boundary, involve an integralnumber of complete sectors, and not go off the end of the disk..SH NotesEven though the storage capacity on a floppy disk is quitesmall, it is possible to make filesystems on double density disks. For example, the command.nf.RS% mkfs /dev/rx0 1001 13 1 4096 512 32 0 4.RE.fimakes a file system on the double density disk in rx0 with 436 kbytes available for file storage.Using tar(1) gives a more efficient utilization of the availablespace for file storage.Single density diskettes do not provide sufficient storage capacity tohold file systems..PPA number of ioctl(2) calls apply to the rx devices, andhave the form.EX#include <vaxuba/rxreg.h>ioctl(fildes, code, arg)int *arg;.EEThe applicable codes are:.TP 18RXIOC_FORMATFormat the diskette. The density to use is specifiedby the .I argargument, 0 gives single density while non-zerogives double density..TP RXIOC_GETDENSReturn the density of the diskette (0 or !=0 as above)..TP RXIOC_WDDMKOn the next write, include a \fIdeleted data address mark\fP in the header of the first sector..TP RXIOC_RDDMKReturn non-zero if the last sector read contained a\fIdeleted data address mark\fP in its header, otherwisereturn 0..SH RestrictionsA floppy may not be formatted if theheader information on sector 1,track 0 has been damaged. Hence, it is notpossible to format completely degaussed disks or disks with otherformats than the two known by the hardware. .PPIf the drive subsystem is powered down when the machine is booted, thecontroller won't interrupt..SH DiagnosticsThe following errors may be returned by the above ioctl calls:.TP 12[ENODEV]Drive not ready; usually because no disk is in the drive orthe drive door is open..TP[ENXIO]Nonexistent drive (on open); offset is too large or not on a sector boundary orbyte count is not a multiple of the sector size (on read or write);or bad (undefined) ioctl code..TP[EIO]A physical error other than ``not ready'', probably bad media or unknown format..TP[EBUSY]Drive has been opened for exclusive access..TP [EBADF]No write access (on format), or wrong density; the lattercan only happen if the disk is changed without closing the device,that is, calling close(2)..PP.BR "rx%d: hard error, trk %d psec %d cs=%b, db=%b, err=%x, %x, %x, %x"..brAn unrecoverable error was encountered. The track and physical sector numbers, the device registers and the extended error status are displayed..PP.BR "rx%d: state %d (reset)" ..brThe driver entered a bogus state. This should not happen..SH Files.PN /dev/rx?.br.PN /dev/rrx?[a-d].SH See Alsotar(1), arff(8v), mkfs(8), newfs(8), rxformat(8v)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?