History log of /src/sys/arch/hp300/dev/dio.c |
Revision | | Date | Author | Comments |
1.43 |
| 16-Jan-2024 |
thorpej | Fix computation of the appropriate auto-vector interrupt level to use for the DMA controller by tracking all of the DIO devices that have "ISRPRI_BIO" interrupt handlers, and finding the highest auto-vector level among them and informing the DMA controller.
Previously, in a post-flattening world, the DMA controller was always told to interrupt at lev5, which is fine I guess although definitely not ideal, but would not work on aaaancient HP320 Rev A DMA boards. To that effect, print a warning if a Rev B DMA board ends up at ipl != 3 (we can't differentiate between a Rev A and a Rev B board).
|
1.42 |
| 16-Jan-2024 |
thorpej | Switch hp300 over to the common interrupt dispatch code.
XXX There are still some things to fix up here, but it's no worse than it was before (the problems date back to when we flattened the device interrupt levels into IPL_VM).
|
1.41 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.40 |
| 24-Apr-2021 |
thorpej | branches: 1.40.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.39 |
| 26-Mar-2014 |
christos | branches: 1.39.44; kill sprintf
|
1.38 |
| 06-Mar-2011 |
tsutsui | branches: 1.38.4; 1.38.14; 1.38.18; Remove trailing spaces.
|
1.37 |
| 28-Apr-2008 |
martin | branches: 1.37.22; 1.37.28; Remove clause 3 and 4 from TNF licenses
|
1.36 |
| 29-Mar-2008 |
tsutsui | branches: 1.36.2; 1.36.4; Split device_t/softc, and misc cosmetic changes.
|
1.35 |
| 04-Mar-2007 |
christos | branches: 1.35.40; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.34 |
| 21-Jul-2006 |
tsutsui | branches: 1.34.10; Use bus_space_map(9) and bus_space_vaddr(9) rather than iomap().
|
1.33 |
| 21-Jul-2006 |
tsutsui | Some KNF.
|
1.32 |
| 24-Dec-2005 |
perry | branches: 1.32.4; 1.32.8; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.31 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.30 |
| 26-Aug-2005 |
drochner | s/locdesc_t/int/g
|
1.29 |
| 28-Jun-2005 |
drochner | branches: 1.29.2; convert remaining autoconf bus "submatch" functions to use the new signature (passing locators), and remove some which obviously don't serve any purpose (untested, sorry)
|
1.28 |
| 02-Jan-2005 |
tsutsui | u_intNN_t -> uintNN_t
|
1.27 |
| 28-Aug-2004 |
thorpej | Use ANSI function decls, static, and const.
|
1.26 |
| 17-Nov-2003 |
tsutsui | TAB/space cleanup.
|
1.25 |
| 01-Aug-2003 |
tsutsui | Add "oddbyte" bus_space(9) access ops for DIO devices which have odd byte address space.
|
1.24 |
| 01-Aug-2003 |
tsutsui | Modify hp300 bus_space(9) structures/functions to add hooks to override access functions. This is required by some DIO devices to use MI drivers.
|
1.23 |
| 24-May-2003 |
gmcgarry | branches: 1.23.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.22 |
| 01-Apr-2003 |
thorpej | Use PAGE_SIZE rather than NBPG.
|
1.21 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.20 |
| 22-Dec-2002 |
gmcgarry | Make the DMA controller a separate device attached to intio. Intio devices can use the DMA controller too.
|
1.19 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.18 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.17 |
| 27-Sep-2002 |
thorpej | Introduce a new routine, config_match(), which invokes the cfattach->ca_match function in behalf of the caller. Use it rather than invoking cfattach->ca_match directly.
|
1.16 |
| 15-Mar-2002 |
gmcgarry | Add RCSIDs.
|
1.15 |
| 14-Dec-2001 |
gmcgarry | Update hardware drivers with console attachments to the new console attachment interface.
|
1.14 |
| 08-Dec-2001 |
gmcgarry | bcopy -> memcpy bzero -> memset bcmp -> memcmp
|
1.13 |
| 01-Jul-1998 |
thorpej | branches: 1.13.28; 1.13.32; If sysflags tells us we have an internal HP-IB interface, don't bother reading the DIO device ID at select code 7, but rather hard-wire the ID to the IHPIB ID. This prevents us reading what might look like a valid ID to another device when IHPIB is present. (IHPIB doesn't always return a correct device ID, grumble.)
|
1.12 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.11 |
| 11-Jan-1998 |
thorpej | Pass down bus space tags to children, and use types appropriate for bus.h.
|
1.10 |
| 09-Oct-1997 |
jtc | Fix tipo inherited from old version of TNF copyright template.
|
1.9 |
| 01-Oct-1997 |
kleink | Remove duplicate inclusion of <sys/device.h>.
|
1.8 |
| 18-Jul-1997 |
jtk | branches: 1.8.2; remove old *_UNK style default defines, use standard names from locators.h
|
1.7 |
| 05-May-1997 |
thorpej | - Initialize the DMA controller in dioattach(). - Implement dio_intr_establish() and dio_intr_disestablish().
|
1.6 |
| 27-Apr-1997 |
thorpej | These files depend on things in <machine/hp300spu.h>
|
1.5 |
| 04-Apr-1997 |
thorpej | #ifdef DIOVERBOSE a variable needed only in such code.
|
1.4 |
| 31-Mar-1997 |
scottr | Add missing argument to diagnostic printf()
|
1.3 |
| 30-Jan-1997 |
thorpej | Garbage-collect all old-style autoconfiguration support; it is no longer supported. The hp300 port uses new config now.
|
1.2 |
| 12-Jan-1997 |
thorpej | Fix botch in PA calculation for DIO-II devices. Bug noticed and fix provided by Klaus Klein <kleink@layla.inka.de>, PR #3097.
|
1.1 |
| 17-Dec-1996 |
thorpej | Snapshot of new config for NetBSD/hp300. This isn't quite finished yet. We're about 75% there. SCSI and HP-IB are not yet supported in a new config kernel; some autoconfiguration hackery has to be done there, yet. These changes are enough to network boot a diskless kernel.
New config glue is enabled with the "NEWCONFIG" kernel option. If that option is not present, an old config kernel will be built. Any kernel configured with config(8) will automatically pick up the NEWCONFIG option from std.hp300.
|
1.8.2.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.13.32.5 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.13.32.4 |
| 29-Dec-2002 |
thorpej | Sync with HEAD.
|
1.13.32.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.13.32.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.13.32.1 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.13.28.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.13.28.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.13.28.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.23.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.23.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.23.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.23.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.23.2.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.23.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.29.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.29.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.29.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.32.8.1 |
| 11-Aug-2006 |
yamt | sync with head
|
1.32.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.34.10.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.35.40.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.35.40.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.36.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.36.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.37.28.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.37.22.1 |
| 21-Apr-2011 |
rmind | sync with head
|
1.38.18.1 |
| 18-May-2014 |
rmind | sync with head
|
1.38.14.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.38.4.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.39.44.2 |
| 22-Mar-2021 |
thorpej | Audit CFARG_IATTR in config_found() calls, and remove it in situations where the interface attribute is not ambiguous.
|
1.39.44.1 |
| 22-Mar-2021 |
thorpej | Mechanical conversion of config_found_sm_loc() -> config_found(). CFARG_IATTR usage needs to be audited.
|
1.40.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|