1*61587Sbostic.\" Copyright (c) 1986, 1991, 1993 2*61587Sbostic.\" The Regents of the University of California. All rights reserved. 330144Smckusick.\" 447673Scael.\" %sccs.include.redist.man% 530144Smckusick.\" 6*61587Sbostic.\" @(#)autoconf.4 8.1 (Berkeley) 06/05/93 747673Scael.\" 847673Scael.Dd 947673Scael.Dt AUTOCONF 4 tahoe 1047673Scael.Os BSD 4.3t 1147673Scael.Sh NAME 1247673Scael.Nm autoconf 1347673Scael.Nd diagnostics from autoconfiguration code 1447673Scael.Sh DESCRIPTION 1547673ScaelWhen 1647673Scael.Tn UNIX 1747673Scaelbootstraps it probes the innards of the machine it is running 1830144Smckusickon and locates controllers, drives, and other devices, printing out 1930144Smckusickwhat it finds on the console. This procedure is driven by a system 2030144Smckusickconfiguration table which is processed by 2147673Scael.Xr config 8 2230144Smckusickand compiled into each kernel. 2347673Scael.Pp 2447673Scael.Tn VERSAbus 2547673Scaeldevices are located by probing to see if their control-status 2630144Smckusickregisters respond. If not, they are silently ignored. If the control 2730144Smckusickstatus register responds but the device cannot be made to interrupt, 2830144Smckusicka diagnostic warning will be printed on the console and the device 2930144Smckusickwill not be available to the system. 3047673Scael.Pp 3130144SmckusickA generic system may be built which picks its root device at boot time 3247673Scaelas the 3347673Scael.Dq best 3447673Scaelavailable device. 3547673ScaelIf such a system is booted with the 3647673Scael.Dv RB_ASKNAME 3747673Scaeloption of (see 3847673Scael.Xr reboot 2 ) , 3930144Smckusickthen the name of the root device is read from the console terminal at boot 4030144Smckusicktime, and any available device may be used. 4147673Scael.Sh DIAGNOSTICS 4247673Scael.Bl -diag 4347673Scael.It vba%d at %x. 4447673ScaelA 4547673Scael.Tn VERSAbus 4647673Scaeladapter was found and mapped into the 4747673Scaeladdress space of the operating system starting at virtual address 4847673Scael.Sq Li %x . 4947673Scael.Tn UNIX 5047673Scaelwill call it 5147673Scael.Sq Li vba%d . 5247673Scael.It %s%d at vba%d drive %d. 5347673ScaelA tape formatter or a disk was found 5447673Scaelon the 5547673Scael.Tn VERSAbus ; 5647673Scaelfor disks 5747673Scael.Sq Li %s%d 5847673Scaelwill look like 5947673Scael.Sq Li dk0 , 6047673Scaelfor tape formatters 6147673Scaellike 6247673Scael.Sq Li yc1 . 6347673ScaelThe drive number comes from the unit plug on the drive 6447673Scaelor in the tape formatter 6547673Scael.Pf ( Em not 6647673Scaelon the tape drive; see below). 6747673Scael.It %s%d at %s%d slave %d. 6847673ScaelWhich would look like 6947673Scael.Sq Li yc0 at cy0 slave 0% , 7047673Scaelwhere 7147673Scael.Em yc0 7247673Scaelis the name for the tape device and 7347673Scael.Em cy0 7447673Scaelis the name 7531722Ssamfor the formatter. A tape slave was found on the tape formatter at the 7631722Ssamindicated drive number (on the front of the tape drive). 7747673Scael.Tn UNIX 7847673Scaelwill call the device, e.g., 7947673Scael.Li cy0. 8047673Scael.It %s%d at vba%d csr %x vec %x ipl %x. 8147673ScaelThe device 8247673Scael.Sq Li %s%d , 8347673Scaele.g. 8447673Scael.Sq Li vd0 8547673Scaelwas found on 8647673Scael.Sq Li vba%d 8747673Scaelat control-status register address 8847673Scael.Sq Li %x 8947673Scaeland with 9047673Scaeldevice vector 9147673Scael.Sq Li %x . 9247673ScaelThe device interrupted at priority level 9347673Scael.Sq Li %x . 9447673Scael.It %s%d at vba%d csr %x no interrupts. 9547673ScaelThe device was found 9647673Scaelon 9747673Scael.Sq Li vba%d 9847673Scaelat control-status register address 9947673Scael.Sq Li %x ; 10047673Scaelno 10131722Ssaminterrupts were configured for the device. 10247673Scael.It %s%d at vba%d csr %x didn't interrupt. 10347673ScaelThe device did not interrupt, 10430144Smckusicklikely because it is broken, hung, or not the kind of device it is advertised 10531722Ssamto be. The csr address is interpreted as described above. 10647673Scael.It %s%d at %s%d slave %d. 10747673ScaelWhich would look like 10847673Scael.Sq Li dk0 at vd0 slave 0 , 10947673Scaelwhere 11047673Scael.Em dk0 11147673Scaelis the name of a disk drive and 11247673Scael.Em vd0 11347673Scaelis the name 11431722Ssamof the controller. 11547673Scael.El 11647673Scael.Sh SEE ALSO 11747673Scael.Xr config 8 11847673Scael.Sh HISTORY 11947673ScaelThe 12047673Scael.Nm 12147673Scaelspecial file appeared in 12247673Scael.Bx 4.3 tahoe . 12347673Scael.Sh BUGS 12431722SsamVery few devices actually figure out their interrupt vector 12531722Ssamby forcing the device to interrupt. Only the upper megabyte of the 12647673Scael.Tn VERSAbus 12747673Scaeladdress space is mapped into the system's virtual address space. 128