History log of /src/sys/arch/x68k/dev/mha.c |
Revision | | Date | Author | Comments |
1.62 |
| 08-Sep-2024 |
rillig | s/effect/affect/ in a few places
|
1.61 |
| 07-Jan-2024 |
isaki | TAB/space/indent cleanup.
|
1.60 |
| 17-Dec-2023 |
andvar | Pass periph_target from xs->xs_periph, since periph is not defined.
Fixes SPC_DEBUG build option.
|
1.59 |
| 05-Dec-2023 |
andvar | s/pregress/progress/ in panic message.
|
1.58 |
| 26-May-2022 |
tsutsui | Explicitly include "ioconf.h" for struct cfdriver.
|
1.57 |
| 04-May-2022 |
andvar | fix various typos in comments and log messages.
|
1.56 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.55 |
| 24-Apr-2021 |
thorpej | branches: 1.55.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.54 |
| 26-Mar-2014 |
christos | branches: 1.54.44; kill sprintf, fix unused.
|
1.53 |
| 10-Oct-2012 |
tsutsui | branches: 1.53.2; Fix device_t/softc split botches that could be fatal. From Chuck Silvers' patch posted current-users and tech-kern: http://mail-index.netbsd.org/current-users/2012/10/09/msg021233.html
Should be pulled up to netbsd-6.
|
1.52 |
| 23-Nov-2009 |
rmind | branches: 1.52.12; 1.52.18; 1.52.22; Use lwp_getpcb() on m68k ports, clean from struct user usage.
|
1.51 |
| 18-Dec-2008 |
isaki | Sync with other m68k ports. - Remove PHYS_IODEV, PHYS_INTIODEV. These are real copy of INTIOBASE. - Define IIOV() (and IIOP()) and use it, rather than INTIO_ADDR().
|
1.50 |
| 05-Dec-2008 |
isaki | Use TAILQ_* macros.
|
1.49 |
| 29-Nov-2008 |
isaki | Split device_t/softc. Use aprint*() and device_xname(). Not tested. I don't have its hardware and no response in port-x68k.
|
1.48 |
| 13-Jun-2008 |
cegger | branches: 1.48.2; 1.48.4; use device_lookup_private to get softc
|
1.47 |
| 28-Apr-2008 |
martin | branches: 1.47.2; 1.47.4; Remove clause 3 and 4 from TNF licenses
|
1.46 |
| 17-Oct-2007 |
garbled | branches: 1.46.16; 1.46.18; 1.46.20; Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
|
1.45 |
| 12-May-2007 |
isaki | branches: 1.45.10; Clean up white spaces and tabs.
|
1.44 |
| 11-Mar-2007 |
isaki | branches: 1.44.2; 1.44.8; white space, indent and KNF.
|
1.43 |
| 04-Mar-2007 |
christos | branches: 1.43.2; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.42 |
| 08-Jan-2007 |
isaki | branches: 1.42.2; Bring back the comment which was lost at rev1.35 .
|
1.41 |
| 08-Mar-2006 |
lukem | branches: 1.41.10; Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings. Add a space between numbers and Hz unit.
|
1.40 |
| 23-Feb-2006 |
thorpej | branches: 1.40.2; 1.40.4; Use device_parent().
|
1.39 |
| 24-Dec-2005 |
perry | branches: 1.39.2; 1.39.4; 1.39.6; bare asm -> __asm
|
1.38 |
| 26-Nov-2005 |
tsutsui | Fix typo (FALLTHOUGH -> FALLTHROUGH). From Jeff Ito.
|
1.37 |
| 13-Jun-2005 |
he | branches: 1.37.2; 1.37.8; Change the signature of badaddr() and badbaddr() from taking a caddr_t to taking a volatile void*. This gets rid of a number of casts to make this compile under -Wcast-qual. Add some volatiles and consts in other places to make this build under -Wcast-qual. Also rename a few variables to make this build under -Wshadow. Also get rid of duplicated declarations of badaddr() and badbaddr() in machdep.c, they're already there from <machine/cpu.h>.
|
1.36 |
| 21-Feb-2005 |
thorpej | Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name everything "scsi_*", since we really are talking about the SCSI command set, ATAPI transport not withstanding. Improve the names of many structures, and prepend "SCSI_" onto all SCSI command opcodes. Place items described by the SCSI Primary Commands document into scsi_spc.h.
|
1.35 |
| 18-Jan-2005 |
chs | branches: 1.35.2; de-__P, remove register, ansify.
|
1.34 |
| 15-Jul-2003 |
lukem | branches: 1.34.8; rcsid
|
1.33 |
| 03-May-2003 |
wiz | branches: 1.33.2; DMA, not dma nor Dma.
|
1.32 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.31 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.30 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.29 |
| 30-May-2002 |
thorpej | Statements must follow labels.
|
1.28 |
| 05-Apr-2002 |
bouyer | branches: 1.28.2; Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers to convert xs->timeout to callout() parameter.
|
1.27 |
| 27-Dec-2001 |
wiz | bcopy/bcmp/bzero -> memcpy/memcmp/memset
|
1.26 |
| 19-Dec-2001 |
minoura | Implement bus_dmamap_sync properly. dma_cachectl is now used only for DMAC array chain.
|
1.25 |
| 04-Dec-2001 |
minoura | Ooops, previous commit removed an important line unintentionally.
|
1.24 |
| 25-Nov-2001 |
minoura | Remove unused variables. Correct printf format strings.
|
1.23 |
| 04-Nov-2001 |
tsutsui | branches: 1.23.2; Use common macro to check message length.
|
1.22 |
| 25-Apr-2001 |
bouyer | branches: 1.22.2; 1.22.6; 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.21 |
| 16-Jun-2000 |
minoura | branches: 1.21.4; Print newline while attach.
|
1.20 |
| 30-Apr-2000 |
minoura | branches: 1.20.2; Revert 1.18 change. Hopefully this is a temporary fix; something might be missing in the SCSI negotiation.
|
1.19 |
| 23-Mar-2000 |
thorpej | New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
1.18 |
| 18-Nov-1999 |
minoura | Do not reset SCSI bus.
|
1.17 |
| 30-Sep-1999 |
thorpej | branches: 1.17.2; 1.17.8; Update for SCSIPI changes.
|
1.16 |
| 18-Apr-1999 |
minoura | Do not memcpy to the bouncebuffer in datain.
|
1.15 |
| 24-Mar-1999 |
minoura | branches: 1.15.2; Shut up gcc -Wall.
|
1.14 |
| 22-Mar-1999 |
minoura | Use bus_dma(9) for DMA bouncing. The code is dirty. It should be rewritten in the future.
|
1.13 |
| 16-Mar-1999 |
minoura | Merged minoura_x68k_bus_h branch.
|
1.12 |
| 07-Feb-1999 |
minoura | Issue SCSI reset on initialize. Clean unused mha_reset.
|
1.11 |
| 05-Dec-1998 |
mjacob | branches: 1.11.4; Update HBAs to incorporate the new max_lun property.
|
1.10 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.9 |
| 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.8 |
| 09-Sep-1998 |
minoura | Make device probe/attach sessions to be executed at splhigh. mha driver used interrupt driven I/O.
|
1.7 |
| 22-Aug-1998 |
minoura | Eliminated vm_offset_t and vm_size_t.
|
1.6 |
| 04-Aug-1998 |
minoura | __BROKEN_INDIRECT_CONFIG fixes.
|
1.5 |
| 04-Jul-1998 |
jonathan | defopt DDB.
|
1.4 |
| 30-Jun-1998 |
msaitoh | sync with -current after a long silence
|
1.3 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.2 |
| 19-Oct-1997 |
oki | branches: 1.2.2; Test device is configured in interrput handler.
|
1.1 |
| 19-Oct-1997 |
oki | Support of MK-HA1 Mach-2 SCSI adaptor.
|
1.2.2.1 |
| 13-Oct-1998 |
cgd | pull up rev 1.4 from trunk (via patch). (minoura)
|
1.11.4.4 |
| 14-Mar-1999 |
minoura | Sync.
|
1.11.4.3 |
| 14-Mar-1999 |
minoura | scsirom driver to probe CZ-6BS1-clone and Mach-2 SCSI host adaptor board itself. Modifications to spc and mha drivers. NOTE: mha is not fully bus.h'fied.
|
1.11.4.2 |
| 30-Jan-1999 |
minoura | Added DMAC driver.
|
1.11.4.1 |
| 23-Dec-1998 |
minoura | First import of bus_space implementation for x68k port.
|
1.15.2.1 |
| 19-Apr-1999 |
cjs | branches: 1.15.2.1.2; Pull up to HEAD 1.16, per MINOURA Makoto <minoura@netbsd.org>.
|
1.15.2.1.2.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.17.8.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.17.2.3 |
| 29-Mar-2001 |
bouyer | Test-compile on i386
|
1.17.2.2 |
| 27-Mar-2001 |
bouyer | Convert to thorpej_scsipi (untested).
|
1.17.2.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.20.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.21.4.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.22.6.1 |
| 12-Nov-2001 |
thorpej | Sync the thorpej-mips-cache branch with -current.
|
1.22.2.3 |
| 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.22.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.22.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.23.2.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.23.2.4 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.23.2.3 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.23.2.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.23.2.1 |
| 04-Nov-2001 |
nathanw | file mha.c was added on branch nathanw_sa on 2002-01-08 00:28:40 +0000
|
1.28.2.1 |
| 15-Jul-2002 |
gehenna | catch up with -current.
|
1.33.2.7 |
| 11-Dec-2005 |
christos | Sync with head.
|
1.33.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.33.2.5 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.33.2.4 |
| 24-Jan-2005 |
skrll | Sync with HEAD.
|
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.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.35.2.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.37.8.1 |
| 29-Nov-2005 |
yamt | sync with head.
|
1.37.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.37.2.2 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.37.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.39.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.39.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.39.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.40.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.40.2.1 |
| 13-Mar-2006 |
yamt | sync with head.
|
1.41.10.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.42.2.2 |
| 17-May-2007 |
yamt | sync with head.
|
1.42.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.43.2.2 |
| 27-May-2007 |
ad | Sync with head.
|
1.43.2.1 |
| 13-Mar-2007 |
ad | Sync with head.
|
1.44.8.1 |
| 22-May-2007 |
matt | Update to HEAD.
|
1.44.2.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.45.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.46.20.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.46.20.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.46.20.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.46.18.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.46.18.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.46.16.3 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.46.16.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.46.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.47.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.47.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.48.4.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.48.2.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.52.22.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.52.22.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.52.18.1 |
| 17-Oct-2012 |
riz | Pull up following revision(s) (requested by tsutsui in ticket #601): sys/arch/x68k/dev/mha.c: revision 1.53 Fix device_t/softc split botches that could be fatal. From Chuck Silvers' patch posted current-users and tech-kern: http://mail-index.netbsd.org/current-users/2012/10/09/msg021233.html Should be pulled up to netbsd-6.
|
1.52.12.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.52.12.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.53.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.54.44.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.55.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|