User`s manual
t167 Test Program
E-16 Single Board Computers SCSI Software UserÕs Manual
E
Menu Expansion
New menus are added by creating a uniquely-named menu structure and
adding a menu_item structure with the address of the new menu to a parent
menu. The total number of menu selections within a menu is MAX_ITEMS.
If fewer selections are contained within a menu, the final menu_item structure
should be MENU_END. Each menu should also contain a help selection,
which contains a pointer to the pseudo-function MENU_HELP.
MAX_ITEMS, MENU_HELP, and MENU_QUIT are defined in the file
menus.h. All menu declarations are in the file menus.c.
For convenience, the structure example in the file menus.c has been created as a
foundation for new menus.
Adding SDL Tools Support for New Devices
t167 currently provides support for a number of common devices. Some
provisions have been made for expanding the list of known devices.
Peripherals of the same types as those already supported: direct-access, fixed-
media devices; direct-access, removable-media devices; and sequential-access
devices may be supported without adding program code, although several
modules have to be compiled and the program re-linked. Entirely different
peripheral types, such as CD-ROM devices, require more extensive changes.
Shown below are the steps required to add support for a new device of a
known type.
1. Choose a unique filename of eight or fewer characters to contain the data
for the new device. This filename is referenced as file.
2. Create "file.c" containing appropriate initialization constants. For
convenience, use an existing device Þle as a template. An example of a
direct-access, Þxed-media device Þle is wrenIV.c (CDC WREN IV hard
disk). A direct-access, removable-media device Þle is fc1dsdd5.c (double
sided, double density ßoppy); and a sequential-access device Þle is
archive.c (Archive 2150 tape). The following table list the files which
contain the static initialization structures.