NetBSD/sys/dev/isa
yamt aec75b1cc6 - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)
2005-10-15 17:29:10 +00:00
..
Makefile
README.seagate nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ad1848_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ad1848var.h Update comment. 2005-06-28 10:16:33 +00:00
addcom_isa.c de-__P 2005-02-04 02:10:35 +00:00
adv_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
aha_isa.c de-__P 2005-02-04 02:10:35 +00:00
aic_isa.c de-__P 2005-02-04 02:10:35 +00:00
aria.c
ariareg.h ansify and KNF 2005-01-13 15:01:27 +00:00
ast.c de-__P 2005-02-04 02:10:35 +00:00
atppc_isa.c de-__P 2005-02-04 02:10:35 +00:00
atppc_isadma.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
atppc_isadma.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
attimer_isa.c Add attimer(4) driver, with ISA and ACPI attachments. 2005-03-25 23:06:19 +00:00
aztech.c
bha_isa.c de-__P 2005-02-04 02:10:35 +00:00
boca.c de-__P 2005-02-04 02:10:35 +00:00
cec.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cms.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cmsreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
com_isa.c de-__P 2005-02-04 02:10:35 +00:00
com_multi.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
com_multi.h
commultiprint.c
cs89x0isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cs89x0isavar.h de-__P 2005-02-04 02:10:35 +00:00
cs4231var.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
cy_isa.c
daic_isa.c de-__P 2005-02-04 02:10:35 +00:00
depca_isa.c
dpt_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ega.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
egavar.h
elink.c
elink.h de-__P 2005-02-04 02:10:35 +00:00
esp_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
esp_isavar.h de-__P 2005-02-04 02:10:35 +00:00
ess.c - add const 2005-05-30 04:32:38 +00:00
ess_isa.c ansify and KNF 2005-01-13 15:01:27 +00:00
essreg.h ansify and KNF 2005-01-13 15:01:27 +00:00
essvar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
fd.c - change the way to specify a bufq strategy. (by string rather than by number) 2005-10-15 17:29:10 +00:00
fdc_isa.c
fdcvar.h de-__P 2005-02-04 02:10:35 +00:00
fdreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
fdvar.h - change the way to specify a bufq strategy. (by string rather than by number) 2005-10-15 17:29:10 +00:00
files.isa Attach to gpiobus. From OpenBSD. 2005-09-27 02:56:27 +00:00
gus.c - add const 2005-05-30 04:32:38 +00:00
gusreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
i82365_isa.c de-__P 2005-02-04 02:10:35 +00:00
i82365_isasubr.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
i82365_isavar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ics2101.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ics2101var.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_ai.c - add const 2005-05-30 04:32:38 +00:00
if_aireg.h
if_ate.c
if_cs_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_ec.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_ecreg.h
if_ef.c - add const 2005-05-30 04:32:38 +00:00
if_efreg.h
if_eg.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_egreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_el.c de-__P 2005-02-04 02:10:35 +00:00
if_elreg.h
if_ep_isa.c PR/22058: Onno van der Linden: duplicate detection of isa ip. 2005-05-12 18:53:08 +00:00
if_fmv_isa.c
if_hp.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_ix.c - add const 2005-05-30 04:32:38 +00:00
if_ixreg.h
if_iy.c No 0x in front of %p... 2005-05-22 15:54:45 +00:00
if_lc_isa.c - add const 2005-05-30 04:32:38 +00:00
if_le_isa.c - add const 2005-05-30 04:32:38 +00:00
if_levar.h
if_ne_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_ntwoc_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_ntwoc_isareg.h
if_sm_isa.c de-__P 2005-02-04 02:10:35 +00:00
if_tr_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_tribm_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_trtcm_isa.c - add const 2005-05-30 04:32:38 +00:00
if_tscs_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
if_we_isa.c Make it possible for attachment to specify that the 16bit access shouldn't 2005-04-03 10:56:59 +00:00
ioat66.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
isa.c s/locdesc_t/int/g 2005-08-26 12:42:11 +00:00
isabusprint.c add __KERNEL_RCSID 2005-05-24 05:14:37 +00:00
isadma.c de-__P 2005-02-04 02:10:35 +00:00
isadmareg.h
isadmavar.h de-__P 2005-02-04 02:10:35 +00:00
isareg.h
isavar.h sprinkle const. 2005-05-29 22:12:37 +00:00
isic_isa.c make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
isic_isa_avm_a1.c make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
isic_isa_itk_ix1.c make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
isic_isa_tel_s08.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
isic_isa_tel_s016.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
isic_isa_tel_s0163.c make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
isic_isa_usr_sti.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
joy_ess.c
joy_isa.c de-__P 2005-02-04 02:10:35 +00:00
lm_isa.c
lpt_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
madreg.h
mcd.c - change the way to specify a bufq strategy. (by string rather than by number) 2005-10-15 17:29:10 +00:00
mcdreg.h
midi_pcppi.c This needs <machine/bus.h> now. 2005-03-21 18:27:32 +00:00
moxa_isa.c de-__P 2005-02-04 02:10:35 +00:00
mpu_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
mpu_sb.c de-__P 2005-02-04 02:10:35 +00:00
mpu_ym.c de-__P 2005-02-04 02:10:35 +00:00
nca_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
nsclpcsio_isa.c -put gpio stuff inside #if NGPIO > 0 2005-10-11 15:58:37 +00:00
opl_ess.c de-__P 2005-02-04 02:10:35 +00:00
opl_isa.c de-__P 2005-02-04 02:10:35 +00:00
opl_sb.c de-__P 2005-02-04 02:10:35 +00:00
opl_wss.c de-__P 2005-02-04 02:10:35 +00:00
opl_ym.c de-__P 2005-02-04 02:10:35 +00:00
pas.c ansify and KNF 2005-01-14 03:41:45 +00:00
pasreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
pcdisplay.c de-__P 2005-02-04 02:10:35 +00:00
pcdisplayvar.h de-__P 2005-02-04 02:10:35 +00:00
pckbc_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
pcppi.c Make pcppi(4) use attimer(4) to set the pitch of the bell. 2005-03-25 23:09:00 +00:00
pcppireg.h
pcppivar.h Make pcppi(4) use attimer(4) to set the pitch of the bell. 2005-03-25 23:09:00 +00:00
radiotrack.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
radiotrack2.c
rtfps.c de-__P 2005-02-04 02:10:35 +00:00
satlink.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
satlinkio.h
satlinkreg.h
sb.c ansify and KNF 2005-01-13 15:01:27 +00:00
sb_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
sbdsp.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
sbdspvar.h ansify and KNF 2005-01-13 15:01:27 +00:00
sbreg.h ansify and KNF 2005-01-13 15:01:27 +00:00
sbvar.h ansify and KNF 2005-01-13 15:01:27 +00:00
seagate.c - add const 2005-05-30 04:32:38 +00:00
sf16fmr2.c
slhci_isa.c
spkr.c avoid nested variables 2005-05-29 22:12:26 +00:00
spkrio.h
tcic2_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
tcom.c de-__P 2005-02-04 02:10:35 +00:00
toaster.c Device driver that exposes the burner element, magnetic latch, and front-panel 2005-08-14 04:14:35 +00:00
toasterlcd.c wsdisplay device driver for the 4x40 text-mode LCD on the NetBSD/toaster 2005-08-14 04:15:18 +00:00
tsdio.c s/locdesc_t/int/g 2005-08-26 12:42:11 +00:00
tsdioreg.h Simple driver for Technologic Systems TS-DIO24 PC104 board. No 2005-08-14 03:50:34 +00:00
tsdiovar.h Simple driver for Technologic Systems TS-DIO24 PC104 board. No 2005-08-14 03:50:34 +00:00
uha_isa.c de-__P 2005-02-04 02:10:35 +00:00
vga_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
vga_isavar.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
wdc_isa.c
wds.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
wdsreg.h Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name 2005-02-21 00:29:06 +00:00
weasel_isa.c nuke trailing whitespace 2005-02-27 00:26:58 +00:00
weaselreg.h
weaselvar.h
wss.c ansify and KNF 2005-01-14 03:41:45 +00:00
wss_isa.c ansify and KNF 2005-01-14 03:41:45 +00:00
wssreg.h
wssvar.h ansify and KNF 2005-01-14 03:41:45 +00:00
wt.c Add a missing return after an "if" that checks for something then 2005-02-28 05:05:02 +00:00
wtreg.h nuke trailing whitespace 2005-02-27 00:26:58 +00:00
ym.c - add const 2005-05-30 04:32:38 +00:00
ymvar.h ansify and KNF 2005-01-14 03:41:45 +00:00

README.seagate

#	$NetBSD: README.seagate,v 1.4 2005/02/27 00:27:17 perry 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.