README.seagate revision 1.8
11.8Sandvar# $NetBSD: README.seagate,v 1.8 2022/04/08 10:17:54 andvar Exp $ 21.2Sperry 31.1SmycroftThe hardware: 41.1Smycroft 51.1SmycroftThe ST01/02, and Future Domain 950 are very simple SCSI controllers. They are 61.1Smycroftnot busmastering, so the processor must do all transfers a la IDE. They support 71.1Smycroftblind transfer by adding wait states (up to a certain limit). Interrupt is 81.1Smycroftgenerated for reconnect and parity errors (maybe also for some other events). 91.1Smycroft 101.1SmycroftThe card consists of one command port that writes to scsi control lines, reads 111.1Smycroftstatus lines, and a data port that read/writes to the 8 data lines. The address 121.1Smycroftdecoding gives both data and control ports large memory areas to a single 131.1Smycroftport. This is used by the code. 141.1Smycroft 151.1SmycroftThe ST01/02 differs from the FD950 in memory address location and SCSI id. 161.1Smycroft 171.1SmycroftProbing for the card: 181.1Smycroft 191.1SmycroftA card is recognized by comparing the BIOS signature with known signatures. A 201.1Smycroftnew card may not be recognized if the BIOS signature has changed. Please send 211.1Smycroftnew signatures to me. 221.1Smycroft 231.1SmycroftDriver function: 241.1Smycroft 251.1SmycroftA scsi command is sent to scsi_cmd function. The command is either placed in 261.1Smycroftthe queue or an retryable message is returned. The routine may wait for 271.1Smycroftcompletion of the command depending on the supplied flags. A timer is started 281.1Smycroftfor every command placed in the queue. The commands are added in the order they 291.8Sandvarare received. There is a possibility to make all REQUEST SENSE commands be 301.1Smycroftqueued before all other commands, but I dont think it is a good thing (Linux 311.4Sperrydo however use this). 321.1Smycroft 331.1SmycroftThe card is mostly controlled by the sea_main function. It is called by 341.1Smycroftscsi_cmd, the interrupt routine, and the timeout routine. The sea_main routine 351.1Smycroftruns as long there are something to do (transfer data, issue queued commands, 361.1Smycroftand handle reconnected commands). 371.1Smycroft 381.1SmycroftThe data transfers may be done in two different ways: Blind and polled 391.1Smycrofttransfers. They differ in the way the driver does it handshaking with the 401.1Smycrofttarget. During a blind transfer, the driver code blindly transfers a block 411.1Smycroftof data without checking for changed phase. During polled transfers, the 421.6Smsaitohphase is checked between every character transferred. The polled transfers 431.1Smycroftare always used for status information and command transfers. 441.1Smycroft 451.3SwizBecause the card does not use DMA in any way, there is no need to handle 461.1Smycroftphysical addresses. There is no problem with the isa-bus address limit of 471.1Smycroft16MB, making bounce-buffers unnecessary. 481.1Smycroft 491.1SmycroftThe data structures: 501.1Smycroft 511.1SmycroftEvery card has a sea_softc structure keeping the queues of commands waiting to 521.1Smycroftbe issued, and commands currently disconnected. The type of card (Seagate or 531.1SmycroftFuture Domain), data and control port addresses, scsi id, busy flags for all 541.1Smycroftpossible targets, and interrupt vector for the card. 551.1Smycroft 561.1SmycroftEvery scsi command to be issued are stored in a sea_scb structure. It contains 571.1Smycrofta flag describing status/error of the command, current data buffer position, 581.7Sandvarand number of bytes remaining to be transferred. 591.1Smycroft 601.1Smycroft 611.1SmycroftPROBLEMS 621.1Smycroft 631.1SmycroftI have had problems getting the ST02 boot using the boot floppies. I think it 641.1Smycroftis some problem with BIOS calls not working. It is unfortunately impossible to 651.1Smycroftdisconnect the ST02 floppy controller. 661.1Smycroft 671.1SmycroftI have had problem to get the driver talk to a 40 MB Seagate disk. I dont have 681.1Smycroftaccess to it any more, so I can't do any more checks on that. 691.1Smycroft 701.1SmycroftNOTE: The ST02 creates its own description of the disk attached. This is not 711.1Smycroftthe same as the disk says. This translation problem may cause problems when 721.1Smycroftsharing a disk between both DOS and BSD. It is however not impossible. 73