Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/amiga/dev/gtsc.c
RevisionDateAuthorComments
 1.43  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.42  24-Apr-2021  thorpej branches: 1.42.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.41  27-Oct-2012  chs branches: 1.41.18; 1.41.28; 1.41.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.40  09-Feb-2010  phx branches: 1.40.10; 1.40.20;
Moved the macros amiga_cpu_sync() and amiga_membarrier() from amiga/device.h
to the MD include/cpu.h.
Also make sure that grf_cvreg.h includes cpu.h as it is needed by Xamiga
in xsrc/xfree/xc/programs/Xserver/hw/netbsd/amiga/s3/amigaCV.h.
 1.39  05-Feb-2010  phx branches: 1.39.2;
Added two new macros to device.h:
amiga_membarrier() enforces a reorder protection on memory read/writes.
amiga_cpu_sync() makes sure the instruction pipelines are flushed.
Both macros may be used in all amiga device drivers for compatibility with
amigappc. For the start I fixed some SCSI drivers.
cbiiisc and ahsc were tested and seem to work really fast with DMA now.
Some stability problems with amigappc remain nevertheless (spontaneous
kernel DSI traps with high CPU/SCSI load).
 1.38  13-Jun-2008  cegger use device_lookup_private to get softc
 1.37  03-Dec-2007  ad branches: 1.37.14; 1.37.16; 1.37.18; 1.37.20; 1.37.22;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.36  08-Mar-2006  lukem branches: 1.36.20; 1.36.38; 1.36.40; 1.36.46;
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.35  11-Dec-2005  christos branches: 1.35.4; 1.35.6; 1.35.8; 1.35.10;
merge ktrace-lwp.
 1.34  07-Aug-2003  agc branches: 1.34.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.33  03-May-2003  wiz branches: 1.33.2;
DMA, not dma nor Dma.
 1.32  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.31  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.30  28-Jan-2002  aymeric add __KERNEL_RCSID as suggested by Luke Mewburn
 1.29  26-Jan-2002  aymeric - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.28  25-Apr-2001  bouyer branches: 1.28.2; 1.28.8;
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.27  05-Dec-1998  mjacob branches: 1.27.10; 1.27.22;
Update HBAs to incorporate the new max_lun property.
 1.26  19-Nov-1998  thorpej Adapt to the new scsipi_adapter interface.
 1.25  10-Oct-1998  thorpej Garbage-collect the open_target_lu and close_target_lu entry points from
struct scsipi_adapter; they were not used.

Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be
used to issue ioctl commands to the host adapters.

Inspired by PR #6090, from Matt Jacob.
 1.24  21-Aug-1998  is Prepare for support of Apollo-cpuboard-reworked A3000 mainboard SCSI.
 1.23  12-Jan-1998  thorpej Adjust for changes to config.
 1.22  27-Aug-1997  bouyer branches: 1.22.4;
Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
 1.21  21-Jan-1997  thorpej branches: 1.21.6; 1.21.8;
Initialize max_target in the SCSI link.
 1.20  23-Dec-1996  veego Get rid of __BROKEN_INDIRECT_CONFIG.
 1.19  13-Oct-1996  christos backout previous kprintf change
 1.18  10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.17  28-Aug-1996  cgd (1) set scsi_link channel to either the appropriate channel (if a
multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a
single-channel driver.
(2) use scsiprint() rather than a locally-defined autoconfig print
function, and kill any locally-defined print function.
 1.16  27-Aug-1996  cgd change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
 1.15  21-Apr-1996  veego - Cleanup for -Wall and -Wstrict-prototypes
- Added support for multiple floppy drives
- CyberVision64:
- has now a real console mode
- another bugfix for boards with the new S3 chip
- Ariadne:
- fixed crashes with aeput (mbuf failure)
 1.14  17-Mar-1996  thorpej New device attachment scheme:

- split softc size and match/attach out from cfdriver into
a new struct cfattach.

- new "attach" directive for files.*. May specify the name of
the cfattach structure, so that devices may be easily attached
to parents with different autoconfiguration semantics.
 1.13  04-Sep-1995  chopps sbic and board changes from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.12  18-Aug-1995  chopps SCSI disconnects: siop from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
and sbic from "Eduardo E. Horvath eeh@btr.com" <eeh@btr.btr.com>

Other cleanup (remove cpu040) and enabling IVS A500 support
from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.11  12-Feb-1995  chopps Many changes from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
Now use amiga HW for soft interrupts, non-contig options (2 or many chunks),
interrupt handler lists, 4066 ethernet, 1291 scsi, option to defer level 6
interrupts to level 4 (deal with icky built-in serial port)
 1.10  05-Jan-1995  chopps catchup with scsi changes from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.9  28-Dec-1994  chopps consolidate the zbusses. le support for multiple tx buffs and full use of 32k
RAM. AGA dbl PAL mode added for console. Many changes to siop--most not
yet done. All from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
 1.8  01-Dec-1994  chopps bring up to current. change sun to sunos. handle changes in device
open params and autoconf match function params.
 1.7  26-Oct-1994  cgd new RCS ID format.
 1.6  06-Oct-1994  chopps branches: 1.6.2;
fix a thinko in gvp diag. Add 4091 driver from Michael Hitch
(osymh@gemini.oscs.montana.edu)
 1.5  16-Jun-1994  chopps fix boot diag output.
 1.4  25-May-1994  chopps add beginning of support for series I controllers doesn't work yet.
 1.3  16-May-1994  chopps move mysterious dk_establish() stub routine from gtsc driver to disksubr.c
 1.2  11-May-1994  chopps general cleanup including boot diag messages.
 1.1  08-May-1994  chopps resistance is futile, you will be assimilated.
amiga goes: config.new *and* /sys/scsi.
clock code coerced into a single .c file adding an accurate usec delay().
disklabel.c updated to DTRT, code to write RDB's to be added soon.
sbic (old scsi) converted over to new scsi and config this covers about
90% of users. Other drivers soon.
 1.6.2.2  06-Oct-1994  chopps fix a thinko in gvp diag. Add 4091 driver from Michael Hitch
(osymh@gemini.oscs.montana.edu)
 1.6.2.1  06-Oct-1994  chopps file gtsc.c was added on branch netbsd-1-0 on 1994-10-06 19:06:42 +0000
 1.21.8.1  27-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.21.6.1  01-Jul-1997  bouyer Updates for new scsipi subsystem. Actally known to work on i386 and sparc.
 1.22.4.1  19-Jan-1999  cgd pull up rev 1.24 from trunk (is)
 1.27.22.1  21-Jun-2001  nathanw Catch up to -current.
 1.27.10.2  29-Mar-2001  bouyer Make these pass a compile test on i386.
 1.27.10.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

I updated the amiga SCSI drivers, but completely untested yet (may not even
compile)
 1.28.8.3  18-Oct-2002  nathanw Catch up to -current.
 1.28.8.2  28-Feb-2002  nathanw Catch up to -current.
 1.28.8.1  25-Apr-2001  nathanw file gtsc.c was added on branch nathanw_sa on 2002-02-28 04:06:45 +0000
 1.28.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.28.2.1  11-Feb-2002  jdolecek Sync w/ -current.
 1.33.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.33.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.33.2.1  03-Aug-2004  skrll Sync with HEAD
 1.34.16.2  07-Dec-2007  yamt sync with head
 1.34.16.1  21-Jun-2006  yamt sync with head.
 1.35.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.35.8.1  13-Mar-2006  yamt sync with head.
 1.35.6.1  22-Apr-2006  simonb Sync with head.
 1.35.4.1  09-Sep-2006  rpaulo sync with head
 1.36.46.1  08-Dec-2007  mjf Sync with HEAD.
 1.36.40.1  09-Jan-2008  matt sync with HEAD
 1.36.38.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.36.20.1  03-Dec-2007  ad Sync with HEAD.
 1.37.22.1  18-Jun-2008  simonb Sync with head.
 1.37.20.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.37.18.2  11-Mar-2010  yamt sync with head
 1.37.18.1  04-May-2009  yamt sync with head.
 1.37.16.1  17-Jun-2008  yamt sync with head.
 1.37.14.1  29-Jun-2008  mjf Sync with HEAD.
 1.39.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.40.20.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.40.10.1  30-Oct-2012  yamt sync with head
 1.41.52.1  21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.41.28.1  27-Apr-2017  pgoyette Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
 1.41.18.2  20-Jul-2016  pgoyette Redo previous. Rather than separately extracting the device_t, we can
rely on sc->sc_dev when we need to call device_release().
 1.41.18.1  19-Jul-2016  pgoyette Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@
 1.42.8.1  03-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed