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