#!/usr/bin/wish -f
# Copyright 1993 Yggdrasil Computing, Incorporated
# You may copy this file according to the terms and conditions of version 2
# of the GNU General Public License as published by the Free Software
# Foundation.

frame .header
label .header.label 
message .header.message -width 300 -bg pink -text \
	"Scsi Cache Page configuration - $argv.  Caution \
do not turn on the write cache unless you know what you are doing."

pack .header.label .header.message -side left -padx 15

pack .header -pady 10

source /usr/lib/scsi/generic

set button_list {wrcache rdcache dummy}
set text_list {readret writeret disprefetch minprefetch maxprefetch ceiling}
set switch {-c}
set text_descriptions {"Demand Read Retention Priority " "Demand Write Retention Priority " "Disable Pre-Fetch Transfer Length " "Minimum Pre-Fetch " "Maximum Pre-Fetch " "Maximum Pre-Fetch Ceiling " }
set label_width 35
set text_width 10

frame .f1

generate_textboxes

frame .but
checkbutton .rdcache -text "Read cache enabled" 

checkbutton .wrcache -text "Write cache enabled"

checkbutton .dummy -text " "

pack .rdcache .wrcache -in .but -side left -padx 5


pack .but
pack .readret .writeret .disprefetch .minprefetch .maxprefetch .ceiling -in .f1 -pady 10 -anchor w
pack .f1 -side left -padx 3m -pady 3m

read_page $argv "-X"
read_modifiable $argv
