Home | History | Annotate | only in /src/sys/arch/hpcsh/dev/hd64461
History log of /src/sys/arch/hpcsh/dev/hd64461
RevisionDateAuthorComments
 1.26 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.25 24-Apr-2021  thorpej branches: 1.25.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.24 19-Jul-2011  dyoung branches: 1.24.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
 1.23 13-May-2010  kiyohara Standby AFE Clock, if use_afeck is 0. Don't stop AFE Clock, if PERSONA boots
on serial console.
 1.22 05-Apr-2009  uwe branches: 1.22.2; 1.22.4;
Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
 1.21 22-Mar-2009  uwe Don't bother trying to attach GPIO, AFE and FIR modules for which we
have no drivers.

Standby TIMER that we don't use. One of the timers is always out of
standby on my Jornada on boot (WinCE uses it), so save some power.

Standby AFE and FIR for which we have no drivers (I don't know if any
hpcsh hardware actually uses them, so they are likely to be in standby
already anyway).
 1.20 21-Mar-2009  uwe Minor cosmetic.
 1.19 28-Apr-2008  martin branches: 1.19.8; 1.19.14;
Remove clause 3 and 4 from TNF licenses
 1.18 27-Mar-2008  uwe branches: 1.18.2; 1.18.4;
Convert to use CFATTACH_DECL_NEW (no softc).
 1.17 17-Feb-2008  uwe branches: 1.17.6;
hd64461_info: Print correct full name for STBCR (s/system/standby/).
 1.16 18-Dec-2005  uwe branches: 1.16.50; 1.16.56;
Don't include sys/boot_flag.h only to get sys/reboot.h pulled in,
include the latter directly instead. Include hd64461*reg.h only under
DEBUG, where they are used. In hd64461_match use fallthrough.
 1.15 18-Dec-2005  uwe Use ANSI unitN_t types. Use "void" when defining functions with no args.
Propagate "static" to function definitions.
 1.14 11-Dec-2005  christos merge ktrace-lwp.
 1.13 15-Jul-2003  lukem branches: 1.13.16;
__KERNEL_RCSID()
 1.12 01-Jan-2003  thorpej branches: 1.12.2;
Use aprint_normal() for cfprint routines.
 1.11 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.10 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.9 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.8 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.7 28-Mar-2002  uch branches: 1.7.6;
rework HD64461, HD64465 interrupt handling.
 1.6 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.5 17-Feb-2002  uch SH3/SH4 common kernel support.
 1.4 29-Jan-2002  uch clean up debug print and configuration.
 1.3 27-Jan-2002  uch clean up debug print and configuration.
 1.2 13-Jul-2001  uch cosmetic changes.
 1.1 21-Feb-2001  uch branches: 1.1.4; 1.1.6;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.6.5 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.1.6.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.6.1 03-Aug-2001  lukem update to -current
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 21-Feb-2001  bouyer file hd64461.c was added on branch thorpej_scsipi on 2001-03-12 13:28:51 +0000
 1.7.6.3 03-Jan-2003  thorpej Sync with HEAD.
 1.7.6.2 18-Oct-2002  nathanw Catch up to -current.
 1.7.6.1 28-Mar-2002  nathanw file hd64461.c was added on branch nathanw_sa on 2002-10-18 02:37:22 +0000
 1.12.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1 03-Aug-2004  skrll Sync with HEAD
 1.13.16.2 27-Feb-2008  yamt sync with head.
 1.13.16.1 21-Jun-2006  yamt sync with head.
 1.16.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.16.50.1 23-Mar-2008  matt sync with HEAD
 1.17.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.17.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.18.4.3 11-Aug-2010  yamt sync with head.
 1.18.4.2 04-May-2009  yamt sync with head.
 1.18.4.1 16-May-2008  yamt sync with head.
 1.18.2.1 18-May-2008  yamt sync with head.
 1.19.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.19.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.22.4.1 30-May-2010  rmind sync with head
 1.22.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.24.68.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.25.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.7 09-Nov-2013  christos fix unused variable warnings
 1.6 19-Jul-2011  dyoung branches: 1.6.2; 1.6.12; 1.6.16;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 18-Dec-2005  uwe branches: 1.4.74; 1.4.76; 1.4.78;
Use ANSI uintN_t types.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 15-Jul-2003  lukem branches: 1.2.16;
__KERNEL_RCSID()
 1.1 03-Mar-2002  uch branches: 1.1.4; 1.1.12; 1.1.18;
platform dependent HD64461 PCMCIA module (power supply).
 1.1.18.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.18.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.18.1 03-Aug-2004  skrll Sync with HEAD
 1.1.12.2 03-Mar-2002  uch platform dependent HD64461 PCMCIA module (power supply).
 1.1.12.1 03-Mar-2002  uch file hd64461_machdep.c was added on branch nathanw_sa on 2002-03-03 14:34:03 +0000
 1.1.4.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.4.1 03-Mar-2002  jdolecek file hd64461_machdep.c was added on branch kqueue on 2002-03-16 15:58:05 +0000
 1.2.16.1 21-Jun-2006  yamt sync with head.
 1.4.78.1 16-May-2008  yamt sync with head.
 1.4.76.1 18-May-2008  yamt sync with head.
 1.4.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.16.1 18-May-2014  rmind sync with head
 1.6.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.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.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 18-Dec-2005  uwe branches: 1.2.74; 1.2.76; 1.2.78;
Multiple-inclusion protection.
 1.1 21-Feb-2001  uch branches: 1.1.4; 1.1.42;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.42.1 21-Jun-2006  yamt sync with head.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 21-Feb-2001  bouyer file hd64461gpioreg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:51 +0000
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 18-Dec-2005  uwe branches: 1.2.74; 1.2.76; 1.2.78;
Multiple-inclusion protection.
 1.1 21-Feb-2001  uch branches: 1.1.4; 1.1.42;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.42.1 21-Jun-2006  yamt sync with head.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 21-Feb-2001  bouyer file hd64461intcreg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:51 +0000
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 28-Mar-2002  uch branches: 1.3.4;
rework HD64461, HD64465 interrupt handling.
 1.2 11-Feb-2002  uch KNF
 1.1 21-Feb-2001  uch branches: 1.1.4; 1.1.6;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.6.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.1 16-Mar-2002  jdolecek Catch up with -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 21-Feb-2001  bouyer file hd64461intcvar.h was added on branch thorpej_scsipi on 2001-03-12 13:28:51 +0000
 1.3.4.2 28-Mar-2002  uch rework HD64461, HD64465 interrupt handling.
 1.3.4.1 28-Mar-2002  uch file hd64461intcvar.h was added on branch nathanw_sa on 2002-03-28 15:27:01 +0000
 1.57 06-Aug-2025  andvar s/attibute/attribute/ and s/previosly/previously/ in comments.
 1.56 02-Jun-2024  andvar fix various typos in word `interrupt', mainly in comments.
 1.55 11-Oct-2021  rin Fix workaround for SH-3 PCMCIA bug in accordance with description
found in TECH I vol. 14 (CQ Publishing, Tokyo, 2002, in Japanese),
as well as experiment on real hardware:

Byte-access to area 6 becomes word-access (both CE1# and CE2# are
wrongly asserted), if preceding access is word-wise. Inserting a
dummy byte-access works around the problem. Area 5 is not affected.

Therefore,

(1) Insert a dummy byte-read before all byte-wise operations.

(2) Restrict the workaround to area 6 (channel 0), and rename
fixup_sh3_pcmcia_area() to fixup_sh3_pcmcia_area6() for clarity.

Also, we used to use 0xba000000 (== HD64461_PCC0_IOBASE) as target
for the dummy read. However, this can modify device states, which
breaks ep(4) at least. Thus,

(3) Use HD64461_PCC0_MEMBASE as target for the dummy read. This is
assigned to attribute memory space, and byte-read should be
harmless.
 1.54 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.53 24-Apr-2021  thorpej branches: 1.53.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.52 21-Nov-2020  thorpej branches: 1.52.2;
malloc(9) -> kmem(9)
 1.51 09-Nov-2013  christos branches: 1.51.42;
fix unused variable warnings
 1.50 13-Oct-2013  riz Catch up to recent changes in config_pending_{incr,decr}().
 1.49 26-Jul-2011  dyoung branches: 1.49.2; 1.49.12; 1.49.16;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.48 20-Jul-2011  dyoung Move macros _BUS_SPACE_WRITE(), _BUS_SPACE_WRITE_MULTI(), et
cetera, into <hpcsh/bus_util.h> for both hpcsh/bus_space.c and
dev/hd64461/hd64461pcmcia.c to use them.

(I haven't had a close look at what hd64461pcmcia.c is doing, but I have
a hunch that it is a good use for bus_space_tag_create(9).)
 1.47 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
 1.46 05-Apr-2009  uwe Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
 1.45 21-Mar-2009  uwe In the current code the even loop is never exited, but it's cleaner to
have explicit kthread_exit at the end of the event thread routine.
 1.44 21-Mar-2009  uwe Move channel attachment to event thread (we already have one, so it's
easier to do it there rather than mess with config_interrupts()).

From kiyohara@. Discussed with drochner@, who pointed out that pcmcia
drivers are expected to attach with interrupts enabled.
 1.43 28-Apr-2008  martin branches: 1.43.8; 1.43.14;
Remove clause 3 and 4 from TNF licenses
 1.42 27-Mar-2008  uwe branches: 1.42.2; 1.42.4;
Split device_t and softc.
 1.41 17-Feb-2008  uwe branches: 1.41.6;
Use aprint_*, device_xname.
 1.40 17-Feb-2008  uwe hd64461_set_bus_width - use named constants instead of bit shift magic.
 1.39 15-Dec-2007  perry __FUNCTION__ -> __func__
 1.38 17-Oct-2007  garbled branches: 1.38.2; 1.38.4; 1.38.8;
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.37 11-Jul-2007  uwe branches: 1.37.10;
Fix previous: sc_event_thread should be a pointer to lwp_t.
 1.36 09-Jul-2007  ad Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.35 03-Jan-2006  uwe branches: 1.35.28; 1.35.30; 1.35.36;
Fix constification fallout under #ifdef HD64461PCMCIA_DEBUG.
 1.34 03-Jan-2006  uwe HD64461PCMCIA options now come from "opt_hd64461pcmcia.h".
 1.33 18-Dec-2005  uwe branches: 1.33.2;
Use ANSI uintN_t types. Propagate "static" to function definitions.
 1.32 11-Dec-2005  christos merge ktrace-lwp.
 1.31 26-Aug-2005  drochner s/locdesc_t/int/g
 1.30 28-Jun-2005  drochner branches: 1.30.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.29 11-Aug-2004  mycroft Forget to reset to memory mode on power up.
The hd64465 looks a bit incomplete, but "not my problem".
 1.28 11-Aug-2004  mycroft Attempt to fix these up, but I have no way to test them.
 1.27 14-Jul-2004  uch enable to power off and reset card.
 1.26 11-Jul-2004  uch cosmetic changes. (whitespace,<tab>)
 1.25 27-Mar-2004  uwe When we attach a channel, set a high level to DRV control pin of the
external buffer for the PC card connected to the channel. This hack
makes pcmcia cards "being used" at the boot time (by WinCE or NetBSD)
correctly detected. A machine running with root on NFS can now be
properly rebooted.
 1.24 27-Mar-2004  uwe Add option HD64461PCMCIA_REORDER_ATTACH that attaches channels in
reversed order.

When you boot with two CF cards inserted, this options makes the one
in the "memory only" slot (channel 1), which is almost always the card
with the NetBSD install, attached as wd0.

Unlike using fixed unit numbers in the kernel config, if you boot with
only a single CF card, that single card will still be wd0 regardless
of which slot it is inserted in.

http://mail-index.netbsd.org/port-hpcsh/2003/10/23/0000.html provides
a more verbose description of why this option is convenient for most
usage patterns.
 1.23 23-Oct-2003  uwe In hd64461pcmcia_chip_io_map set *windowp to 0.

This driver ignores i/o window handle, but most 'at pcmcia'
attachments init their sc_io_window to -1 and then check at detach
time if it was changed from the "bad" value. Keep them happy, so that
they can correctly clean up when card is detached.
 1.22 15-Jul-2003  lukem __KERNEL_RCSID()
 1.21 01-Jan-2003  thorpej branches: 1.21.2;
Use aprint_normal() for cfprint routines.
 1.20 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.19 01-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 01-Jun-2002  lukem branches: 1.16.2;
SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.15 28-Mar-2002  uch branches: 1.15.2;
rework HD64461, HD64465 interrupt handling.
 1.14 03-Mar-2002  uch platform dependent HD64461 PCMCIA module (power supply).
 1.13 28-Feb-2002  uch Cleanup register definition
 1.12 17-Feb-2002  uch SH3/SH4 common kernel support.
 1.11 11-Feb-2002  uch {} -> do {} (0)
 1.10 29-Jan-2002  uch clean up debug print and configuration.
 1.9 27-Jan-2002  uch clean up debug print and configuration.
 1.8 15-Dec-2001  soren To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
 1.7 08-Oct-2001  uch HITACHI PERSONA support. patch by KIYOHARA Takashi
 1.6 13-Jul-2001  uch branches: 1.6.2;
cosmetic changes.
 1.5 13-Jul-2001  uch fix interrupt, voltage supply bug of channel 1.
(patch by Masanori Kanaoka).
 1.4 04-Jul-2001  uch branches: 1.4.2;
#ifdef notyet power on/off sequence code. it doesn't work.
 1.3 15-Mar-2001  uch HD64461 UART module support.
 1.2 08-Mar-2001  uch branches: 1.2.2;
channel 1 interface don't provide fake pcmcia io space tag.
 1.1 21-Feb-2001  uch branches: 1.1.2;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.2.3 27-Mar-2001  bouyer Sync with HEAD.
 1.2.2.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.2.1 08-Mar-2001  bouyer file hd64461pcmcia.c was added on branch thorpej_scsipi on 2001-03-12 13:28:52 +0000
 1.4.2.6 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.4.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 03-Aug-2001  lukem update to -current
 1.6.2.1 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.15.2.1 14-Jul-2002  gehenna catch up with -current.
 1.16.2.3 03-Jan-2003  thorpej Sync with HEAD.
 1.16.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.16.2.1 01-Jun-2002  nathanw file hd64461pcmcia.c was added on branch nathanw_sa on 2002-10-18 02:37:23 +0000
 1.21.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.21.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.21.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.21.2.2 12-Aug-2004  skrll Sync with HEAD.
 1.21.2.1 03-Aug-2004  skrll Sync with HEAD
 1.30.2.4 27-Feb-2008  yamt sync with head.
 1.30.2.3 21-Jan-2008  yamt sync with head
 1.30.2.2 03-Sep-2007  yamt sync with head.
 1.30.2.1 21-Jun-2006  yamt sync with head.
 1.33.2.1 15-Jan-2006  yamt sync with head.
 1.35.36.1 03-Oct-2007  garbled Sync with HEAD
 1.35.30.1 11-Jul-2007  mjf Sync with head.
 1.35.28.1 15-Jul-2007  ad Sync with head.
 1.37.10.3 23-Mar-2008  matt sync with HEAD
 1.37.10.2 09-Jan-2008  matt sync with HEAD
 1.37.10.1 06-Nov-2007  matt sync with HEAD
 1.38.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.38.4.1 26-Dec-2007  ad Sync with head.
 1.38.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.41.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.41.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.42.4.2 04-May-2009  yamt sync with head.
 1.42.4.1 16-May-2008  yamt sync with head.
 1.42.2.1 18-May-2008  yamt sync with head.
 1.43.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.43.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.49.16.1 18-May-2014  rmind sync with head
 1.49.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.49.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.51.42.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.52.2.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.52.2.1 22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.53.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 18-Dec-2005  uwe branches: 1.3.74; 1.3.76; 1.3.78;
Multiple-inclusion protection.
 1.2 08-Oct-2001  uch branches: 1.2.14; 1.2.36;
HITACHI PERSONA support. patch by KIYOHARA Takashi
 1.1 21-Feb-2001  uch branches: 1.1.2; 1.1.4; 1.1.6;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 21-Feb-2001  bouyer file hd64461pcmciareg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:52 +0000
 1.1.2.1 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.36.1 21-Jun-2006  yamt sync with head.
 1.2.14.2 08-Oct-2001  uch HITACHI PERSONA support. patch by KIYOHARA Takashi
 1.2.14.1 08-Oct-2001  uch file hd64461pcmciareg.h was added on branch nathanw_sa on 2001-10-08 15:34:25 +0000
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 18-Dec-2005  uwe branches: 1.2.74; 1.2.76; 1.2.78;
Multiple-inclusion protection.
 1.1 03-Mar-2002  uch branches: 1.1.4; 1.1.12; 1.1.34;
platform dependent HD64461 PCMCIA module (power supply).
 1.1.34.1 21-Jun-2006  yamt sync with head.
 1.1.12.2 03-Mar-2002  uch platform dependent HD64461 PCMCIA module (power supply).
 1.1.12.1 03-Mar-2002  uch file hd64461pcmciavar.h was added on branch nathanw_sa on 2002-03-03 14:34:02 +0000
 1.1.4.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.4.1 03-Mar-2002  jdolecek file hd64461pcmciavar.h was added on branch kqueue on 2002-03-16 15:58:05 +0000
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 18-Dec-2005  uwe branches: 1.3.74; 1.3.76; 1.3.78;
Multiple-inclusion protection.
 1.2 04-Jun-2001  uch branches: 1.2.18; 1.2.40;
HD64461 video module.
 1.1 21-Feb-2001  uch branches: 1.1.2; 1.1.4;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 21-Feb-2001  bouyer file hd64461reg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:52 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.40.1 21-Jun-2006  yamt sync with head.
 1.2.18.2 04-Jun-2001  uch HD64461 video module.
 1.2.18.1 04-Jun-2001  uch file hd64461reg.h was added on branch nathanw_sa on 2001-06-04 17:08:37 +0000
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.32 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.31 13-Sep-2023  andvar change hd64461uart_init_regs third argument from NULL to 0x0,
since compiler complains about making integer from pointer without cast.

fully fixes KGDB enabled build for hpcsh.
 1.30 11-Dec-2018  thorpej Add a convenience function, com_init_regs_stride(), that shifts the register
offsets and size by the specified amount. Use in front-ends as appropriate.
 1.29 08-Dec-2018  thorpej Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.28 19-Jul-2011  dyoung branches: 1.28.52; 1.28.54;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
 1.27 13-May-2010  kiyohara Use COM_REGMAP instead of hd64461uart_{read,write}_1().
 1.26 13-May-2010  kiyohara Standby AFE Clock, if use_afeck is 0. Don't stop AFE Clock, if PERSONA boots
on serial console.
 1.25 12-May-2010  kiyohara Style.
 1.24 12-May-2010  kiyohara Suply clock SAFECKE_[IO]ST, if platid is PERSONA.
tested on HPW-50PA.
 1.23 12-May-2010  kiyohara Fix arg of intr_establish().
comintr() expects struct com_softc* for arg.
 1.22 28-Apr-2008  martin branches: 1.22.20; 1.22.22;
Remove clause 3 and 4 from TNF licenses
 1.21 14-Mar-2008  cube branches: 1.21.2; 1.21.4;
Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.20 15-Dec-2007  perry branches: 1.20.2; 1.20.6;
__FUNCTION__ -> __func__
 1.19 13-Jul-2006  gdamore branches: 1.19.34; 1.19.44; 1.19.48;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.18 18-Dec-2005  uwe branches: 1.18.4; 1.18.8; 1.18.16;
Use ANSI uintN_t types. Use "volatile" without extra __'s.
Use "void" in definitions of functions without arguments.
Propagate "static" do function definitions.
 1.17 11-Dec-2005  christos merge ktrace-lwp.
 1.16 15-Jul-2003  lukem branches: 1.16.16;
__KERNEL_RCSID()
 1.15 14-Jun-2003  thorpej branches: 1.15.2;
Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
 1.14 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.13 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.12 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.11 06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.10 28-Mar-2002  uch branches: 1.10.2; 1.10.6;
rework HD64461, HD64465 interrupt handling.
 1.9 03-Mar-2002  uch don't initialize twice
 1.8 02-Mar-2002  uch Initial support for KGDB on the sh3.
 1.7 11-Feb-2002  uch add primitive serial console debug routine.
 1.6 29-Jan-2002  uch clean up debug print and configuration.
 1.5 27-Jan-2002  uch clean up debug print and configuration.
 1.4 14-Sep-2001  uch debug printf change.
 1.3 13-Jul-2001  uch branches: 1.3.2;
cosmetic changes.
 1.2 20-Mar-2001  uch branches: 1.2.2; 1.2.4; 1.2.6;
make HD64461 UART module usable on HITACHI PERSONA
 1.1 15-Mar-2001  uch HD64461 UART module support.
 1.2.6.6 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.2.6.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.6.4 16-Mar-2002  jdolecek Catch up with -current.
 1.2.6.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 03-Aug-2001  lukem update to -current
 1.2.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.2.2 27-Mar-2001  bouyer Sync with HEAD.
 1.2.2.1 20-Mar-2001  bouyer file hd64461uart.c was added on branch thorpej_scsipi on 2001-03-27 15:30:58 +0000
 1.3.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.10.6.3 18-Oct-2002  nathanw Catch up to -current.
 1.10.6.2 17-Sep-2002  nathanw Catch up to -current.
 1.10.6.1 28-Mar-2002  nathanw file hd64461uart.c was added on branch nathanw_sa on 2002-09-17 21:14:52 +0000
 1.10.2.1 19-May-2002  gehenna Replace the access to devsw table and the hard-coded majors with devsw API.
 1.15.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.15.2.1 03-Aug-2004  skrll Sync with HEAD
 1.16.16.4 17-Mar-2008  yamt sync with head.
 1.16.16.3 21-Jan-2008  yamt sync with head
 1.16.16.2 30-Dec-2006  yamt sync with head.
 1.16.16.1 21-Jun-2006  yamt sync with head.
 1.18.16.1 16-Jun-2006  gdamore Conver hpcsh com attachments to new com(4) framework.
 1.18.8.1 11-Aug-2006  yamt sync with head
 1.18.4.1 09-Sep-2006  rpaulo sync with head
 1.19.48.1 02-Jan-2008  bouyer Sync with HEAD
 1.19.44.1 26-Dec-2007  ad Sync with head.
 1.19.34.2 23-Mar-2008  matt sync with HEAD
 1.19.34.1 09-Jan-2008  matt sync with HEAD
 1.20.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.20.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.20.2.1 24-Mar-2008  keiichi sync with head.
 1.21.4.2 11-Aug-2010  yamt sync with head.
 1.21.4.1 16-May-2008  yamt sync with head.
 1.21.2.1 18-May-2008  yamt sync with head.
 1.22.22.1 30-May-2010  rmind sync with head
 1.22.20.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.28.54.1 10-Jun-2019  christos Sync with HEAD
 1.28.52.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 18-Dec-2005  uwe branches: 1.4.74; 1.4.76; 1.4.78;
Multiple-inclusion protection.
 1.3 11-Feb-2002  uch branches: 1.3.12; 1.3.34;
add primitive serial console debug routine.
 1.2 19-Apr-2001  uch branches: 1.2.2;
fix comment.
 1.1 20-Mar-2001  uch branches: 1.1.2; 1.1.4;
make HD64461 UART module usable on HITACHI PERSONA
 1.1.4.2 21-Jun-2001  nathanw Catch up to -current.
 1.1.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.1.2.3 23-Apr-2001  bouyer Sync with HEAD.
 1.1.2.2 27-Mar-2001  bouyer Sync with HEAD.
 1.1.2.1 20-Mar-2001  bouyer file hd64461uartreg.h was added on branch thorpej_scsipi on 2001-03-27 15:30:58 +0000
 1.2.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.3.34.1 21-Jun-2006  yamt sync with head.
 1.3.12.2 11-Feb-2002  uch add primitive serial console debug routine.
 1.3.12.1 11-Feb-2002  uch file hd64461uartreg.h was added on branch nathanw_sa on 2002-02-11 17:21:49 +0000
 1.4.78.1 16-May-2008  yamt sync with head.
 1.4.76.1 18-May-2008  yamt sync with head.
 1.4.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 18-Dec-2005  uwe branches: 1.5.74; 1.5.76; 1.5.78;
Multiple-inclusion protection. Use ANSI uintN_t types. Fix few
whitespace nits. Add "extern" to function declarations. Drop LOCORE
protection, this file is not included in any asm sources, it has
nothing interesting for asm sources anyway.
 1.4 02-Mar-2002  uch branches: 1.4.10; 1.4.32;
Initial support for KGDB on the sh3.
 1.3 11-Feb-2002  uch add primitive serial console debug routine.
 1.2 19-Apr-2001  uch branches: 1.2.2;
remove non-existent function declaration.
 1.1 15-Mar-2001  uch branches: 1.1.2; 1.1.4;
HD64461 UART module support.
 1.1.4.2 21-Jun-2001  nathanw Catch up to -current.
 1.1.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.1.2.3 23-Apr-2001  bouyer Sync with HEAD.
 1.1.2.2 27-Mar-2001  bouyer Sync with HEAD.
 1.1.2.1 15-Mar-2001  bouyer file hd64461uartvar.h was added on branch thorpej_scsipi on 2001-03-27 15:30:58 +0000
 1.2.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.4.32.1 21-Jun-2006  yamt sync with head.
 1.4.10.2 02-Mar-2002  uch Initial support for KGDB on the sh3.
 1.4.10.1 02-Mar-2002  uch file hd64461uartvar.h was added on branch nathanw_sa on 2002-03-02 22:26:27 +0000
 1.5.78.1 16-May-2008  yamt sync with head.
 1.5.76.1 18-May-2008  yamt sync with head.
 1.5.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 13-May-2010  kiyohara Standby AFE Clock, if use_afeck is 0. Don't stop AFE Clock, if PERSONA boots
on serial console.
 1.4 28-Apr-2008  martin branches: 1.4.20; 1.4.22;
Remove clause 3 and 4 from TNF licenses
 1.3 18-Dec-2005  uwe branches: 1.3.74; 1.3.76; 1.3.78;
Use ANSI unitN_t types.
 1.2 28-Mar-2002  uch branches: 1.2.6; 1.2.28;
rework HD64461, HD64465 interrupt handling.
 1.1 21-Feb-2001  uch branches: 1.1.4; 1.1.6;
HD64461 driver (SH3 companion chip for Windows CE)
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 21-Feb-2001  bouyer file hd64461var.h was added on branch thorpej_scsipi on 2001-03-12 13:28:52 +0000
 1.2.28.1 21-Jun-2006  yamt sync with head.
 1.2.6.2 28-Mar-2002  uch rework HD64461, HD64465 interrupt handling.
 1.2.6.1 28-Mar-2002  uch file hd64461var.h was added on branch nathanw_sa on 2002-03-28 15:27:02 +0000
 1.3.78.2 11-Aug-2010  yamt sync with head.
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.22.1 30-May-2010  rmind sync with head
 1.4.20.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.58 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.57 03-Jul-2022  andvar fix various typos in comments, mainly s/pallete/palette/.
 1.56 24-May-2022  andvar fix various typos in comments, docs and log messages.
 1.55 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.54 24-Apr-2021  thorpej branches: 1.54.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.53 19-Jul-2011  dyoung branches: 1.53.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
 1.52 05-Apr-2009  uwe Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
 1.51 18-Mar-2009  uwe Turn on display on attachment. Fixes the scenario when serial console
is used and you reboot (using kloader) with screen turned off.
 1.50 02-Dec-2008  uwe branches: 1.50.4;
Defining another variable after multiline initializer for a previous
one in the same definition is very confusing visually. Change order.
 1.49 02-Dec-2008  uwe Spell "gray scale" and "mono chrome" without the space.
 1.48 02-Dec-2008  uwe hd64461video_set_display_mode_lcdc - expressing screen widths in hex
hardly helps readbility. Express them in terms on 640*x or 640/x.
 1.47 02-Dec-2008  uwe hd64461video_info: fix pasto, correctly report 4-bit grayscale in LDR2.
 1.46 28-Apr-2008  martin branches: 1.46.6; 1.46.8;
Remove clause 3 and 4 from TNF licenses
 1.45 28-Mar-2008  uwe branches: 1.45.2; 1.45.4;
Split device_t and softc.
 1.44 15-Dec-2007  perry branches: 1.44.6;
__FUNCTION__ -> __func__
 1.43 17-Oct-2007  garbled branches: 1.43.4; 1.43.8;
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.42 24-Sep-2007  kiyohara Add psh3pwr.
 1.41 09-Jul-2007  ad branches: 1.41.8; 1.41.10; 1.41.12;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.40 04-Mar-2007  christos branches: 1.40.2; 1.40.4; 1.40.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.39 22-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.38 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.37 18-Aug-2006  uwe branches: 1.37.8;
Refer sc_font.wsfont explicitly instead of playing cast tricks.
 1.36 14-Aug-2006  uwe Whether hd64461video is console is not is irrelevant to powering it up
on PWR_RESUME. Drop that bogus test and check whether the screen was
blanked instead to corerctly reflect blanked status across suspends.
 1.35 03-Jan-2006  uwe branches: 1.35.2; 1.35.6;
HD64461VIDEO options now come from "opt_hd64461video.h".
 1.34 18-Dec-2005  uwe branches: 1.34.2;
Use explicit "continue" for busy loop bodies in a couple of places I
missed in the previous commit.
 1.33 18-Dec-2005  uwe Use ANSI uintN_t types. Use "void" in definitions of functions
without arguments. Propagate "static" to function definitions.
Declare local functions static. Hide acceleration code inside ifdef
HD64461VIDEO_HWACCEL (save more than 1K of text).
 1.32 11-Dec-2005  christos merge ktrace-lwp.
 1.31 04-Sep-2005  uwe Tell hpcfb that framebuffer fetches 16-bit pixels as little endian.
 1.30 26-Mar-2005  uwe branches: 1.30.2;
Improve spelling in debug printfs.
 1.29 28-Feb-2005  uwe branches: 1.29.2;
Propagate WSDISPLAYIO_PARAM_BACKLIGHT to config hooks.
 1.28 12-Dec-2004  abs branches: 1.28.2; 1.28.4;
Fix comments regarding configration bounaries
 1.27 03-Jul-2004  uch jornada 6x0 power mannagement support.
[on/off] button power off LCD and CPU sleeps.
 1.26 04-Jun-2004  uch fix hd64461video_get_clut.
 1.25 15-Mar-2004  uwe branches: 1.25.4;
Use CONFIG_HOOK_POWERCONTROL_LCD to control turning the LCD on/off
(the _LCDLIGHT hook is apparently meant to control the LCD backlight).
 1.24 15-Mar-2004  uwe Support for WSDISPLAYIO_PARAM_CONTRAST.
 1.23 14-Dec-2003  uwe Use CONFIG_HOOK_BRIGHTNESS* to support WSDISPLAYIO_PARAM_BRIGHTNESS.
Use CONFIG_HOOK_POWERCONTROL_LCDLIGHT to turn on/off the LCD in
response to WSDISPLAYIO_SVIDEO.

Implementation of these hooks for Jornada 680 is to follow shortly.
 1.22 13-Nov-2003  chs eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed. however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors. most of
the callers of uvm_useracc() make the above incorrect assumption. the
rest are all misguided optimizations, which optimize for the case
where an operation will fail. we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors. since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
 1.21 09-Nov-2003  uwe Implement trivial WSDISPLAYIO_SVIDEO that flips DON bit in LCDLDR1.
This only turns off the display in the LCD controller.

TODO: Need to add a platform specific way to turn the screen on and
off as well (e.g. on Jornada 680 this is bit 0 in hd64461 GPIO port B).
 1.20 01-Nov-2003  uwe In hd64461video_update_videochip_status init depth to supress bogus
-Wuninitialized.
 1.19 02-Aug-2003  uwe Move the definition of enum hd64461video_display_mode out of the
definition of struct hd64461video_chip. Makes gcc3 happy.
 1.18 15-Jul-2003  lukem __KERNEL_RCSID()
 1.17 27-Apr-2003  uwe branches: 1.17.2;
When doing bit blit, set the flow direction based on the condition_a flag.
 1.16 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.15 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.14 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.13 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.12 06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.11 03-May-2002  takemura branches: 1.11.2; 1.11.6;
Fixed debug print.
 1.10 13-Apr-2002  takemura Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
arch/hpcsh/dev/hd64461/hd64461video.c Rev. 1.7 to 1.8
arch/hpcmips/dev/plumvideo.c Rev. 1.23 to 1.24
arch/hpcmips/tx/tx3912video.c Rev. 1.24 to 1.25
 1.9 17-Mar-2002  atatat Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.8 19-Feb-2002  uch fix LCD byte-order setting.
 1.7 29-Jan-2002  uch clean up debug print and configuration.
 1.6 27-Jan-2002  uch clean up debug print and configuration.
 1.5 05-Dec-2001  atatat Use more parentheses to make the compiler happy.
 1.4 05-Aug-2001  jdolecek use unsigned variable types as appropriate
 1.3 22-Jul-2001  takemura You must set 'HPCFB_SWAP_*' if bytes are stored in reverse order, i.e.
little endian like order, however, usage of 'HPCFB_SWAP_*' was widely
misunderstood because it reminded you of 'RI_BSWAP' in raster operation.
Please note that 'RI_BSWAP' indicate that frame buffer byte order is different
from natural order of system while 'HPCFB_REVORDER_*' is independent of
system byte order.
 1.2 05-Jun-2001  uch branches: 1.2.2; 1.2.4;
HD64461 frame buffer is big-endian. set HPCFB_SWAP_BYTE.
 1.1 04-Jun-2001  uch HD64461 video module.
 1.2.4.7 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.2.4.6 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.4.5 16-Mar-2002  jdolecek Catch up with -current.
 1.2.4.4 11-Feb-2002  jdolecek Sync w/ -current.
 1.2.4.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.2.4.1 03-Aug-2001  lukem update to -current
 1.2.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.11.6.3 18-Oct-2002  nathanw Catch up to -current.
 1.11.6.2 17-Sep-2002  nathanw Catch up to -current.
 1.11.6.1 03-May-2002  nathanw file hd64461video.c was added on branch nathanw_sa on 2002-09-17 21:14:53 +0000
 1.11.2.1 19-May-2002  gehenna Replace the access to devsw table and the hard-coded majors with devsw API.
 1.17.2.8 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.2.7 01-Apr-2005  skrll Sync with HEAD.
 1.17.2.6 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.17.2.5 24-Jan-2005  skrll Adapt to branch.
 1.17.2.4 18-Dec-2004  skrll Sync with HEAD.
 1.17.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1 03-Aug-2004  skrll Sync with HEAD
 1.25.4.1 11-May-2005  riz Pull up revision 1.26 (requested by uwe in ticket #1415):
fix hd64461video_get_clut.
 1.28.4.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.28.2.1 29-Apr-2005  kent sync with -current
 1.29.2.1 15-Sep-2005  tron Pull up following revision(s) (requested by uwe in ticket #781):
sys/arch/hpcsh/dev/hd64461/hd64461video.c: revision 1.31
Tell hpcfb that framebuffer fetches 16-bit pixels as little enidan.
 1.30.2.6 21-Jan-2008  yamt sync with head
 1.30.2.5 27-Oct-2007  yamt sync with head.
 1.30.2.4 03-Sep-2007  yamt sync with head.
 1.30.2.3 26-Feb-2007  yamt sync with head.
 1.30.2.2 30-Dec-2006  yamt sync with head.
 1.30.2.1 21-Jun-2006  yamt sync with head.
 1.34.2.1 15-Jan-2006  yamt sync with head.
 1.35.6.1 03-Sep-2006  yamt sync with head.
 1.35.2.1 09-Sep-2006  rpaulo sync with head
 1.37.8.2 12-Mar-2007  rmind Sync with HEAD.
 1.37.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.40.10.1 03-Oct-2007  garbled Sync with HEAD
 1.40.4.1 11-Jul-2007  mjf Sync with head.
 1.40.2.2 09-Oct-2007  ad Sync with head.
 1.40.2.1 15-Jul-2007  ad Sync with head.
 1.41.12.1 06-Oct-2007  yamt sync with head.
 1.41.10.2 09-Jan-2008  matt sync with HEAD
 1.41.10.1 06-Nov-2007  matt sync with HEAD
 1.41.8.1 02-Oct-2007  joerg Sync with HEAD.
 1.43.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.43.4.1 26-Dec-2007  ad Sync with head.
 1.44.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.44.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.44.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.45.4.2 04-May-2009  yamt sync with head.
 1.45.4.1 16-May-2008  yamt sync with head.
 1.45.2.1 18-May-2008  yamt sync with head.
 1.46.8.2 28-Apr-2009  skrll Sync with HEAD.
 1.46.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.46.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.50.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.53.68.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.54.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.5 11-Apr-2019  kamil Fix a typo in a comment

NFCI
 1.4 28-Apr-2008  martin branches: 1.4.88;
Remove clause 3 and 4 from TNF licenses
 1.3 08-Mar-2006  lukem branches: 1.3.64; 1.3.66; 1.3.68;
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.2 18-Dec-2005  uwe branches: 1.2.4; 1.2.6; 1.2.8; 1.2.10;
Multiple-inclusion protection.
 1.1 04-Jun-2001  uch branches: 1.1.2; 1.1.20; 1.1.42;
HD64461 video module.
 1.1.42.1 21-Jun-2006  yamt sync with head.
 1.1.20.2 04-Jun-2001  uch HD64461 video module.
 1.1.20.1 04-Jun-2001  uch file hd64461videoreg.h was added on branch nathanw_sa on 2001-06-04 17:08:37 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.8.1 13-Mar-2006  yamt sync with head.
 1.2.6.1 22-Apr-2006  simonb Sync with head.
 1.2.4.1 09-Sep-2006  rpaulo sync with head
 1.3.68.1 16-May-2008  yamt sync with head.
 1.3.66.1 18-May-2008  yamt sync with head.
 1.3.64.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.88.1 10-Jun-2019  christos Sync with HEAD

RSS XML Feed