.TH SW 1M HEP .SH NAME sw \- dip switch settings .SH SYNOPSIS .B /etc/sw [ .B \-p ] [ .B \-t file ] device [ address [ vector ] ] .SH DESCRIPTION .I Sw knows the sometimes rather peculiar rules behind the dip switch settings for a number of UNIBUS device controllers. If invoked with the .B \-p option, it will list the devices it knows about; otherwise it tells how to set the switches to configure the given .I device with its registers at .I address and at the given .I vector (both in octal). A missing .I vector or .I address is assumed to be zero. .PP .I Sw reads its knowledge of devices from a file. If .B \-t is specified, it reads the named .IR file ; otherwise a default is used. .SH EXAMPLE .nf $ /etc/sw dz 176100 300 .cs 1 24 csr (e81) 1 2 3 4 5 6 7 8 9 0 0 0 0 + 0 0 0 + + + vec (e11) 1 2 3 4 5 6 7 8 + + + 0 0 + .fi .cs 1 .SH FILES /etc/dipswitch .SH SEE ALSO config(1m), dipswitch(5) .SH HEP INFO Written at HEP by Norman Wilson, based on an earlier program by Mark Bartelt.