History log of /src/sys/arch/macppc/dev/mesh.c |
Revision | | Date | Author | Comments |
1.44 |
| 20-Dec-2023 |
thorpej | Remove unnecessary <sys/malloc.h>.
|
1.43 |
| 24-Sep-2023 |
andvar | define i variable in for loop. mesh_msgin() doesn't have one defined in the function scope.
fixes MESH_DEBUG enabled build for macppc.
|
1.42 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.41 |
| 24-Apr-2021 |
thorpej | branches: 1.41.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.40 |
| 05-Mar-2021 |
rin | branches: 1.40.2; Convert to intr_establish_xname().
|
1.39 |
| 31-Mar-2017 |
msaitoh | branches: 1.39.26; Remove extra 0x. This bug was added when replacing bitmask_snprintf(9) with snprintb(3) (in between NetBSD 5 and 6). Old bitmask_snprint(9) didn't add 0x" automatically for hexadecimal value, so old code used it with "0x%s".
|
1.38 |
| 15-Feb-2017 |
tsutsui | Fix an inverted logic.
|
1.37 |
| 15-Jul-2016 |
macallan | branches: 1.37.2; adjust to dbdma changes
|
1.36 |
| 14-Mar-2014 |
mrg | branches: 1.36.6; 1.36.10; remove various set-but-unused variables.
|
1.35 |
| 30-Jun-2011 |
matt | branches: 1.35.2; 1.35.12; 1.35.16; Modify mapiodev to take a third argument indicating whether the space should be prefetchable (true) or not (false).
|
1.34 |
| 26-Sep-2009 |
tsutsui | Make local functions static.
|
1.33 |
| 26-Sep-2009 |
tsutsui | Replace shutdownhook_establish(9) with pmf_device_register1(9). Tested on Apus2000.
|
1.32 |
| 26-Sep-2009 |
tsutsui | Fix a botch on device_t/softc split: Don't forget to set sc->sc_dev.
|
1.31 |
| 15-May-2009 |
tsutsui | Split device_t/softc. Tested on Apus2000.
|
1.30 |
| 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.29 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.28 |
| 14-Mar-2009 |
dsl | Remove all the __P() from sys (excluding sys/dist) Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
|
1.27 |
| 16-Dec-2008 |
christos | branches: 1.27.2; replace bitmask_snprintf(9) with snprintb(3)
|
1.26 |
| 17-Oct-2007 |
garbled | branches: 1.26.16; 1.26.20; 1.26.28; 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.25 |
| 29-Mar-2006 |
thorpej | branches: 1.25.18; 1.25.26; 1.25.36; 1.25.38; 1.25.40; 1.25.42; Use device_cfdata().
|
1.24 |
| 24-Dec-2005 |
perry | branches: 1.24.4; 1.24.6; 1.24.8; 1.24.10; 1.24.12; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.23 |
| 17-Dec-2005 |
macallan | return SCSI_CHECK in xs->status instead of xs->xs_status This fixes a whole bunch of weird errors that plague(d) mesh forever, like - failure to spin up drives automatically - occasional bogus 'drive offline' messages - LONG delays when trying to use a ZIP drive
It will probably expose more problems, we'll see.
|
1.22 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.21 |
| 09-Dec-2004 |
briggs | branches: 1.21.8; 1.21.10; Several changes from Michael Lorenz. Adapted from PR port-macppc/27680. 1. Reset SCSI bus & MESH on reboot to keep OF happy. 2. Tweak interrupt handler to clear interrupt register again if we get a CMDDONE interrupt with DMA active and a 0 fifocnt. It's not clear why this is necessary, but is well documented in some other open source drivers. This enables synchronous mode to work. 3. Dump a little more information if we do get a timeout.
|
1.20 |
| 07-Dec-2004 |
thorpej | Use "struct scsipi_command" in internal command structures so that we have enough space for 16-byte CDBs.
|
1.19 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.18 |
| 03-May-2003 |
wiz | branches: 1.18.2; DMA, not dma nor Dma.
|
1.17 |
| 02-Apr-2003 |
thorpej | Use PAGE_SIZE rather than NBPG.
|
1.16 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.15 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.14 |
| 05-Apr-2002 |
bouyer | Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers to convert xs->timeout to callout() parameter.
|
1.13 |
| 04-Nov-2001 |
tsutsui | Use common macro to check message length.
|
1.12 |
| 22-Jul-2001 |
wiz | branches: 1.12.4; 1.12.6; bcopy -> memcpy, bzero -> memset, bcmp -> memcmp. Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
|
1.11 |
| 08-Jun-2001 |
matt | branches: 1.11.2; Make macppc compile by default with -Wall -Wmissing-prototype in addition to its currently enabled warnings. For the lack of a better place, most global function prototype wound up in <machine/autoconf.h> unless there was a better place for them. ofb_* structs renamed to offb_* to avoid conflict with ofb_softc in <dev/ofw/openfirm.h>
|
1.10 |
| 26-Apr-2001 |
tsubai | Remove spaces at EOL.
|
1.9 |
| 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.8 |
| 24-Dec-2000 |
wiz | branches: 1.8.2; Honour SCSI command timeout -- fixes problems with SCSI commands that take longer than 10s and were falling into a timeout, e.g. fixating.
|
1.7 |
| 31-Oct-2000 |
tsubai | Match "chrp,mesh0".
|
1.6 |
| 23-Oct-2000 |
tsubai | Fix Conner CFP1080 problem (pr 7612) and add debugging messages.
|
1.5 |
| 29-Jun-2000 |
mrg | remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.4 |
| 23-Mar-2000 |
thorpej | branches: 1.4.4; 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.3 |
| 28-Dec-1999 |
tsubai | Remove two panic conditions. XXX untested.
|
1.2 |
| 30-Sep-1999 |
thorpej | branches: 1.2.2; Update for SCSIPI changes.
|
1.1 |
| 19-Feb-1999 |
tsubai | branches: 1.1.2; First step of MESH SCSI support. XXX no disconnect/reselect. XXX sync transfer is very unstable.
|
1.1.2.3 |
| 23-Feb-2000 |
he | Pull up revision 1.3 (via patch, requested by tsubai): Fix the ``panic: mesh: FIFO != 0'' on some models.
|
1.1.2.2 |
| 23-Feb-2000 |
he | Revert pull-up of revision 1.3 (requested by he): Causes compile error. Awaiting patch.
|
1.1.2.1 |
| 22-Feb-2000 |
he | Pull up revision 1.3 (requested by tsubai): Fix the ``panic: mesh: FIFO != 0'' on some models.
|
1.2.2.6 |
| 29-Mar-2001 |
bouyer | Ops, don't use uninitialised pointer. mesh now works, thanks to Emmanuel Dreyfus for testing !
|
1.2.2.5 |
| 29-Mar-2001 |
bouyer | Pass compile-test on i386
|
1.2.2.4 |
| 27-Mar-2001 |
bouyer | Convert to thorpej_scsipi (untested).
|
1.2.2.3 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.2.2.2 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.2.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.4.4.2 |
| 24-Jan-2002 |
he | Pull up revision 1.8 (requested by briggs): Honour SCSI command timeout. This fixes a problem with some SCSI commands which take longer than 10s to complete, and were falling into a timeout, e.g. CD-R fixating.
|
1.4.4.1 |
| 26-Feb-2001 |
he | Pull up revisions 1.6-1.7 (requested by briggs): Match "chrp,mesh0", and fix Conner CFP1080 problem (PR#7612), and add debugging messages.
|
1.8.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.11.2.4 |
| 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.11.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.11.2.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.11.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.12.6.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.12.6.2 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.12.6.1 |
| 22-Jul-2001 |
nathanw | file mesh.c was added on branch nathanw_sa on 2002-04-17 00:03:42 +0000
|
1.12.4.1 |
| 12-Nov-2001 |
thorpej | Sync the thorpej-mips-cache branch with -current.
|
1.18.2.4 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.18.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.18.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.18.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.21.10.2 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.21.10.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.21.8.1 |
| 18-Dec-2005 |
tron | Pull up following revision(s) (requested by macallan in ticket #1064): sys/arch/macppc/dev/mesh.c: revision 1.23 return SCSI_CHECK in xs->status instead of xs->xs_status This fixes a whole bunch of weird errors that plague(d) mesh forever, like - failure to spin up drives automatically - occasional bogus 'drive offline' messages - LONG delays when trying to use a ZIP drive It will probably expose more problems, we'll see.
|
1.24.12.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.24.10.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.24.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.24.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.24.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.25.42.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.25.40.1 |
| 18-Oct-2007 |
yamt | sync with head.
|
1.25.38.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.25.36.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.25.26.1 |
| 11-May-2007 |
macallan | request the correct interrupt type in a couple drivers - necessary since these days we actually do something with the type argument
|
1.25.18.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.26.28.2 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.26.28.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.26.20.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.26.20.2 |
| 16-May-2009 |
yamt | sync with head
|
1.26.20.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.26.16.1 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.27.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.35.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.35.12.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.35.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.35.2.1 |
| 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.36.10.3 |
| 26-Apr-2017 |
pgoyette | Sync with HEAD
|
1.36.10.2 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.36.10.1 |
| 26-Jul-2016 |
pgoyette | Sync with HEAD
|
1.36.6.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.36.6.1 |
| 05-Oct-2016 |
skrll | Sync with HEAD
|
1.37.2.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.39.26.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.40.2.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.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|