Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hp300/dev/intio.c
RevisionDateAuthorComments
 1.33  30-Apr-2024  tsutsui Fix fatal typo that prevents all intio devices probed.
 1.32  28-Jan-2024  thorpej Rather than having different "builtin" tables (3xx, 362, 382, 4xx),
just have a single "builtin" table with a mask indicating which of
those groups of machines have a particular built-in device.
 1.31  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.30  24-Apr-2021  thorpej branches: 1.30.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.29  31-Dec-2010  tsutsui branches: 1.29.74;
According to the 362/382 Service Handbook by HP, only 382 has a utility chip
(i.e. frodo and apci) for RS-232C so don't try to attach frodo on HP362.

XXX: HP362 detection code in locore.s and bootloader still doesn't work
XXX: if on-board framebuffer is disabled by a jumper switch, though
XXX: it's still detected as HP360 and just works.
 1.28  28-Apr-2008  martin branches: 1.28.22;
Remove clause 3 and 4 from TNF licenses
 1.27  29-Mar-2008  tsutsui branches: 1.27.2; 1.27.4;
Split device_t/softc, and misc cosmetic changes.
 1.26  04-Mar-2007  christos branches: 1.26.40;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.25  20-Jul-2006  tsutsui branches: 1.25.10;
Identify models HP362 and HP382. From OpenBSD, tested on my HP382.

Note now options HP362 and options HP382 are required for these models
in your kernel config file.
 1.24  19-Jul-2006  tsutsui oops, fix typo
 1.23  19-Jul-2006  tsutsui - strncpy() -> strlcpy()
- adjust buffer length
 1.22  19-Jul-2006  tsutsui Define base address offsets of intio devices in intioreg.h
and replace various magic numbers with the macro.
 1.21  19-Jul-2006  tsutsui - use __arraycount()
- remove parentheses from return values
 1.20  11-Dec-2005  christos branches: 1.20.4; 1.20.8;
merge ktrace-lwp.
 1.19  28-Aug-2004  thorpej branches: 1.19.12;
Use ANSI function decls, static, and const.
 1.18  17-Nov-2003  tsutsui TAB/space cleanup.
 1.17  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.16  05-Jul-2003  tsutsui cosmetics
 1.15  24-May-2003  gmcgarry branches: 1.15.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.14  01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.13  22-Dec-2002  gmcgarry Make the DMA controller a separate device attached to intio. Intio
devices can use the DMA controller too.
 1.12  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.11  05-May-2002  gmcgarry 400-series machines only have DIO framebuffers. From discussion
with Michael Lorenz and Bernd Sieker.
 1.10  05-Apr-2002  gmcgarry actually, we didn't want to print pa, not kva
 1.9  17-Mar-2002  gmcgarry Don't match on trailing spaces in the module name.
 1.8  15-Mar-2002  gmcgarry Don't display ipl if the device isn't actually attaching.
Add RCSID while here.
 1.7  17-Nov-2001  gmcgarry Overhaul the intio device attachment. Devices are direct connected and
attached based on machine id.
 1.6  12-Jan-1998  thorpej branches: 1.6.28; 1.6.32;
Update for changes to config.
 1.5  11-Jan-1998  thorpej Oops, fix a printf format.
 1.4  11-Jan-1998  thorpej Pass down bus space tags to children, and use types appropriate for
bus.h.
 1.3  09-Oct-1997  jtc Fix tipo inherited from old version of TNF copyright template.
 1.2  30-Jan-1997  thorpej branches: 1.2.8;
Garbage-collect all old-style autoconfiguration support; it is no
longer supported. The hp300 port uses new config now.
 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.2.8.1  14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.6.32.7  03-Jan-2003  thorpej Sync with HEAD.
 1.6.32.6  29-Dec-2002  thorpej Sync with HEAD.
 1.6.32.5  18-Oct-2002  nathanw Catch up to -current.
 1.6.32.4  20-Jun-2002  nathanw Catch up to -current.
 1.6.32.3  17-Apr-2002  nathanw Catch up to -current.
 1.6.32.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.6.32.1  08-Jan-2002  nathanw Catch up to -current.
 1.6.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.6.28.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.28.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.15.2.2  03-Sep-2004  skrll Sync with HEAD
 1.15.2.1  03-Aug-2004  skrll Sync with HEAD
 1.19.12.2  03-Sep-2007  yamt sync with head.
 1.19.12.1  30-Dec-2006  yamt sync with head.
 1.20.8.1  11-Aug-2006  yamt sync with head
 1.20.4.1  09-Sep-2006  rpaulo sync with head
 1.25.10.1  12-Mar-2007  rmind Sync with HEAD.
 1.26.40.2  02-Jun-2008  mjf Sync with HEAD.
 1.26.40.1  03-Apr-2008  mjf Sync with HEAD.
 1.27.4.1  16-May-2008  yamt sync with head.
 1.27.2.1  18-May-2008  yamt sync with head.
 1.28.22.1  05-Mar-2011  rmind sync with head
 1.29.74.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.30.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed