History log of /src/sys/arch/hp300/dev/frodo.c |
Revision | | Date | Author | Comments |
1.36 |
| 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.35 |
| 25-Nov-2022 |
tsutsui | Service mode switch should not be treated as an error.
Use aprint_normal(9) to avoid confusing dmesg.
|
1.34 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.33 |
| 24-Apr-2021 |
thorpej | branches: 1.33.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.32 |
| 30-Apr-2014 |
tsutsui | branches: 1.32.42; Probe mcclock only on 425e to avoid an extra "not configured" message.
|
1.31 |
| 19-Apr-2014 |
tsutsui | Add proper RealTime Clock support for HP9000/425e.
As the OpenBSD/hp300 page says 425e doesn't have the traditional RTC at intio (as it also lacks DCA 16550 serial at intio?), but after a few hour investigation it turns out that 425e uses mc146818 compatible calendar clock in the Apollo "frodo" utility chip and the frodo chip on 425e actually has the 32kHz OSC and is actually backed up by the onboard lithium battery.
Tested on HP425e (with mcclock) and HP362 (with old rtc).
|
1.30 |
| 12-Feb-2011 |
tsutsui | branches: 1.30.4; 1.30.10; 1.30.14; 1.30.18; 1.30.28; Fix comment (362 doesn't have frodo).
|
1.29 |
| 28-Apr-2008 |
martin | branches: 1.29.22; 1.29.28; 1.29.30; Remove clause 3 and 4 from TNF licenses
|
1.28 |
| 29-Mar-2008 |
tsutsui | branches: 1.28.2; 1.28.4; Split device_t/softc, and misc cosmetic changes.
|
1.27 |
| 04-Mar-2007 |
christos | branches: 1.27.40; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.26 |
| 20-Jul-2006 |
tsutsui | branches: 1.26.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.25 |
| 19-Jul-2006 |
tsutsui | some KNF
|
1.24 |
| 19-Jul-2006 |
tsutsui | Use iobase address passed from attach args.
|
1.23 |
| 24-Dec-2005 |
perry | branches: 1.23.4; 1.23.8; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.22 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.21 |
| 26-Aug-2005 |
drochner | s/locdesc_t/int/g
|
1.20 |
| 28-Jun-2005 |
drochner | branches: 1.20.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.19 |
| 02-Jan-2005 |
tsutsui | u_intNN_t -> uintNN_t
|
1.18 |
| 28-Aug-2004 |
thorpej | Use ANSI function decls, static, and const.
|
1.17 |
| 07-Apr-2004 |
tsutsui | Adjust fd_name in struct frodo_device frodo_subdevs[] since MD apci(4) has been switched to MI com(4).
|
1.16 |
| 17-Nov-2003 |
tsutsui | branches: 1.16.2; TAB/space cleanup.
|
1.15 |
| 08-Nov-2003 |
tsutsui | Switch DCA and APCI serial devices to use MI com(4) driver.
DCA is tested on HP362 and HP382 with serial console, but APCI on HP4xx is not tested yet.
|
1.14 |
| 01-Jan-2003 |
thorpej | branches: 1.14.2; Use aprint_normal() for cfprint routines.
|
1.13 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.12 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.11 |
| 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.10 |
| 17-Mar-2002 |
gmcgarry | Don't match on trailing spaces in the module name.
|
1.9 |
| 15-Mar-2002 |
gmcgarry | Add RCSIDs.
|
1.8 |
| 08-Dec-2001 |
gmcgarry | Update for structural interrupt changes. No functional change.
|
1.7 |
| 08-Dec-2001 |
gmcgarry | bcopy -> memcpy bzero -> memset bcmp -> memcmp
|
1.6 |
| 17-Nov-2001 |
gmcgarry | Update for new intio parent interface.
|
1.5 |
| 31-Jul-1999 |
thorpej | branches: 1.5.16; 1.5.20; Skip "serial 1" on non-425e models. It's mapped to DCA at 9 on every other 4xx model, and the "not configured" could be pretty annoying.
|
1.4 |
| 12-Jan-1998 |
thorpej | branches: 1.4.10; Update for changes to config.
|
1.3 |
| 11-Jan-1998 |
thorpej | ia->ia_addr is a physical address, not a kernel virtual address.
|
1.2 |
| 04-Oct-1997 |
thorpej | Copyright assigned to The NetBSD Foundation.
|
1.1 |
| 12-May-1997 |
thorpej | branches: 1.1.4; Add a driver for the Apollo Utility Chip (a.k.a. "frodo"), contributed by Mike Smith <mike@pressed.spam.frisbee.net.au>, with some changes to the autoconfiguration model and slight changes to the interrupt glue by me.
|
1.1.4.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.4.10.1 |
| 02-Aug-1999 |
thorpej | Update from trunk.
|
1.5.20.4 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.5.20.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.5.20.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.5.20.1 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.5.16.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.5.16.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.5.16.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.14.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.14.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.14.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.14.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.14.2.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.14.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.16.2.1 |
| 11-Apr-2004 |
jmc | Pullup rev 1.17 (requested by tsutsui in ticket #116)
Adjust fd_name in struct frodo_device frodo_subdevs[] since MD apci(4) has been switched to MI com(4). Adjust FRODO_BASE macro since com_frodo uses bus_space_map(9) which takes offset from intiobase instead of KVA. It turns out that not only HP425e but other HP4xx models also require COM_HW_NOIEN for APCI com(4) ports.
|
1.20.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.20.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.20.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.23.8.1 |
| 11-Aug-2006 |
yamt | sync with head
|
1.23.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.26.10.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.27.40.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.27.40.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.28.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.28.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.29.30.1 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.29.28.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.29.22.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.30.28.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.30.18.1 |
| 18-May-2014 |
rmind | sync with head
|
1.30.14.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.30.10.1 |
| 21-May-2014 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #1058): sys/arch/hp300/conf/files.hp300: revision 1.88 sys/arch/hp300/include/autoconf.h: revision 1.13 sys/dev/ic/sti.c: revision 1.17 sys/arch/hp300/dev/frodo.c: revision 1.31 sys/arch/hp300/conf/GENERIC: revision 1.173 sys/arch/hp300/hp300/machdep.c: revision 1.229 sys/arch/hp300/dev/frodo.c: revision 1.32 sys/arch/hp300/hp300/autoconf.c: revision 1.102 sys/arch/hp300/dev/frodoreg.h: revision 1.5 sys/arch/hp300/stand/common/ite_sti.c: revision 1.1 sys/arch/hp300/stand/common/itevar.h: revision 1.16 sys/arch/hp300/hp300/autoconf.c: revision 1.105 sys/arch/hp300/dev/sti_sgcvar.h: revision 1.1 sys/arch/hp300/stand/common/apci.c: revision 1.12 sys/arch/hp300/stand/common/apci.c: revision 1.13 sys/arch/hp300/dev/dnkbd.c: revision 1.6 sys/arch/hp300/dev/dnkbd.c: revision 1.7 sys/arch/hp300/stand/inst/version: revision 1.12 sys/arch/hp300/dev/com_frodo.c: revision 1.9 sys/arch/hp300/stand/common/ite.c: revision 1.17 sys/arch/hp300/conf/GENERIC: revision 1.181 sys/arch/hp300/dev/sti_sgc.c: revision 1.1 sys/arch/hp300/stand/common/dnkbd.c: revision 1.13 sys/arch/hp300/dev/sti_sgc.c: revision 1.2 sys/dev/ic/stivar.h: revision 1.8 sys/arch/hp300/dev/rtc.c: revision 1.21 sys/arch/hp300/conf/INSTALL: revision 1.56 sys/arch/hp300/conf/INSTALL: revision 1.58 sys/arch/hp300/stand/uboot/version: revision 1.19 sys/arch/hp300/stand/common/samachdep.h: revision 1.17 sys/arch/hp300/stand/common/clock.c: revision 1.12 sys/arch/hp300/dev/mcclock_frodo.c: revision 1.1 sys/arch/hp300/stand/Makefile.buildboot: revision 1.34 sys/arch/hp300/conf/files.hp300: revision 1.87 Add sti at sgc framebuffer. Ported from OpenBSD by kiyohara@. Fix a botch on switching from apci (and dca) to MI com(4) 10 years ago. I.e. fix apci device address per FRODO_BASE macro change in frodoreg.h rev 1.2. Now bootloader works with serial console on HP425e (which has only com at frodo). Thanks to miod@openbsd for providing his 425e. Add sti(4) at sgc screen console support. From (the late) OpenBSD/hp300. Tested on HP9000/425e, which was sent from Miod Vallat and demonstrated at Open Source unConference 2014 Kagawa. Check the service switch on 425e to select apci serial console. Taken from OpenBSD/hp300. See the following comment for details: > * Check the service switch. On the 425e, this is a physical > * switch, unlike other frodo-based machines, so we can use it > * as a serial vs internal video selector, since the PROM can not > * be configured for serial console. Add proper RealTime Clock support for HP9000/425e. As the OpenBSD/hp300 page says 425e doesn't have the traditional RTC at intio (as it also lacks DCA 16550 serial at intio?), but after a few hour investigation it turns out that 425e uses mc146818 compatible calendar clock in the Apollo "frodo" utility chip and the frodo chip on 425e actually has the 32kHz OSC and is actually backed up by the onboard lithium battery. Tested on HP425e (with mcclock) and HP362 (with old rtc). Add RTC support for HP9000/425e to bootloader too. Also put several cleanup: - make local functions and variables static - use proper variable types - some KNF Note it turns out that extreme slowness of netboot on hp300 is caused by the too slow access of the traditional RTC chip at intio (i.e. netboot on 425e is so much faster than others). Oh well. Add proper consinit(9) support for sti(4) at sgc framebuffer on hp300. The cnattach functions for sti(4) and service switch check method for 425e in com_frodo.c are taken from OpenBSD. The strategy how to choose the console device in hp300_cninit() is quite diverged from 4.4BSD and OpenBSD so it's tweaked by me. Also put several changes in sti_sgc.c to reduce diffs from OpenBSD/hp300. Tested on 425e and 362 (which still uses gendiofb(4), not sti(4)). XXX: sti(4) requires uvm_km_alloc(9) and uvm_map_protect(9) to copy and call ROM functions on the executable memory region, so it can be called before UVM and related initializations are complete. Probably it's time to consider about MI "deferred consinit()" API in init_main.c (or elsewhere) for modern complicated VM system... Also fix the apci device address in dnkbd.c as apci.c rev 1.12: http://mail-index.netbsd.org/source-changes/2014/04/10/msg053940.html Finally dnkbd(4) is confirmed working at least on bootloader. Thanks again to Miod Vallat. Make the Apollo Domain keyboard actually work. Tested on HP9000/425e and the keyboard model A1630-82001 R2 (RX-60857-HW) provided by Miod Vallat. Mouse support needs more work. Pull random notes on the Apollo Domain keyboard from ancient PR/3528. Bump versions to denote recent 425e related changes. Probe mcclock only on 425e to avoid an extra "not configured" message. Add and enable sti(4) at sgc in install kernels for 425e. Tested on both serial console and framebuffer console. (switched by the service switch on the back panel)
|
1.30.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.32.42.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.32.42.1 |
| 22-Mar-2021 |
thorpej | Mechanical conversion of config_found_sm_loc() -> config_found(). CFARG_IATTR usage needs to be audited.
|
1.33.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|