History log of /src/sys/arch/newsmips/dev/sc_wrap.c |
Revision | | Date | Author | Comments |
1.34 |
| 20-Dec-2023 |
thorpej | Remove unnecessary <sys/malloc.h>.
|
1.33 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.32 |
| 24-Apr-2021 |
thorpej | branches: 1.32.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.31 |
| 09-Apr-2008 |
tsutsui | branches: 1.31.106; Split device_t/softc, with misc cleanup.
|
1.30 |
| 04-Mar-2007 |
christos | branches: 1.30.40; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.29 |
| 18-Feb-2007 |
tsutsui | Add a missing break, which causes bogus debug messages on check condition during device probe.
|
1.28 |
| 11-Dec-2005 |
christos | branches: 1.28.24; 1.28.26; merge ktrace-lwp.
|
1.27 |
| 06-Feb-2005 |
tsutsui | branches: 1.27.6; Misc cleanup: - ANSI function decls - remove __P() - u_intNN_t -> uintNN_t - remove register decls - bcopy -> memcpy, strcpy - bzero -> memset - bcmp -> memcmp - use malloc(9) with M_ZERO - some KNF etc.
|
1.26 |
| 18-Sep-2004 |
mycroft | branches: 1.26.4; 1.26.6; We don't need to handle the "cold" flag here.
|
1.25 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.24 |
| 10-May-2003 |
tsutsui | branches: 1.24.2; - Prepare common structures for interrupt handler and share them between Hyper-bus and AP-bus. - Use LIST rather than static array for interrupt dispatcher.
|
1.23 |
| 09-May-2003 |
tsutsui | - Define and use struct hb_attach_args rather than struct confargs for hb devices. - Move declarations for hb functions and macros to dev/hbvar.h. - Define and use hb_badaddr() macro for hb devices. - Declare news3400_badaddr() in machine/cpu.h rather than machine/autoconf.h. - Remove unused stuff from machine/autoconf.h.
|
1.22 |
| 03-May-2003 |
wiz | DMA, not dma nor Dma.
|
1.21 |
| 02-Apr-2003 |
thorpej | Use PAGE_SIZE rather than NBPG.
|
1.20 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.19 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.18 |
| 14-Nov-2001 |
thorpej | branches: 1.18.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.17 |
| 25-Apr-2001 |
bouyer | branches: 1.17.2; 1.17.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.16 |
| 03-Dec-2000 |
matt | branches: 1.16.2; Make this stuff compile with -wstrict-prototpes -wmissing-prototypes. More use of prototypes inside includes should be done.
|
1.15 |
| 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.14 |
| 18-Dec-1999 |
tsubai | Move dma_intr() to here.
|
1.13 |
| 17-Dec-1999 |
tsubai | Add interrupt level locator and use it instead of hard-coding.
|
1.12 |
| 17-Dec-1999 |
tsubai | Use hb_intr_establish().
|
1.11 |
| 30-Sep-1999 |
thorpej | branches: 1.11.2; 1.11.8; Update for SCSIPI changes.
|
1.10 |
| 17-Sep-1999 |
thorpej | Centralize the declaration and clearing of `cold'.
|
1.9 |
| 05-Dec-1998 |
mjacob | Update HBAs to incorporate the new max_lun property.
|
1.8 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.7 |
| 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.6 |
| 21-Aug-1998 |
tsubai | Change vm_offset_t to [pv]addr_t.
|
1.5 |
| 21-Aug-1998 |
tsubai | Correctly initialize scb struct.
|
1.4 |
| 10-Jun-1998 |
tsubai | Move static variables to struct softc. Remove unused struct members.
|
1.3 |
| 01-Jun-1998 |
tsubai | Change "extern var;" --> "extern int var;" and so on. (for egcs -Wall)
|
1.2 |
| 04-Mar-1998 |
thorpej | Rename NetBSD/news to NetBSD/newsmips.
|
1.1 |
| 18-Feb-1998 |
tsubai | Initial import of NetBSD/news.
|
1.11.8.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.11.2.4 |
| 29-Mar-2001 |
bouyer | Pass compile-test on i386
|
1.11.2.3 |
| 22-Jan-2001 |
bouyer | first cut at converting to thorpej_scsipi
|
1.11.2.2 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.11.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.16.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.17.6.1 |
| 13-Nov-2001 |
thorpej | Make the newsmips port compile with the thorpej-mips-cache branch.
|
1.17.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.17.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.18.2.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.18.2.1 |
| 14-Nov-2001 |
nathanw | file sc_wrap.c was added on branch nathanw_sa on 2002-10-18 02:39:12 +0000
|
1.24.2.4 |
| 06-Feb-2005 |
skrll | Sync with HEAD.
|
1.24.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.24.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.24.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.26.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.26.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.27.6.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.27.6.1 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.28.26.2 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.28.26.1 |
| 27-Feb-2007 |
yamt | - sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
|
1.28.24.1 |
| 24-Feb-2007 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #461): sys/arch/newsmips/dev/sc_wrap.c: revision 1.29 Add a missing break, which causes bogus debug messages on check condition during device probe.
|
1.30.40.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.31.106.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.32.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|