Home | History | Annotate | Download | only in jazz
History log of /src/sys/arch/arc/jazz/asc.c
RevisionDateAuthorComments
 1.26  27-Dec-2019  msaitoh s/transfered/transferred/
 1.25  27-Oct-2012  chs branches: 1.25.38;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.24  01-Jul-2011  dyoung branches: 1.24.2; 1.24.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.23  14-May-2008  tsutsui Normalize my licenses.
 1.22  13-Apr-2008  tsutsui branches: 1.22.2; 1.22.4; 1.22.6;
Split device_t/softc for MI ncr53c9x and some related devices,
with various cleanup.
 1.21  11-Mar-2007  he branches: 1.21.38;
Well, as pointed out by is@ for the amiga port, the added indirection
is wrong. Restore previous behaviour, and add the now appropriate cast.
 1.20  06-Mar-2007  he branches: 1.20.2;
More fixes after the caddr_t removal.
Mostly cast to char* for pointer arithmetic,
but also one missing indirection, and one "void *v, x;" fix.
 1.19  04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.18  15-Apr-2006  tsutsui branches: 1.18.14;
Detect FAS216 chip on some Olivetti machines. (untested)
Based on a patch for old asc driver from Maki Kato:
http://mail-index.netbsd.org/port-arc/2000/10/07/0003.html
 1.17  11-Dec-2005  christos branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; 1.17.12;
merge ktrace-lwp.
 1.16  06-Nov-2005  tsutsui - <machine/param.h> says:
"XXX Maxphys temporary changed to 32K while SCSI driver is fixed."
I (and soda) don't know what the "SCSI driver" is, but add local
asc_minphys() to limit max xfer size only for asc.c for now.
- According to old asc.c driver, DMA_START() is called before NCR_CMD_DMA
command. I'm not sure which DMAC or ASC should be started first, but
move DMA command from asc_dma_go() to asc_dma_setup().
- Disable NCR_F_DMASELECT (which allows DMA xfer for select command)
since it caused some problem on PICA.

Now gxemul-0.3.6.2 reaches mountroot() sd0 (but can't exec /sbin/init yet).
 1.15  22-Jan-2005  tsutsui branches: 1.15.8;
- remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.14  22-Jan-2005  tsutsui Unload xfer dmamap in asc_dma_stop().
 1.13  15-Jul-2003  lukem branches: 1.13.8;
__KERNEL_RCSID()
 1.12  04-May-2003  tsutsui branches: 1.12.2;
Rewrite jazzio asc SCSI driver to use MI ncr53c9x and bus_dma(9) with
BUS_DMA_ALLOCNOW flag for jazzio bus DMAC.

Tested on Soda's NEC Image RISCstation (which is an OEM of Acer PICA),
and should fix port-arc/13388.
 1.11  03-May-2003  wiz DMA, not dma nor Dma.
 1.10  17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.9  28-Dec-2002  tsutsui Change device names in struct pica_dev to match ones used by ARC BIOS.
All of these parameters should be obtained from ARC BIOS, and we will
switch to the way in future. As per discussion with soda.
 1.8  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.7  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6  14-Nov-2001  thorpej branches: 1.6.2;
Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
 1.5  05-Jul-2001  thorpej branches: 1.5.2; 1.5.6;
If the target failed to respond to selection, use XS_SELTIMEOUT,
not XS_DRIVER_STUFFUP.
 1.4  24-Jun-2001  chs make this compile without DIAGNOSTIC.
 1.3  13-Jun-2001  soda remove "cputype", introduce "struct asc_config *asc_conf;"
to describe platform-dependent variants.
 1.2  25-Apr-2001  bouyer Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
(no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
 1.1  24-Dec-2000  ur branches: 1.1.2; 1.1.4;
Switch pica to jazzio.
Split shared MD portion between algor and jazzio.
 1.1.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.1.2.4  05-Apr-2001  bouyer Make it compile.
 1.1.2.3  22-Jan-2001  bouyer first cut at converting to thorpej_scsipi
 1.1.2.2  05-Jan-2001  bouyer Sync with HEAD
 1.1.2.1  24-Dec-2000  bouyer file asc.c was added on branch thorpej_scsipi on 2001-01-05 17:33:57 +0000
 1.5.6.1  24-Oct-2001  thorpej Update for the new cache code. bus_dmamap_sync is now optimized
for a virtually-indexed, write-back cache.
 1.5.2.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.5.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.5  29-Dec-2002  thorpej Sync with HEAD.
 1.6.2.4  18-Oct-2002  nathanw Catch up to -current.
 1.6.2.3  05-Oct-2002  gmcgarry LWPify
 1.6.2.2  24-Jun-2002  nathanw Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.6.2.1  14-Nov-2001  nathanw file asc.c was added on branch nathanw_sa on 2002-06-24 22:03:43 +0000
 1.12.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.12.2.4  24-Jan-2005  skrll Sync with HEAD.
 1.12.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1  03-Aug-2004  skrll Sync with HEAD
 1.13.8.1  29-Apr-2005  kent sync with -current
 1.15.8.2  03-Sep-2007  yamt sync with head.
 1.15.8.1  21-Jun-2006  yamt sync with head.
 1.17.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.17.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.17.8.1  24-May-2006  yamt sync with head.
 1.17.6.1  22-Apr-2006  simonb Sync with head.
 1.17.4.1  09-Sep-2006  rpaulo sync with head
 1.18.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.20.2.1  13-Mar-2007  ad Sync with head.
 1.21.38.1  02-Jun-2008  mjf Sync with HEAD.
 1.22.6.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.22.4.1  16-May-2008  yamt sync with head.
 1.22.2.1  18-May-2008  yamt sync with head.
 1.24.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.24.2.1  30-Oct-2012  yamt sync with head
 1.25.38.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed