Driver for IBM PS/2 SCSI host adapter (QNX)
Fsys.ps2scsi [general_options] [fsys fsys_options] [ps2scsi ps2scsi_options]...
If specified, the general_options must precede any fsys or ps2 options:
The unit can be one of the following combinations (the number of commas affects how the unit information is interpreted; see also the Examples section):
Specify | meaning |
---|---|
controller,target,lun | fully specified controller, target, and LUN |
controller,target | equivalent to controller,target,0 |
target | equivalent to 0,target,0 |
type | String equivalent |
---|---|
0 | direct-access (e.g. hard disk) |
1 | sequential-access (e.g. tape) |
2 | printer |
3 | processor |
4 | WORM |
5 | CD-ROM |
6 | scanner |
7 | optical |
8 | medium_changer |
9 | communications |
Not all of the above types are currently supported by the Filesystem Manager. See the -n option.
The fsys_options control the driver's interface to Fsys. If specified, they must follow the fsys keyword:
The value of num is the sum of all the buffers required for SCSI units that use sectors larger than 512 bytes. To obtain the buffer required for a unit, you must use the following formula:
buf = (2*(sector_size / 512))
The value that should be used for num will be the sum of the results for all units.
Some ISA motherboards have problems when on-board DMA and bus-mastering DMA occur concurrently. To avoid those problems, Fsys drivers which use DMA perform I/O concurrently only if the -d option is specified to either or both drivers. In general, you shouldn't use -d on an ISA machine if the floppy is going to be used at the same time as the SCSI hard disk. This option may be used safely on MCA and EISA machines.
By default, the driver assigns names as follows:
type | String equivalent | Default name |
---|---|---|
0 | direct-access (e.g. hard disk) | hd |
1 | sequential-access(e.g. tape) | tp |
4 | WORM | wo |
5 | CD-ROM | cd |
7 | optical | mo |
As in the -a general option, you can specify the type using either the number or its string equivalent.
To have the driver ignore a type of device, specify an empty setting. For example, to ignore hard disks, specify -n 0.
Use this option with care since bad blocks could be erroneously reported by the device if the SCSI bus isn't properly terminated. If this occurs and you've specified -r, the defect-mapping table will be filled unnecessarily.
The ps2scsi_options control the driver's interface to the PS/2 SCSI controller. Remember to specify the ps2scsi keyword before these options.
Fsys.ps2scsi is the driver for the IBM PS/2 SCSI controller.
Fsys.ps2scsi scans for a controller in the command-line sequence given by the -a option. If no -a option is given, the driver scans for a controller at the following hex addresses, in order:
The driver then scans for installed units. All targets are scanned (7 to 0). The driver numbers the units (starting at 0) and registers them with Fsys in the order it finds them.
The Filesystem Manager supports only the following types of SCSI units:
Type | Description |
---|---|
0 | direct-access (e.g. hard disk) |
1 | sequential-access (e.g. tape) |
4 | WORM (write once/read multiple) |
5 | CD-ROM |
7 | optical |
If a tape unit is found during the driver's scan or if you specify a sequential-access unit with the -a general option, two block special files are created under /dev. By default, they're named /dev/tp0 and /dev/tpr0. Both these files reference the same physical drive, but /dev/tpr0 will perform a rewind on a close.
To boot from a unit connected to the controller, make sure the controller is configured for a 64-head BIOS entry or specify the driver's fsys -h option. |
Support a PS/2 SCSI controller:
Fsys.ps2scsi &
Register the direct access unit as /dev/hardn and the sequential access unit as /dev/tapen:
Fsys.ps2scsi fsys -n direct=hard -n seq=tape &
Support a controller at address 0x3540 and run quietly. Register direct access units (e.g. hard disks) as /dev/scsin:
Fsys.ps2scsi -q fsys -n 0=scsi ps2scsi -a 3540 &
Support a PS/2 SCSI controller with 6 SCSI units and don't display the list of connected devices. Register direct access units (e.g. hard disks) as /dev/scsin:
Fsys.ps2scsi -q fsys -n 0=scsi ps2scsi -u 6 &
Use sixteen 512-byte deblocking buffers for two CD-ROMs that each use 2048-byte sectors:
Fsys.ps2scsi fsys -B 16 &
In the above example, the argument for -B was calculated as follows:
Fsys.ps2scsi closes its standard input, standard output and standard error immediately after completing its initializations. Error messages may be produced during the initialization phase and will be written to standard error.
Fsys.ps2scsi will cause Fsys to adopt various block special devices under /dev. These devices will normally be named according to the device types in the form typen, where type is the abbreviated device type and n is the physical unit number of the device. The names used for the abbreviated device type may be overridden via the -n type=n option.
Fsys.ps2scsi will terminate only if an error occurs during startup, or if it has successfully forked itself upon startup because it had not been initially started in the background.
Don't use slay to shut down a filesystem driver! If you do, new drivers may not be able to load properly and Fsys itself may experience internal errors.
If you need to shut down a filesystem driver, follow the steps in the "Driver shutdown" section in the documentation for Fsys.