NetBSD/sys/dev/isa
andvar a10c2cec39 fix various typos in comments and log messages. 2024-02-10 09:21:51 +00:00
..
Makefile
README.seagate fix various typos, mainly in comments, but also log messages, docs, game text. 2022-04-08 10:17:52 +00:00
ad1848_isa.c
ad1848var.h
addcom_isa.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
adv_isa.c
aha_isa.c
aic_isa.c
aps.c fix spelling mistakes, mainly in comments and log messages. 2024-02-09 22:08:30 +00:00
aria.c
ariareg.h
ast.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
atppc_isa.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
atppc_isadma.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
atppc_isadma.h
attimer_isa.c
aztech.c
bha_isa.c
boca.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
cec.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
cms.c
cmsreg.h
com_isa.c
com_multi.c
com_multi.h
commultiprint.c
cs89x0isa.c fix various typos in comments and log messages. 2021-08-02 12:56:22 +00:00
cs89x0isavar.h
cs4231var.h
cy_isa.c cy_isa_probe(): No need to put a ~3KB cy_softc on the stack. 2023-11-20 04:26:34 +00:00
depca_isa.c
dpt_isa.c
ega.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
egavar.h
elink.c malloc(9) -> kmem(9) 2022-09-25 17:11:48 +00:00
elink.h
esp_isa.c
esp_isavar.h
ess.c fix spelling mistakes, mainly in comments and log messages. 2024-02-09 22:08:30 +00:00
ess_isa.c
essreg.h fix spelling mistakes, mainly in comments and log messages. 2024-02-09 22:08:30 +00:00
essvar.h
fd.c malloc(9) -> kmem(9) 2022-09-25 17:11:48 +00:00
fdc_isa.c Do not attach if the parent bus failed to provide an ISA chipset tag. 2022-04-18 10:09:07 +00:00
fdcvar.h
fdreg.h
fdvar.h
files.isa - The "ess" device does not need a "midibus" interface attribute; it 2021-04-26 19:10:38 +00:00
finsio_isa.c unregister sensors only when registered. 2022-06-29 15:56:58 +00:00
gus.c
gusreg.h fix spelling mistakes, mainly in comments and log messages. 2024-02-09 22:08:30 +00:00
i82365_isa.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
i82365_isasubr.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
i82365_isavar.h
ics2101.c
ics2101var.h
if_ai.c Remove unneeded bus_space_barrier() calls. 2022-07-12 02:03:57 +00:00
if_aireg.h
if_ate.c
if_cs_isa.c
if_ec.c s/transeiver/transceiver/ in comments. 2024-02-08 11:31:00 +00:00
if_ecreg.h
if_ef.c Remove unneeded bus_space_barrier() calls. 2022-07-12 02:03:57 +00:00
if_efreg.h
if_eg.c egstart(): Use m_copydata() rather than open-coding it. 2022-09-17 17:00:02 +00:00
if_egreg.h
if_el.c Eliminate use of IFF_OACTIVE. 2022-09-17 17:15:02 +00:00
if_elreg.h s/auxillary/auxiliary/ in comments. 2022-05-20 19:34:22 +00:00
if_ep_isa.c
if_fmv_isa.c
if_ix.c fix various typos in comments and log messages. 2024-02-10 09:21:51 +00:00
if_ixreg.h
if_iy.c Eliminate use of IFF_OACTIVE. 2022-09-17 17:15:02 +00:00
if_lc_isa.c
if_le_isa.c Audit unload/unmap v.s. free against DMA buffer for sys/dev; 2022-05-29 10:43:45 +00:00
if_levar.h
if_ne_isa.c
if_ntwoc_isa.c
if_ntwoc_isareg.h
if_sm_isa.c
if_tscs_isa.c
if_we_isa.c
ioat66.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
isa.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
isa_stub.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
isabusprint.c
isadma.c
isadmareg.h
isadmavar.h
isareg.h
isavar.h
isv.c
isvio.h
itesio_isa.c unregister sensors only when registered. 2022-06-29 15:56:58 +00:00
itesio_isavar.h itesio(4): Added IT8625E support. 2021-07-03 04:44:16 +00:00
joy_ess.c
joy_isa.c
lm_isa.c
lm_isa_common.c
lm_isa_common_var.h
lm_wbsio.c
lpt_isa.c
madreg.h fix various typos in comments and messages. 2022-11-02 20:38:21 +00:00
mcd.c sys/dev: Memset zero before copyout. 2021-09-09 23:26:36 +00:00
mcdreg.h
midi_pcppi.c
moxa_isa.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
mpu_isa.c
mpu_sb.c
mpu_ym.c
nca_isa.c
nct.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
nsclpcsio_isa.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
opl_ess.c Remove unnecessary include of <sys/malloc.h>. 2022-09-24 23:21:59 +00:00
opl_isa.c Remove unnecessary include of <sys/malloc.h>. 2022-09-24 23:21:59 +00:00
opl_sb.c Remove unnecessary include of <sys/malloc.h>. 2022-09-24 23:21:59 +00:00
opl_wss.c Remove unnecessary include of <sys/malloc.h>. 2022-09-24 23:21:59 +00:00
opl_ym.c Remove unnecessary include of <sys/malloc.h>. 2022-09-24 23:21:59 +00:00
pas.c
pasreg.h
pcdisplay.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
pcdisplayvar.h
pckbc_isa.c malloc(9) -> kmem(9) 2022-09-25 17:11:48 +00:00
pcppi.c s/anthing/anything/ and s/be to/too/ in comments. 2024-02-09 18:20:00 +00:00
pcppireg.h
pcppivar.h
ptcd.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
radiotrack.c
radiotrack2.c
rtfps.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
sb.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
sb_isa.c
sbdsp.c Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. 2021-07-24 21:31:31 +00:00
sbdspvar.h
sbreg.h fix spelling mistakes, mainly in comments and log messages. 2024-02-09 22:08:30 +00:00
sbvar.h
seagate.c malloc(9) -> kmem(9) 2022-09-25 17:11:48 +00:00
sf16fmr2.c
slhci_isa.c
smsc.c unregister sensors only when registered. 2022-06-29 15:56:58 +00:00
smscvar.h
soekrisgpio.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
spkr_pcppi.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
spkrio.h
tcic2_isa.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
tcom.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
tpm_isa.c
tsdio.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
tsdioreg.h
tsdiovar.h
ug_isa.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
uha_isa.c
vga_isa.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
vga_isavar.h
wbsio.c lm(4): Add Nuvoton NCT6797D support. 2022-12-16 00:02:28 +00:00
wbsioreg.h lm(4): Add Nuvoton NCT6797D support. 2022-12-16 00:02:28 +00:00
wdc_isa.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
wds.c Remove unnecessary include of <sys/malloc.h>. 2022-09-25 17:09:36 +00:00
wdsreg.h
weasel_isa.c
weaselreg.h s/serivce/service/ in comments. 2022-04-11 20:57:37 +00:00
weaselvar.h
wss.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
wss_isa.c sys: Fix various abuse of struct device internals. 2022-02-12 03:24:34 +00:00
wssreg.h
wssvar.h
wt.c malloc(9) -> kmem(9) 2022-09-25 17:11:48 +00:00
wtreg.h
ym.c Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
ymvar.h

README.seagate

#	$NetBSD: README.seagate,v 1.8 2022/04/08 10:17:54 andvar 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 possibility 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 transferred. 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 transferred.


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.