Home | History | Annotate | Line # | Download | only in isa
      1  1.8   andvar #	$NetBSD: README.seagate,v 1.8 2022/04/08 10:17:54 andvar Exp $
      2  1.2    perry 
      3  1.1  mycroft The hardware:
      4  1.1  mycroft 
      5  1.1  mycroft The ST01/02, and Future Domain 950 are very simple SCSI controllers. They are
      6  1.1  mycroft not busmastering, so the processor must do all transfers a la IDE. They support
      7  1.1  mycroft blind transfer by adding wait states (up to a certain limit). Interrupt is
      8  1.1  mycroft generated for reconnect and parity errors (maybe also for some other events).
      9  1.1  mycroft 
     10  1.1  mycroft The card consists of one command port that writes to scsi control lines, reads
     11  1.1  mycroft status lines, and a data port that read/writes to the 8 data lines. The address
     12  1.1  mycroft decoding gives both data and control ports large memory areas to a single
     13  1.1  mycroft port. This is used by the code.
     14  1.1  mycroft 
     15  1.1  mycroft The ST01/02 differs from the FD950 in memory address location and SCSI id.
     16  1.1  mycroft 
     17  1.1  mycroft Probing for the card:
     18  1.1  mycroft 
     19  1.1  mycroft A card is recognized by comparing the BIOS signature with known signatures. A
     20  1.1  mycroft new card may not be recognized if the BIOS signature has changed. Please send
     21  1.1  mycroft new signatures to me.
     22  1.1  mycroft 
     23  1.1  mycroft Driver function:
     24  1.1  mycroft 
     25  1.1  mycroft A scsi command is sent to scsi_cmd function. The command is either placed in
     26  1.1  mycroft the queue or an retryable message is returned. The routine may wait for
     27  1.1  mycroft completion of the command depending on the supplied flags. A timer is started
     28  1.1  mycroft for every command placed in the queue. The commands are added in the order they
     29  1.8   andvar are received. There is a possibility to make all REQUEST SENSE commands be
     30  1.1  mycroft queued before all other commands, but I dont think it is a good thing (Linux
     31  1.4    perry do however use this).
     32  1.1  mycroft 
     33  1.1  mycroft The card is mostly controlled by the sea_main function. It is called by
     34  1.1  mycroft scsi_cmd, the interrupt routine, and the timeout routine. The sea_main routine
     35  1.1  mycroft runs as long there are something to do (transfer data, issue queued commands,
     36  1.1  mycroft and handle reconnected commands).
     37  1.1  mycroft 
     38  1.1  mycroft The data transfers may be done in two different ways: Blind and polled
     39  1.1  mycroft transfers. They differ in the way the driver does it handshaking with the
     40  1.1  mycroft target. During a blind transfer, the driver code blindly transfers a block
     41  1.1  mycroft of data without checking for changed phase. During polled transfers, the
     42  1.6  msaitoh phase is checked between every character transferred. The polled transfers
     43  1.1  mycroft are always used for status information and command transfers.
     44  1.1  mycroft 
     45  1.3      wiz Because the card does not use DMA in any way, there is no need to handle
     46  1.1  mycroft physical addresses. There is no problem with the isa-bus address limit of
     47  1.1  mycroft 16MB, making bounce-buffers unnecessary.
     48  1.1  mycroft 
     49  1.1  mycroft The data structures:
     50  1.1  mycroft 
     51  1.1  mycroft Every card has a sea_softc structure keeping the queues of commands waiting to
     52  1.1  mycroft be issued, and commands currently disconnected. The type of card (Seagate or
     53  1.1  mycroft Future Domain), data and control port addresses, scsi id, busy flags for all
     54  1.1  mycroft possible targets, and interrupt vector for the card.
     55  1.1  mycroft 
     56  1.1  mycroft Every scsi command to be issued are stored in a sea_scb structure. It contains
     57  1.1  mycroft a flag describing status/error of the command, current data buffer position,
     58  1.7   andvar and number of bytes remaining to be transferred.
     59  1.1  mycroft 
     60  1.1  mycroft 
     61  1.1  mycroft PROBLEMS
     62  1.1  mycroft 
     63  1.1  mycroft I have had problems getting the ST02 boot using the boot floppies. I think it
     64  1.1  mycroft is some problem with BIOS calls not working. It is unfortunately impossible to
     65  1.1  mycroft disconnect the ST02 floppy controller.
     66  1.1  mycroft 
     67  1.1  mycroft I have had problem to get the driver talk to a 40 MB Seagate disk. I dont have
     68  1.1  mycroft access to it any more, so I can't do any more checks on that.
     69  1.1  mycroft 
     70  1.1  mycroft NOTE: The ST02 creates its own description of the disk attached. This is not
     71  1.1  mycroft the same as the disk says. This translation problem may cause problems when
     72  1.1  mycroft sharing a disk between both DOS and BSD. It is however not impossible.
     73