(C) Micro Staff 1988-1994 Copyrighted programs.

MSDRVR (Micro Staff SCSI Device Driver and Utility programs) 

MSDRVR is a collection of device driver, formatting and utility programs for
the IBM PC/AT (compatible computers) and PS/2.  MSDRVR supports following SCSI
devices and SCSI interfaces under MS-DOS:

SCSI device
     3.5" MO 
     Double density 3.5" MO
     5" MO
     Double density 5" MO
     CD-ROM (including music and photo CD support)
     Hard Disk (up to 2 GB)

Interface card
     IBM Micro Channel SCSI adapter /A, 2A 
     SCSI cards that come with an ASPI manager

This program is a Shareware ($40).  If you find it convenient, register  to:

Micro Staff Co., Ltd.
1-46-9 Matsubara, Setagaya-ku, Tokyo, Japan 156 
Phone: 81-3-3325-8128
Fax:   81-3-3327-7037
CompuServe ID: 100157,1053


============
INSTRUCTIONS
============

1 INTRODUCTION
--------------
MSDRVR is a set of programs which allows IBM PC AT/ compatible and  IBM PS/2
computers to communicate with SCSI peripheral devices such as MO drive, 
CD-ROM drive, hard disk. MSDRVR supports SCSI cards that come with ASPI 
manager and also IBM Micro Channel SCSI Adapter /A,  /2A.
MSDRVR consists of three kinds of programs as follows:

a) SCSI driver
   Provides standardized programming interface to SCSI hardware.  MSDRVR 
   contains SCSI drivers for IBM Micro Channel SCSI Adapter /A,  /2A.
   (for SCSI cards that come with an ASPI manager, use the ASPI manager)

b) Device driver
   MSDRVR contains device drivers for hard disk and MO drive, MSDRVR.SYS, 
   and CD-ROM drive, MCDxxx.SYS. 

c) Utility programs
   MSDRVR contains programs such as MO media format program, RXFORM.EXE, 
   and hard disk format program MSFDISK.EXE.

2 INSTALLATION
--------------

Installing MSDRVR involves the following steps:

1) With installation program, INSTALL.EXE, copy drivers and utility programs
   to the hard disk, and add device commands for drivers to your CONFIG.SYS 
   file.

2) Edit the CONFIG.SYS file to add device commands for CD-ROM driver(s). 
   Also modify AUTOEXEC.BAT file.

3) Restart the system and format hard disk or MO media with the format
   programs, if necessary.

3 Device Driver Installation Program
------------------------------------

The installation program copies files to your hard disk and modify your
config.sys file. (Files are compressed and archived by LHA.EXE (c) Haruyasu 
Yoshizaki)
Insert the diskette in A: or B: drive, and at A: prompt (B: prompt if the 
diskette is in B: drive) type INSTALL <Enter>.
Follow the instructions on display.
 
 Note: Press <Enter> to input values in [ ]
       The installation program does not add a device command for ASPI 
       manager that comes with the SCSI card. Add the device command for 
       card's ASPI manager to you CONFIG.SYS file with a text editor.
       

The installation program adds the following lines to your CONFIG.SYS file:

  DEVICEHIGH=\SCSI\ASPIIBM.SYS   (If you use ASPI manager that comes with SCSI
                                  card, this line is not added.)
  DEVICEHIGH=\SCSI\MSDRVR.SYS -o1k -th-
  
 (If you would like to have hard disk(s) handled by device driver without using
  BIOS, delete -TH- option switch with a text editor) 

SETTINGS
-TH-	does not recognize hard disk(s).
-O1k    enables to handle 1024 bytes/sector media.
If no MO media is in the drive when starting the system, one drive is reserved
for each drive (default).

Refer to MSDRVR.SYS  section of this manual for more details on the device 
driver option switches.

4 INSTALLING CD-ROM DEVICE DRIVER
---------------------------------

MSDRVR contains device drivers for CD-ROM drives.  The installation program 
copies CD-ROM device drivers into your hard disk, but it does not add device
command(s) for the driver(s) to your CONFIG.SYS file.  Add device command(s)
for necessary  drivers to the CONFIG.SYS file with a text editor. Make sure 
that device command for SCSI driver or ASPI manager has been added to the 
CONFIG.SYS file as CD-ROM driver(s) work with it as a pair.


CD-ROM(s) must be connected to Host Adapter number 0, if there are more than
one SCSI cards in the system. Refer to DEVICE DRIVER MSDRVR.SYS in this manual.

A) MCDTOS.SYS
   for Toshiba bear drive XM-3400

B) MCDSONY.SYS
   for Sony bear drive CDU-561

C) MCDTEXL.SYS
   for Texel bear drive DM-3024/3028 

D) MCDCHNO.SYS
   for Chinon bear drive CDS-535

E) MCDTC50.SYS
    for Teac bear drive CD-50 

F) MCDNEC.SYS
   for NEC bear drives CDR-210, 84-1, 500

Add the following two lines to your CONFIG.SYS file:

  LASTDRIVE=Z   (Specify a letter higher than a letter to be assigned to CD-ROM
                 drive. Refer to the DOS manual for details)
  DEVICE=MCDxxx.SYS  /D:MSCD0000    (This line should be below the device
                                     command for SCSI driver or ASPI manager in
                                     the CONFIG.SYS file)

To use CD-ROM drive(s) you need to execute Microsoft CD-ROM Extension,
MSCDEX.EXE. Add the following line to your AUTOEXEC.BAT file:

  MSCDEX  /D:MSCD0000

Refer to CD-ROM device driver option switch section of this manual for details.

5 UTILITY PROGRAMS
------------------

A) FORMAT PROGRAMS

MSDRVR contains the following two format programs:

  RXFORM.EXE:	for removable medium such as MO disks.
  MSFDISK.EXE:	for hard disks (with the option switch the program can also 
                format MO disks)

RXFORM

RXFORM low-level-formats, partitions and logical-formats removable disks
including 3.5 and 5-inch MO disks. It also displays information on SCSI 
peripheral devices connected to the system.  Type RXFORM <Enter> to start 
the program and follow the instructions on the display.
You can format or partition a disk in the following ways:
   1) format for use with DOS 3 or later (super floppy)
   2) format for use with DOS 4 or later (super floppy)
   3) partition for use with DOS 3 or later
   4) partition for use with DOS 4 or later

The maximum number of partition is 16. The maximum partition sizes are
1024MB and 2047MB for use with DOS 3 or later and for use with DOS 4 or later, 
respectively.


MSFDISK

MSFDISK.EXE  is a partition/format program for SCSI hard disks (hard disks 
connected to SCSI host adapter # 0).  It also works on MO disks by 
adding a option switch.  It partitions a disk in the same way as IBM FDISK.
This program does not partition hard disks handled by the DOS through BIOS 
nor create active area (boot flag).


  SYNTAX

  MSFDISK  [</,-><option switch>[parameter]] .....

<OPTION SWITCH>

     -E
Specifies English message. The program detects the mode, English or Japanese,
automatically and displays messages accordingly.  However, if it does not work
properly, use this switch to force it to display English  messages.

     -R
Enables the program to format removable disk with device type 0.
(It is recommended to use RXFORM to format removable disks.)

     -MO
Enables the program to format removable disk with device type 7.
(It is recommended to use RXFORM to format removable disks.)

@
Type MSFDISK <Enter> to start the program and follow the instructions on the
screen. 


B) OTHER UTILITY PROGRAMS

RXMAP

Displays which drive letter(s) is assigned to which  SCSI ID(s).
 
<example>
Drive E:[0:0:0],    99.9 MB, partition:  0
Drive F:[0:0:0],    99.9 MB, partition:  1
Drive G:[0:3:0],   100.0 MB, partition:  0
Drive H:[0:3:0],   100.0 MB, partition:  1
Drive I:[0:3:0],    81.7 MB, partition:  2
Drive J:[0:4:0],   121.4 MB, partition:  0
[Host adapter number: SCSI ID number: LUN number = 0]

RXSCAN

Displays information on the SCSI peripheral device(s).

<example>
[0:0:0]:HDD    , "FUJITSU M2249SA         0105",  318.1 MB
[0:3:0]:RmvDisk, "SONY    SMO-C501-00     2.07",  281.7 MB
[0:4:0]:MO     , "RICOH   RO-3012E        6.32",  121.4 MB
[0:5:0]:CD-ROM , "SONY    CD-ROM CDU-561  1.7X",  450.2 MB
[Host adapter number: SCSI ID number: LUN number = 0]: Type,
 "Manufacturer Version", Capacity

MCHK

Displays format type.

<example>
[0:0:0]:HDD    , "FUJITSU M2249SA         0105",  318.1 MB
        Formatted to IBM FDISK type format, Number of partitions: 2
[0:3:0]:RmvDisk, "SONY    SMO-C501-00     2.07",  281.7 MB
        Formatted to Rxform MO type format, Number of partition: 3
[0:4:0]:MO     , "RICOH   RO-3012E        6.32",  121.4 MB
       Formatted to IBM/NEC 3.5 MO type format, Number of partition: 1
[0:5:0]:CD-ROM , "SONY    CD-ROM CDU-561  1.7X",  450.2 MB
[Host adapter number: SCSI ID number: LUN number = 0]


BFC

Compares binary files. Use the program to verify that files have been
correctly copied after you copied files with XCOPY command, etc.

  SYNTAX

  BFC <OPTION SWITCH> FILE 1  FILE 2 
  BFC<OPTION SWITCH> PATH 1  PATH 2 ..... 
  BFC <OPTION> DIRECTORY 1  DIRECTORY 2 
  
  OPTION SWITCH
  -r: Compares files in subdirectories too.
  -s: Compares even if sizes are different.
  -m<number>:  Displays differences up to the number specified. (default: 0) 
               x: Treats the number following it as hex number.
               a:  Displays all the differences.
  Example: -m16, -mx10: Both of them display up to 16 differences.
  
  -ma: Displays all the differences.
  -q: Displays nothing if all files match. 
  -v: if files match, displays to that effect.

  Example:  BFC -r a: c:

MOLOCK

Disables the eject switch on the MO drive.
  Example:  MOLOCK D:

MOUNLOCK

Enables the eject switch disabled by MOLOCK.
  Example:  MOUNLOCK D:

MOEJECT

Ejects a MO disk from the drive.
  Example:  MOEJECT D:

SONYAWRE

Configures SONY 5" MO drives to reallocate defective data blocks automatically
when write error occurs. (Automatic Write Reallocation of defective data blocks
Enabled = AWRE) 
It is effective only when used with Write&Verify command. It will be cleared
when the PC is turned off.

Add the following line to your AUTOEXEC.BAT file:

\SCSI\sonyawre

MOREADY

Determines if a disk is in the drive specified. (Does not check if the media is
usable or not.)

  Example:  MOREADY D:

One of the following values will be returned to ERROR LEVEL of the BAT file:
  0    media exits
  1    no media

6 REFERENCE
-----------

A) DEVICE DRIVER  MSDRVR.SYS

MSDRVR.SYS  is a device driver for SCSI disk units.  It can support 
multiple SCSI cards.

Host Adapter

MSDRVR.SYS can access SCSI peripheral devices through ASPI managers or Micro
Staff's SCSI drivers. SCSI cards supported by these drivers are called Host 
Adapter. ASPI managers can support more than one Host Adapter at the same 
time.  Micro Staff's SCSI drivers are in compliance with ASPI standard. 

HOST ADAPTER NUMBER

Host Adapter numbers are assigned to SCSI cards in the order they are 
configured starting 0.  Assuming a system has an ASPI Manager supporting 2 
SCSI cards, MSDRVR.SYS will assign Host Adapter numbers to SCSI cards as 
follows: 

	0:  The first Host Adapter supported by the ASPI Manager
	1:  The second Host Adapter supported by the ASPI Manager

HOW TO SPECIFY PERIPHERAL DEVICE

In a system with one Host Adapter, devices are specified by -I<SCSI ID>
switch.
  Example:  to specify a peripheral device at ID Number 4
	    -I4

Specifying a peripheral device in a system with multiple Host Adapters 
requires a Host Adapter number and a SCSI ID. 
Use -A<Host Adapter Number><SCSI ID> switch.
  Example:  to specify a peripheral device at ID Number 4 hooked up to Host 
            Adapter Number 2
	    -A24



Host Adapters and SCSI peripheral devices can be configured in a variety of
ways with the following MSDRVR.SYS option switches:
	Note:  If + or - following a switch are omitted, + is assumed.

SCSI DEVICE SCANNING

-HS+:	scans SCSI peripheral devices when starting system
-HS-:	does not scan SCSI peripheral device when starting system
default: scans SCSI peripheral devices when stating system
Note: refer to X and U switches described later.

-HS<Host Adapter Number>+:   scans SCSI peripheral devices  hooked up to Host 
                             Adapter specified by Host Adapter Number when 
                             starting system
-HS<Host Adapter Number>-:   does not scan SCSI peripheral devices  hooked up 
                             to Host Adapter specified by Host Adapter Number 
                             when starting system
default: scans SCSI peripheral devices  hooked up to Host Adapter specified 
         by Host Adapter Number when starting system
Note: refer to X and U switches described later.

-TH+: recognizes hard disks
-TH-: does not recognize hard disks
default: recognizes hard disks

-TR+: recognizes removable disks (MO disk etc.)
-TR-: does not recognize removable disks (MO disk etc.)
default: recognizes removable disks (MO disk etc.)


-X<device>,<device>,.....: does not scan devices specified.
(Use this switch in combination with HS+ when you do not want to scan 
 specific device(s).)

-U<device>,<device>,....: scans devices specified.
(Use this switch in combination with HS- when you want to scan only specific
 device(s).)

  Example: to scan only SCSI ID number 4 on Host Adapter number 2.
	 -HS- -UA24

  Example: not to scan SCSI ID numbers 0 and 1 on Host Adapter number 0.
	 -HS+ -XA00,A01
	 or
	 -XI0,I1

RESERVING DRIVES

-D<minimum number of drives>:
Reserves number of drives specified when the number of partitions on the 
disk in peripheral devices is less than the number specified or when no disk
is in the peripheral devices. The peripheral devices must be powered on when
starting system. 

default: reserves one drive

  Example: to reserve at least two drives for each peripheral device connected
         -D2

You can specify different numbers for different devices by using D switch as
described later in this manual.

SWITCHES FOR DOS 3.X 

-S<sector size>: Specifies logical sector size.
The following logical sector sizes can be specified:

512 ( maximum partition size available: 32 MB )
1K ( maximum partition size available: 64 MB)
2K (maximum partition size available: 128 MB)
4K (maximum partition size available: 256 MB)
8K (maximum partition size available: 512 MB)
default: 2K

Note: The larger the value specified is, the more of main memory is consumed.

(MS-DOS 3.X)
The amount of memory consumed is calculated by the following formula:

BUFFERS SIZE (specified in CONFIG.SYS file) x  SECTOR SIZE (specified by S
                                                            switch)

  Example: If CONFIG.SYS contains the following commands
  BUFFERS = 20
  DEVICE = \SCSI\MSDRVR.SYS  -S4K

  The amount of main memory consumed is
  20 X 4K = 80KB

VERIFY

Verifies that data is written to a disk correctly. If write error occurs, date
is written on spare sectors as long as spare sectors are available.

-V<mode><mode>:
Specifies verify mode for all peripheral devices.

Mode
A: verifies all the time regardless of DOS verify switch

O: uses Write command and Verify command
default: uses Write&Verify command

R: issues Read command after Write command to verify.
   It uses 64KB more memory.
default: No Read After Write

  Example: verifies all the time using Write&Verify command.
        -VA

-V switch can be set to each peripheral device.

OTHERS

-W<seconds>: specifies how many seconds to wait before scanning peripheral 
devices.
default: 0 second

-OM: displays one screen of messages at one time when the driver is being
loaded.

-O1K: enables to handle 1024 bytes/sector disks as well as 512 bytes/sector
disks.
It consumes 1KB more memory.

-O?: displays a message "install driver [y/n]" when starting system.
Type n not to load the driver or other key to load.

HOW TO SET SWITCHES FOR EACH DEVICE

A switch for each peripheral device takes precedence over the switch of the 
same function for all devices.

device:<sub switch 1>,< sub switch 2>

SUB SWITCH

D<minimum number of drives>:
Reserves number of drives specified when the number of partitions on the 
disk in peripheral devices is less than the number specified or when no disk
is in the peripheral devices.  The devices must be powered on when starting
system.

R:
Reserves number of drives specified by -D option or D sub switch even if
devices are not powered on.
Use this switch when you turn on peripheral devices after starting system.

V<mode><mode>:
Specifies verify mode for specified peripheral device.

Mode
A: verifies all the time

O: uses Write command and Verify command
default: uses Write&Verify

R: issues Read command after Write command to verify.
It uses 64KB more memory
default: No Read After Write

  Example: verify peripheral device at ID number 4 connected to Host Adapter
         number 0 all the time and reserve 4 drives even if the device is 
         powered off when starting system.
         -A04:R,D4,VA  (-I4:D4,R,VA )

EXAMPLES OF SWITCH SETTINGS


Verify peripheral device at ID 4 only.
  DEVICE = \SCSI\MSDRVR.SYS -I4:VA

Verify peripheral device at ID 4 only; Do not recognize hard disks
  DEVICE = \SCSI\MSDRVR.SYS -TH- -I4:VA

Do not scan the peripheral device at SCSI ID numbers 0 and 1
  DEVICE = \SCSI\MSDRVR.SYS -XI0,I1

Enable to handle 1024 bytes/sector 5" MO disks
  DEVICE = \SCSI\MSDRVR.SYS -O1K

Reserve 4 drives for the peripheral device at SCSI ID 4 even if the device is
OFF when starting system.
  DEVICE = \SCSI\MSDRVR.SYS -I4:VA,R,D4

Reserve 1 drive for peripheral device at ID 3 and 4 drives for the device at
SCSI ID 4 even if they are OFF when starting system.
  DEVICE = \SCSI\MSDRVR.SYS -I3:VA,R,D1 -I4:VA,R,D4

Performs verify on peripheral device at SCSI ID 4 with  Read After Write 
  DEVICE = \SCSI\MSDRVR.SYS -I4:VAR,R,D4 -VR

Enable to handle up to 4KB of logical sector
  DEVICE = \SCSI\MSDRVR.SYS -S4k

B) CD-ROM DEVICE DRIVER OPTION SWITCH

/d:<name>:
	specifies device name
	default: MSCD0000
	the same name should be specified by MSCDEX /d: switch

	Example:
	device = mcdtos.sys /d:mscd0000

	MSCDEX /d switch should be as follows:
	      mscdex /d:mscd0000

/i<scsi-device-id>...:
	specifies SCSI ID number of CD-ROM drive

	Example: CD-ROM drives are at ID numbers 0, 1 and 2
	device = mcdtos.sys /i012 /d:mscd0000
	
	default: 0 through 6

/w<seconds>:

	specifies how many seconds to wait before scanning peripheral devices
	default: 4 seconds


 ***************** WARRANTY DISCLAIMER ****************
This programs  is provided on an "as is" basis. MICRO STAFF CO., LTD.
makes no warranty of any kind.
In no  event will  MICRO STAFF CO., LTD. be liable  for any  errors, 
damages including  but  not  limited  to  special,  incidental, 
consequential or other damages.

