NetBSD/sys/dev/isa
mlelstv 485e52e2b3 attach and detach do not mix.
Create a new detach function that calls the parent function after
dealing with the private instance counter.
2009-04-10 10:18:50 +00:00
..
Makefile
README.seagate
ad1848_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad1848var.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
addcom_isa.c
adv_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
aha_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
aic_isa.c
aps.c
aria.c
ariareg.h
ast.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
atppc_isa.c
atppc_isadma.c
atppc_isadma.h
attimer_isa.c Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
aztech.c
bha_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
boca.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
cec.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cms.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cmsreg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
com_isa.c During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
com_multi.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
com_multi.h
commultiprint.c
cs89x0isa.c
cs89x0isavar.h
cs4231var.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cy_isa.c
daic_isa.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
depca_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
dpt_isa.c
ega.c ANSIfy functions with function-pointer arguments 2009-03-16 23:11:09 +00:00
egavar.h
elink.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
elink.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
esp_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
esp_isavar.h
ess.c
ess_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
essreg.h
essvar.h
fd.c g/c BUFQ_FOO() macros and use bufq_foo() directly. 2009-01-13 13:33:58 +00:00
fdc_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
fdcvar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
fdreg.h
fdvar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
files.isa
finsio_isa.c
gus.c kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
gusreg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
i82365_isa.c constify the pcmcia/cardbus method tables 2008-06-26 12:33:17 +00:00
i82365_isasubr.c ansify function definitions 2009-03-16 09:32:38 +00:00
i82365_isavar.h
ics2101.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
ics2101var.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_ai.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
if_aireg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_ate.c
if_cs_isa.c
if_ec.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_ecreg.h
if_ef.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
if_efreg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_eg.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
if_egreg.h
if_el.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
if_elreg.h
if_ep_isa.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
if_fmv_isa.c
if_hp.c Add some 'int' into function definitions where the K&R one didn't 2009-03-17 18:19:15 +00:00
if_ix.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
if_ixreg.h
if_iy.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
if_lc_isa.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
if_le_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_levar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_ne_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_ntwoc_isa.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
if_ntwoc_isareg.h
if_sm_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_tr_isa.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
if_tribm_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
if_trtcm_isa.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
if_tscs_isa.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
if_we_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ioat66.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
isa.c Fix spelling: indrect -> indirect. 2009-04-07 21:48:46 +00:00
isabusprint.c
isadma.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
isadmareg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
isadmavar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
isareg.h
isavar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
isic_isa.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
isic_isa_avm_a1.c
isic_isa_itk_ix1.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
isic_isa_tel_s08.c
isic_isa_tel_s016.c
isic_isa_tel_s0163.c
isic_isa_usr_sti.c
isv.c Use the right format specifiers to print the new struct timeval. 2009-02-27 23:13:32 +00:00
isvio.h
itesio_isa.c Also attach in the IT8726F Super I/O. 2008-04-26 19:01:53 +00:00
itesio_isavar.h Also attach in the IT8726F Super I/O. 2008-04-26 19:01:53 +00:00
joy_ess.c
joy_isa.c
lm_isa.c Consistent use of softc member name - fixes build breakage from previous. 2008-10-12 23:07:32 +00:00
lpt_isa.c lpt(4): register NULL pmf handler. 2008-05-31 14:07:03 +00:00
madreg.h
mcd.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
mcdreg.h
midi_pcppi.c attach and detach do not mix. 2009-04-10 10:18:50 +00:00
moxa_isa.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
mpu_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
mpu_sb.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
mpu_ym.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
nca_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
nsclpcsio_isa.c Remove LKMs and switch to the module framework, pass 1. 2008-11-12 12:35:50 +00:00
opl_ess.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
opl_isa.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
opl_sb.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
opl_wss.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
opl_ym.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
pas.c
pasreg.h
pcdisplay.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
pcdisplayvar.h
pckbc_isa.c Add pmf support. 2008-05-25 16:19:12 +00:00
pcppi.c Make pcppi(4) detach the "speaker" from attimer(4), so that the 2009-04-07 22:30:09 +00:00
pcppireg.h
pcppivar.h
radiotrack.c
radiotrack2.c
rtfps.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
satlink.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
satlinkio.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
satlinkreg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
sb.c
sb_isa.c
sbdsp.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
sbdspvar.h
sbreg.h
sbvar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
seagate.c ansify function definitions 2009-03-16 09:32:38 +00:00
sf16fmr2.c
slhci_isa.c
smsc.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
smscvar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
spkr.c Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
spkrio.h
tcic2_isa.c ansify function definitions 2009-03-16 09:32:38 +00:00
tcom.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
toaster.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
toasterlcd.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
tsdio.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
tsdioreg.h
tsdiovar.h
ug_isa.c
uha_isa.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
vga_isa.c
vga_isavar.h
wdc_isa.c During shutdown, detach devices in an orderly fashion. 2009-04-02 00:09:32 +00:00
wds.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
wdsreg.h
weasel_isa.c
weaselreg.h
weaselvar.h
wss.c
wss_isa.c
wssreg.h
wssvar.h
wt.c Replace device_lookup() with device_lookup_private() on getting softc 2008-06-08 12:43:51 +00:00
wtreg.h
ym.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ymvar.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00

README.seagate

#	$NetBSD: README.seagate,v 1.5 2005/12/11 12:22:02 christos Exp $

The hardware:

The ST01/02, and Future Domain 950 are very simple SCSI controllers. They are
not busmastering, so the processor must do all transfers a la IDE. They support
blind transfer by adding wait states (up to a certain limit). Interrupt is
generated for reconnect and parity errors (maybe also for some other events).

The card consists of one command port that writes to scsi control lines, reads
status lines, and a data port that read/writes to the 8 data lines. The address
decoding gives both data and control ports large memory areas to a single
port. This is used by the code.

The ST01/02 differs from the FD950 in memory address location and SCSI id.

Probing for the card:

A card is recognized by comparing the BIOS signature with known signatures. A
new card may not be recognized if the BIOS signature has changed. Please send
new signatures to me.

Driver function:

A scsi command is sent to scsi_cmd function. The command is either placed in
the queue or an retryable message is returned. The routine may wait for
completion of the command depending on the supplied flags. A timer is started
for every command placed in the queue. The commands are added in the order they
are received. There is a possiblity to make all REQUEST SENSE commands be
queued before all other commands, but I dont think it is a good thing (Linux
do however use this).

The card is mostly controlled by the sea_main function. It is called by
scsi_cmd, the interrupt routine, and the timeout routine. The sea_main routine
runs as long there are something to do (transfer data, issue queued commands,
and handle reconnected commands).

The data transfers may be done in two different ways: Blind and polled
transfers. They differ in the way the driver does it handshaking with the
target. During a blind transfer, the driver code blindly transfers a block
of data without checking for changed phase. During polled transfers, the
phase is checked between every character transfered. The polled transfers
are always used for status information and command transfers.

Because the card does not use DMA in any way, there is no need to handle
physical addresses. There is no problem with the isa-bus address limit of
16MB, making bounce-buffers unnecessary.

The data structures:

Every card has a sea_softc structure keeping the queues of commands waiting to
be issued, and commands currently disconnected. The type of card (Seagate or
Future Domain), data and control port addresses, scsi id, busy flags for all
possible targets, and interrupt vector for the card.

Every scsi command to be issued are stored in a sea_scb structure. It contains
a flag describing status/error of the command, current data buffer position,
and number of bytes remaining to be transfered.


PROBLEMS

I have had problems getting the ST02 boot using the boot floppies. I think it
is some problem with BIOS calls not working. It is unfortunately impossible to
disconnect the ST02 floppy controller.

I have had problem to get the driver talk to a 40 MB Seagate disk. I dont have
access to it any more, so I can't do any more checks on that.

NOTE: The ST02 creates its own description of the disk attached. This is not
the same as the disk says. This translation problem may cause problems when
sharing a disk between both DOS and BSD. It is however not impossible.