History log of /src/sys/arch/hp300/dev/nhpib.c |
Revision | | Date | Author | Comments |
1.44 |
| 16-Jan-2024 |
thorpej | Several years ago, the interrupt priority levels for devices were "flattened" such that IPL_BIO, IPL_NET, and IPL_TTY (logical interrupt priority levels) became aliases of IPL_VM (the logical interrupt priority level above which memory allocation is not allowed). Unfortuantely, this meant that any use of these logical interrupt priority levels to differentiate between different interrupt service routines at the same auto-vectored interrupt level was pointless... "when everyone is special, no one is".
Before this flattening happened, these distinct logical interrupt priority levels levels were dynamically mapped to physical auto-vectored interrupt levels based on which types of devices registered themselves at which auto- vectored level. Now, splbio(), splnet(), etc. are all equivalent to splvm(), which effectively blocks all device interrupts.
Switch to using the ISRPRI_* values provided by the common m68k interrupt dispatch code, which allows interrupt handlers for devices that are more latency-sensitive to be sorted earlier in the list of handlers at a given auto-vectored interrupt level, as was originally intended.
|
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 |
| 24-Mar-2014 |
christos | branches: 1.41.44; - remove unused - use cpu_{g,s}etmodel
|
1.40 |
| 28-Apr-2008 |
martin | branches: 1.40.34; 1.40.44; 1.40.50; Remove clause 3 and 4 from TNF licenses
|
1.39 |
| 29-Mar-2008 |
tsutsui | branches: 1.39.2; 1.39.4; Split device_t/softc, and misc cosmetic changes.
|
1.38 |
| 05-Dec-2007 |
tsutsui | branches: 1.38.12; Use queue(3) macro.
|
1.37 |
| 17-Oct-2007 |
garbled | branches: 1.37.2; 1.37.4; 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.36 |
| 12-Jul-2007 |
he | branches: 1.36.8; 1.36.10; Adapt to the new signature of callout_init().
|
1.35 |
| 21-Jul-2006 |
tsutsui | branches: 1.35.14; 1.35.22; Some KNF.
|
1.34 |
| 19-Mar-2006 |
tsutsui | TAB/space cleanup.
|
1.33 |
| 23-Feb-2006 |
thorpej | branches: 1.33.2; 1.33.4; 1.33.6; Use device_parent().
|
1.32 |
| 11-Dec-2005 |
christos | branches: 1.32.2; 1.32.4; 1.32.6; merge ktrace-lwp.
|
1.31 |
| 28-Aug-2004 |
thorpej | branches: 1.31.12; Use ANSI function decls, static, and const.
|
1.30 |
| 17-Nov-2003 |
tsutsui | TAB/space cleanup.
|
1.29 |
| 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.28 |
| 05-Jul-2003 |
tsutsui | Some cosmetics on bus_space_tag_t initialization.
|
1.27 |
| 24-May-2003 |
gmcgarry | branches: 1.27.2; Clean-up the DIO bus. Includes two main changes:
1) Pass address and ipl locators at attachment; 2) Remove hack which made the internal HP-IB controller look like a DIO device.
The hack to allow the nhpib driver to support internal and DIO controllers appears to be a leftover from 4.3BD where it was not possible to have a driver attach to different busses. NetBSD has supported bus-dependent attachments for a long time.
|
1.26 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.25 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.24 |
| 15-Mar-2002 |
gmcgarry | Add RCSIDs.
|
1.23 |
| 25-Mar-2000 |
frueauf | branches: 1.23.8; 1.23.12; Fix typo: calllout_reset -> callout_reset.
|
1.22 |
| 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.21 |
| 17-Sep-1999 |
thorpej | branches: 1.21.2; Centralize the declaration and clearing of `cold'.
|
1.20 |
| 01-Jul-1998 |
thorpej | Dont' check sysflags here... just look for NHPIB or IHPIB device IDs.
|
1.19 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.18 |
| 04-Oct-1997 |
thorpej | Copyright assigned to The NetBSD Foundation.
|
1.17 |
| 05-May-1997 |
thorpej | branches: 1.17.4; Use dio_intr_establish().
|
1.16 |
| 14-Apr-1997 |
thorpej | Update for interrupt function and header name changes.
|
1.15 |
| 31-Mar-1997 |
scottr | Add prototypes, and make this compile with -Wall. Remove register modifier from all declarations.
|
1.14 |
| 30-Jan-1997 |
thorpej | - Convert these drivers to new-style autoconfiguration. Old-style configuration is no longer supported. - Use a much more obvious HP-IB job queueing scheme.
|
1.13 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.12 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.11 |
| 18-May-1996 |
thorpej | Back most (not all) of the previous delay-related changes now that delay is calibrated properly.
|
1.10 |
| 17-May-1996 |
thorpej | Change "DELAY(1)" to "DELAY(5)". This is basically equivalent to how the old implementation of DELAY() behaved with small values.
|
1.9 |
| 14-Feb-1996 |
thorpej | All interrupt routines (except the HIL; don't ask) now take a pointer to a softc, rather than a unit number. Add a "dq_softc" member to struct devqueue; this is a temporary measure until the dma/controller/device callback spaghetti is untangled.
YAY! No more need for dcafastservice!
HIL: squish instances of "(void) splhil()" and "(void) spl0();".
|
1.8 |
| 02-Dec-1995 |
thorpej | Use a "match/attach" rather than "init" scheme for probing devices. This is a step towards getting the drivers ready for new config.
|
1.7 |
| 19-Nov-1995 |
thorpej | Do an indirect driver a little more like an indirect driver would like to be done. Set up a structure filled with function pointers in the controller-specific probe routines, and jump through them, instead of if()'ing our way though each operation.
Be a little more discriptive; print out the controller type found during the probe in a way that's somewhat meaningful.
|
1.6 |
| 07-Jan-1995 |
mycroft | Various diffs from Mike Hibler; necessary for mt driver.
|
1.5 |
| 26-Oct-1994 |
cgd | new RCS ID format.
|
1.4 |
| 23-May-1994 |
mycroft | Merge with 4.4-Lite.
|
1.3 |
| 05-May-1994 |
mycroft | Most of the changes needed to make this continue to run.
|
1.2 |
| 22-May-1993 |
cgd | add rcsids to everything and clean up headers
|
1.1 |
| 13-May-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 13-May-1993 |
cgd | add hp300 kernel files. generic kernel files might need some help...
|
1.17.4.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.21.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.23.12.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.23.12.1 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.23.8.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.23.8.1 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.27.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.27.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.27.2.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.27.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.31.12.4 |
| 07-Dec-2007 |
yamt | sync with head
|
1.31.12.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.31.12.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.31.12.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.32.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.32.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.32.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.33.6.1 |
| 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.33.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.33.2.2 |
| 11-Aug-2006 |
yamt | sync with head
|
1.33.2.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.35.22.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.35.14.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.36.10.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.36.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.36.8.1 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.37.4.1 |
| 08-Dec-2007 |
ad | Sync with head.
|
1.37.2.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.38.12.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.38.12.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.39.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.39.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.40.50.1 |
| 18-May-2014 |
rmind | sync with head
|
1.40.44.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.40.34.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.41.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.42.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|