📄 rx.4
字号:
.\" Copyright (c) 1983, 1991, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)rx.4 8.1 (Berkeley) 6/5/93.\".Dd June 5, 1993.Dt RX 4 vax.Os BSD 4.2.Sh NAME.Nm rx.Nd.Tn DEC.Tn RX02floppy disk interface.Sh SYNOPSIS.Cd "controller fx0 at uba0 csr 0177170 vector rxintr".Cd "disk rx0 at fx0 drive 0".Cd "disk rx1 at fx0 drive 1".Sh DESCRIPTIONThe.Nm rxdevice provides access to a.Tn DEC.Tn RX02floppy diskunit with M8256 interface module.Pf ( Tn RX211configuration). The.Tn RX02uses 8-inch, single-sided, soft-sectored floppydisks (with pre-formatted industry-standard headers) ineither single or double density..PpFloppy disks handled by the.Tn RX02contain 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.Tn RX01floppy disk unit and with.Tn IBM3740 Series Diskette 1 systems. .PpIn addition to normal (`block' and `raw').Tn I/O ,the driver supportsformatting of disks for either density andthe ability to invoke a 2 for 1 interleaved sector mappingcompatible with the.Tn DECoperating system.Tn RT-11 ..PpThe minor device number is interpreted as follows:.Pp.Bl -column Otherx -offset indent.Sy Bit Description0 Sector interleaving (1 disables interleaving)1 Logical sector 1 is on track 1 (0 no, 1 yes)2 Not used, reservedOther Drive number.El.PpThe two drives in a single.Tn RX02unit are treated astwo disks attached to a single controller. Thus, if there are two.Tn RX02 Ns 'son a system, the drives on the first.Tn RX02are.Dq Li rx0and.Dq Li rx1 ,while the drives on the second are.Dq Li rx2and.Dq Li 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.Ql athrough.Ql d .Thus, unit 0, drive 0 iscalled by one of the following names:.Pp.Bl -column interleavedxx "Device namexx" "Starting Track" -offset indent.Sy Mapping Device name Starting trackinterleaved /dev/rrx0a 0direct /dev/rrx0b 0interleaved /dev/rrx0c 1direct /dev/rrx0d 1.El.PpThe mapping used on the.Ql cdevice is compatible with the.Tn DECoperating system.Tn RT-11 .The.Ql bdevice accesses thesectors of the disk in strictly sequential order. The.Ql adevice is the most efficient for disk-to-disk copying.This mapping is always used by the block device..Pp.Tn I/Orequests 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.Bd -literal -offset indent% mkfs /dev/rx0 1001 13 1 4096 512 32 0 4.Ed.Ppmakes a file system on the double density disk in rx0 with 436 kbytes available for file storage.Using.Xr tar 1gives 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.Xr ioctl 2calls apply to the rx devices, andhave the form.Bd -literal -offset indent#include <vaxuba/rxreg.h>ioctl(fildes, code, arg)int *arg;.Ed.PpThe applicable codes are:.Bl -tag -width RXIOC_GETDENS.It Dv RXIOC_FORMATFormat the diskette. The density to use is specifiedby the .Ar argargument, zero gives single density while non-zerogives double density..It Dv RXIOC_GETDENSReturn the density of the diskette (zero or non-zero as above)..It Dv RXIOC_WDDMKOn the next write, include a.Em deleted data address markin the header of the first sector..It Dv RXIOC_RDDMKReturn non-zero if the last sector read contained a.Em deleted data address markin its header, otherwisereturn 0..El.Sh FILES.Bl -tag -width /dev/rx?xx -compact.It Pa /dev/rx?.It Pa /dev/rrx?[a-d].El.Sh DIAGNOSTICS.Bl -diag.It "rx%d: hard error, trk %d psec %d cs=%b, db=%b, err=%x, %x, %x, %x."An unrecoverable error was encountered. The track and physical sector numbers, the device registers and the extended error status are displayed..Pp.It rx%d: state %d (reset).The driver entered a bogus state. This should not happen..El.Sh ERRORSThe following errors may be returned by the driver:.Bl -tag -width [ENODEV].It Bq Er ENODEVDrive not ready; usually because no disk is in the drive orthe drive door is open..It Bq Er ENXIONonexistent 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..It Bq Er EIOA physical error other than ``not ready'', probably bad media or unknown format..It Bq Er EBUSYDrive has been opened for exclusive access..It Bq Er EBADFNo write access (on format), or wrong density; the lattercan only happen if the disk is changed without .Em closingthe device(i.e., calling.Xr close 2 ) ..El.Sh SEE ALSO.Xr rxformat 8 ,.Xr newfs 8 ,.Xr mkfs 8 ,.Xr tar 1 ,.Xr arff 8.Sh HISTORYThe.Nmdriver appeared in.Bx 4.2 ..Sh BUGSA floppy may not be formatted if theheader info 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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -