History log of /src/sys/arch/mvme68k/dev/wdsc.c |
Revision | | Date | Author | Comments |
1.35 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.34 |
| 24-Apr-2021 |
thorpej | branches: 1.34.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.33 |
| 12-Nov-2019 |
msaitoh | branches: 1.33.10; Add missing initialization of sc_dev.
|
1.32 |
| 27-Oct-2012 |
chs | branches: 1.32.30; 1.32.38; 1.32.42; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.31 |
| 28-Apr-2008 |
martin | branches: 1.31.34; 1.31.44; Remove clause 3 and 4 from TNF licenses
|
1.30 |
| 12-Jan-2008 |
tsutsui | branches: 1.30.6; 1.30.8; 1.30.10; Misc cleanup: - KNF, ANSIfy, remove __P() - use __func__ to print function names - use __arraycount() - include "ioconf.h" for struct cfdriver - u_intNN_t -> uintNN_t - wrap long lines etc.
|
1.29 |
| 11-Dec-2005 |
christos | branches: 1.29.50; 1.29.56; 1.29.64; merge ktrace-lwp.
|
1.28 |
| 28-Mar-2004 |
scw | branches: 1.28.16; Assign my license to TNF.
|
1.27 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.26 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.25 |
| 14-May-2003 |
wiz | branches: 1.25.2; Spell everything with an r.
|
1.24 |
| 03-May-2003 |
wiz | DMA, not dma nor Dma.
|
1.23 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.22 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.21 |
| 31-May-2001 |
scw | branches: 1.21.2; 1.21.8; Deprecate intrcnt/intrnames in favour of the generic evcnt(9) interface.
|
1.20 |
| 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.19 |
| 12-Aug-2000 |
scw | branches: 1.19.2; G/C an unused variable.
|
1.18 |
| 25-Jul-2000 |
scw | Nuke __BROKEN_DK_ESTABLISH, and add __HAVE_DEVICE_REGISTER.
|
1.17 |
| 18-Mar-2000 |
scw | Merge 'scw_mvme68k_bus_space' branch with the trunk. These changes add support for:
o The MI VMEbus framework on both MVME147 and MVME167. o Enhancements to the existing MD bus_space(9) implementation. o Most of the bus_dma(9) API.
|
1.16 |
| 26-Feb-2000 |
scw | branches: 1.16.2; Need <machine/cpu.h> for IIOV definition.
|
1.15 |
| 20-Feb-1999 |
scw | branches: 1.15.8; Add support for the VMEchip2 and the ncr53c710 SCSI IOP. VMEchip2 support work is ongoing. SCSI is complete.
|
1.14 |
| 05-Dec-1998 |
mjacob | Update HBAs to incorporate the new max_lun property.
|
1.13 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.12 |
| 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.11 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.10 |
| 27-Aug-1997 |
bouyer | 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.9 |
| 19-Mar-1997 |
gwr | branches: 1.9.2; 1.9.4; Change arg two of all the match functions back to struct cfdata now that __BROKEN_INDIRECT_CONFIG has been removed.
|
1.8 |
| 10-Dec-1996 |
thorpej | Fill in sc_link.max_target
|
1.7 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.6 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.5 |
| 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.4 |
| 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.3 |
| 29-May-1996 |
chuck | note if we are the boot device (for fixing generic boot)
|
1.2 |
| 26-Apr-1996 |
chuck | branches: 1.2.4; - zs: switch to MI driver - clock, le, pcc, wdsc, zs: convert to new autoconfig scheme - vme: add vme support
Contributed by: Jason R. Thorpe <thorpej@og.org>
|
1.1 |
| 18-Apr-1996 |
chuck | new driver: SCSI for VME147 contributed by: Steve Woodford <steve@mctavish.demon.co.uk>
this driver is based on the amiga sbic/33C93 driver. Steve has cleaned it up and fixed lots of bugs. Note that the original driver used features which require at least a WD33C93A (the vme147 has the original WD33C93 chip <no 'A' suffix>). Steve has also written the DMA routines for the 147 to get things really going. Hardware scatter-gather DMA and sync. SCSI are not supported (yet). tested on several disk drives and a tape drive. CD-ROM untested, but should work.
|
1.2.4.1 |
| 29-May-1996 |
chuck | import generic boot bug fix
|
1.9.4.1 |
| 27-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.9.2.1 |
| 01-Jul-1997 |
bouyer | Updates for new scsipi subsystem. Actally known to work on i386 and sparc.
|
1.15.8.2 |
| 29-Mar-2001 |
bouyer | Port to thorpej_scsipi.
|
1.15.8.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.
|
1.16.2.1 |
| 11-Mar-2000 |
scw | Checkpoint of development of the following features of mvme68k:
. Preliminary support for the MI VMEbus framework. . Full bus_space* and "mostly-there" bus_dma* support.
At this time, MI VMEbus drivers may well work 'as is' on an MVME147 board. Work to get the MVME167 to this stage is ongoing.
Testers will be required at some point as I have no VMEbus boards which have existing MI drivers! (Although I am able to test things in a limited fashion using a noddy driver and a VMEbus RAM card).
TODO:
. Expunge all remaining use of IIOV() and freinds. . Flag the 'boot device' using bus_space_tag_t and offset. . Add a 24bit address constraint to bus_dmamem_alloc() (for le/ie) . VMEChip2 support on MVME167/MVME177 . Support the mvme68k boards in VMEbus slave mode. . Anything else I can thing of, besides having another beer. ;-)
|
1.19.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.21.8.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.21.8.1 |
| 31-May-2001 |
nathanw | file wdsc.c was added on branch nathanw_sa on 2002-10-18 02:38:58 +0000
|
1.21.2.1 |
| 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.25.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.25.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.25.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.28.16.1 |
| 21-Jan-2008 |
yamt | sync with head
|
1.29.64.1 |
| 19-Jan-2008 |
bouyer | Sync with HEAD
|
1.29.56.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.29.50.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.30.10.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.30.8.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.30.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.31.44.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.31.34.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.32.42.1 |
| 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #425):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.32.38.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.32.30.1 |
| 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #1439):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.33.10.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.34.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|