Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sparc/dev/zs.c
RevisionDateAuthorComments
 1.124  11-Sep-2021  andvar Add missing double p and d for stopped and overriden accordingly.
Fix few more typos along the way, mainly in copy-pasted comments.
 1.123  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.122  24-Apr-2021  thorpej branches: 1.122.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.121  27-Oct-2012  chs branches: 1.121.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.120  26-Jun-2010  tsutsui branches: 1.120.8; 1.120.18;
Remove an unused variable.
 1.119  26-Jun-2010  tsutsui Establish interrupt handlers with proper softc per each zs device
rather than sharing them among all zs devices and searching softc
in handlers.

The latter method is derived from ancient sun3 zs driver which tried
to reduce overhead on autovectored interrupts, but nowadays such hack
might cause recursive global locks on modern SMP capable framework.

Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
on tech-kern@:
http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
and also tested by Jochen Kunz on SS20 with both serial and kbd console.

Ok'ed by mrg@ and dyoung@.
 1.118  04-Jun-2010  macallan make sure we pass a valid consdev pointer to the console keyboard so kbd
knows it's console and passes the right flags to wskbd, now the wskbd will
not drop off the mux when leaving event mode.
Symptoms: now the keyboard should no longer be dead when leaving X and there
should be no more panics caused by it
I tested this on an SS5 and an SS20, may need some more attention and zs.c
sure could use some cleanup - there are a few differences to sparc64 that
really don't make much sense to me, like not passing console flags to zstty
which sparc64 does but sparc avoids, which caused this problem in the first
place.
 1.117  17-Jan-2010  tsutsui branches: 1.117.2; 1.117.4;
Make sure to set ZS_HWFLAG_USE_CONSDEV and zs_consdev into zsc_args
passed to child devices even in !(NWSKBD == 0) case so that zs console
functions are actually used rather than the default prom console.
Fixes stray interrupts on MP machines running GENERIC.MP kernel with
zs serial console.

Ok'ed by mrg@.
 1.116  31-May-2009  martin Properly initialize child attach args to zero - we could end up with
various devices having different ideas about being console otherwise.
 1.115  22-May-2009  mrg add two new functions for z8530tty: zs_chan_lock() and zs_chan_unlock(),
and use them instead of various spl's in the zs.c's.

reviewed by ad and martin.
 1.114  16-May-2009  cegger KNF, same object code generated
 1.113  18-Mar-2009  cegger bcopy -> memcpy
 1.112  17-Nov-2008  martin branches: 1.112.4;
PR port-sparc/39942: ifdef ch0_is_cons declaration and all uses consistently
 1.111  13-Jun-2008  cegger branches: 1.111.2; 1.111.4; 1.111.6;
use device_lookup_private to get softc
 1.110  28-Apr-2008  martin branches: 1.110.2; 1.110.4;
Remove clause 3 and 4 from TNF licenses
 1.109  29-Mar-2008  tsutsui branches: 1.109.2; 1.109.4;
Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.108  27-Nov-2007  ad branches: 1.108.14;
Use the softint API.
 1.107  09-Nov-2007  ad Call zs_lock_init() to set up the chanstate's lock.
 1.106  14-Mar-2007  jdc branches: 1.106.14; 1.106.16; 1.106.20; 1.106.22;
Final steps to for working wscons on sun-4 class machines. Restructure
the previous revision so that we don't tell the common zs code that we
are the console if we're using wscons. Thanks to wrstuden@ for the hints.
 1.105  08-Feb-2007  jdc branches: 1.105.2; 1.105.6; 1.105.8;
First steps for working wscons on sun-4 class machines - recognise the
console keyboard and mouse on them.

We are not there yet because currently both wsdisplay and zstty assume
that they are the console. On sun-4, zstty wins because it attaches
last and overwrites the console device that wscons had set previously.
 1.104  26-Feb-2006  thorpej branches: 1.104.14;
Use device_is_a().
 1.103  16-Nov-2005  uwe branches: 1.103.2; 1.103.4; 1.103.6;
ANSIify function declarations/defintions. Use uint<N>_t.
Propagate "static" to function definitions. Drop trailing whitespace.
Same binary code is produced for GENERIC.MP + KGDB + DDB.
 1.102  30-Jun-2005  macallan branches: 1.102.2; 1.102.8;
Allow sparc64-style attachment of mouse and keyboard via zstty, needed for
wscons support.
Reviewed by uwe.
 1.101  03-Apr-2004  chs add some SUN4D stuff.
zs and zstty no longer need "needs-count" or "needs-flag",
so get rid of those and wild-card the extra zs devices on SUN4D.
 1.100  17-Mar-2004  pk Rename PROM_getprop*() => prom_getprop*().
 1.99  13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.98  15-Jul-2003  lukem __KERNEL_RCSID()
 1.97  28-Jan-2003  pk branches: 1.97.2;
Provide locking required by the interrupt handlers running at IPL_SERIAL.
 1.96  22-Jan-2003  pk Set the interrupt target to the current CPU when directly accessing
the chip for console I/O.
 1.95  01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.94  10-Dec-2002  pk Remove the `flags' argument from bus_intr_establish().
 1.93  09-Dec-2002  pk Finish the switch to the softintr(9) framework.

To make this work, we now have to use separate handler lists for hardware
and software interrupts as the soft interrupt handlers do not return
an `interrupt handled' status.

Thanks to Matt Fredette for providing an initial set of patches on port-sparc.
 1.92  09-Oct-2002  jdc Check only the physical address of serial ports on a Sun 4.

Reviewed by Uwe.
 1.91  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.90  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.89  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.88  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.87  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.86  24-Aug-2002  thorpej Add autoconfiguration support for the Sun4d "bootbus". Add a
zs @ bootbus attachment.
 1.85  11-Mar-2002  pk branches: 1.85.4; 1.85.6;
* `bus_type_t' is gone.
* Use BUS_ADDR() where appropriate to encode I/O space and physical
address offset into a `bus_addr_t' value.
* Drop obio_bus_map() since it's now completely equivalent to bus_space_map()
* Use bus_space_map2() to map device space at a fixed virtual address.
* Remove the virtual address argument from sbus_sbus_addr()
 1.84  26-Sep-2001  eeh branches: 1.84.4;
getprop* -> PROM_getprop*
 1.83  30-Jun-2001  mrg branches: 1.83.2; 1.83.4;
KGDB needs both zs_putc and zs_getc; make them non-static.
 1.82  26-May-2001  pk Pull in "opt_kgdb.h"; see PR#13036.
 1.81  18-Oct-2000  pk branches: 1.81.2;
Account for the top-most 4 bits of obio addresses being zero on sun 4/100
machines, when inferring zs PROM device numbers from the physical address.
 1.80  09-Jul-2000  pk Add a `device class' interrupt level argument (from machine/intr.h)
to bus_interrupt_establish().

It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.
 1.79  04-Jun-2000  cgd branches: 1.79.2;
Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
 1.78  21-Mar-2000  pk branches: 1.78.2;
Delete debugging printf().
 1.77  19-Mar-2000  pk Just don't force the baud rate in the driver, ever.
 1.76  19-Mar-2000  pk Revise console device handling:
* do not require a `zs' driver for console handling
* run the console on PROM primitives until a device recognises
itself as a console device during normal autoconfiguration.
* allow (keyboard) devices to take over the input channel of
the PROM primitive-based console device.

As a result, consinit() is much simplified and does no longer have
to "detect" devices to setup a working console device. This complexity
has moved to individual drivers which interpret the PROM information
after they have attached to decide whether or not to act as a console.
 1.75  14-Mar-2000  jdc Add power management hooks.
 1.74  06-Mar-2000  thorpej - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
 1.73  14-Feb-2000  pk Just skip matching the `slave' property against `cf_unit'.
 1.72  12-Feb-2000  pk Eliminate much of the goo in setting up zs device addressing.
 1.71  21-Nov-1999  pk Check presence of Sbus interrupt properties before using them.
 1.70  07-Nov-1999  pk Handle empty `input/output path' when looking for console device; patch
from Brian D. Chase.
 1.69  27-Mar-1999  wrstuden branches: 1.69.2; 1.69.8; 1.69.10; 1.69.14;
Add pps support. Only enable pps if CLOCAL & !MDMBUF.
 1.68  05-Mar-1999  pk consinit: cover all cases.
 1.67  02-Mar-1999  pk Sanatize consinit() a bit.
 1.66  22-Feb-1999  pk Since V2 & V3 proms already pass us ihandles for stdin and stdout,
there's no need to open the device a second time. It suffices to
just convert the `ihandles' to `phandles'.
 1.65  16-Feb-1999  pk Use promlib version correctly.
 1.64  14-Feb-1999  pk Use the PROMLIB interface.
 1.63  11-Feb-1999  mycroft Minor cleanup.
Make the initializer for BAUDLO depend on PCLK directly; it was incorrect on
some ports where PCLK is not 4.9152MHz.
XXX Is the default value actually used?
 1.62  03-Feb-1999  mycroft Don't set DCD_IE in the frontends. KGDB doesn't even use DCD, and the tty
frontends get it from zsparam() anyway.
 1.61  04-Jul-1998  jonathan defopt DDB.
 1.60  23-Apr-1998  chs fix a timing problem with polled output on sun4c's.
 1.59  30-Mar-1998  mycroft Eliminate cs_heldchar. It is not necessary in my version of the driver.
 1.58  29-Mar-1998  pk obio_bus_probe() => bus_space_probe()
 1.57  21-Mar-1998  pk Account for changed bus attachment scheme.
 1.56  21-Jan-1998  mrg KNF, and use splzs over splhigh in one place.
 1.55  12-Jan-1998  thorpej Update for changes to config.
 1.54  12-Nov-1997  pk If necessary, defer console output until TX interrupt handler runs.
 1.53  03-Nov-1997  mycroft Handle CDTRCTS, for silly Mac-like connector on some models (e.g. IPX).
 1.52  02-Nov-1997  mycroft Set rr0_dcd.
Don't set DCD_IE and CTS_IE here; let the MI code do it.
Handle MDMBUF.
 1.51  22-Oct-1997  gwr Correct the values of zs_unit in consinit(),
so ddb will work on the keyboard/display.
 1.50  18-Oct-1997  gwr branches: 1.50.2;
Use common zs code.
 1.49  31-Aug-1997  pk Allow a BREAK to cause a kgdb_connect().
 1.48  29-Jul-1997  fair branches: 1.48.2;
%x -> 0x%x
 1.47  14-Apr-1997  pk Avoid race for the chip's interrupt pending status bits in zscnputc()
by introducing a single-character queue to defer kernel console output
until the transmitter interrupt handler runs.
 1.46  09-Apr-1997  mrg as per discussion with torek, allow TC=1. also add option
to allow TC=0. the zilog documentation says not to allow
TC=0 -- however, i tested this and it "does work", as far
as i could tell, so, allow this use if so desired.
 1.45  10-Dec-1996  pk Comply with recent autoconfiguration changes. Diffs graciously
supplied by Chris Demetriou.
 1.44  13-Oct-1996  christos backout previous kprintf change
 1.43  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.42  02-Sep-1996  mycroft tty stop functions really should return void, not int, and certainly not both.
 1.41  30-May-1996  pk Put back a `#if defined(SUN4M)' for now.
 1.40  29-May-1996  pk We really need a ring buffer for every unit.
Eliminate extraneous ttyalloc() calls.
 1.39  29-May-1996  mrg find a couple minor nits from previous change.
 1.38  28-May-1996  mrg change zsinfo to a zs_softc, and impliment intr counts. mostly from OpenBSD.
 1.37  01-Apr-1996  christos branches: 1.37.4;
Eliminated dependencies on dev_conf.h
 1.36  31-Mar-1996  pk Various cleanup; mostly trailing spaces/tabs.
 1.35  17-Mar-1996  thorpej New device attachment scheme:

- split softc size and match/attach out from cfdriver into
a new struct cfattach.

- new "attach" directive for files.*. May specify the name of
the cfattach structure, so that devices may be easily attached
to parents with different autoconfiguration semantics.
 1.34  14-Mar-1996  christos Bring prototypes into scope and fix compiler warnings.
 1.33  25-Feb-1996  pk Use CPU-type macros.
 1.32  29-Nov-1995  pk Extend the size of the "soft" FIFOs which reportedly reduces the number
of FIFO overflows on high baud rates.
However, doing so on all 4 ports would cost a whopping 64KB (at 4096 entries
per FIFO) of kernel memory. So, the FIFOs are now allocated at attach time
allowing the size for the keyboard and mouse ports to be reduced (to 128)
which should be adequate for the 1200 baud they use.
 1.31  28-Jun-1995  cgd note that most of dev/ic's contents have changed names
 1.30  26-Jun-1995  pk Small optimisation & 1 fewer depedency on zs_ctty.
 1.29  26-Jun-1995  pk Use ZS_DELAY() in a few more places (from Gordon Ross, cf. sun3/dev/zs.c).
 1.28  21-Apr-1995  pk Implement zstty().
 1.27  11-Apr-1995  mycroft Undo accidental change.
 1.26  11-Apr-1995  mycroft Move CHAN_[AB] into here, and prefix with ZS_.
 1.25  11-Apr-1995  mycroft zsreg.h --> z8530.h
 1.24  01-Mar-1995  pk Better 4/100 support.
 1.23  01-Feb-1995  pk Integrate changes from Chuck Cranor for the Sun 4/100.
Support for multiple register banks on SBUS devices (based on patches
from Francis Dupont).
Highlights:
romaux defines an array of register spaces.
pay attention to `vactype'.
quirks handling 4/100 idiosyncracies.
 1.22  29-Jan-1995  pk TIOC[SC]DTR ioctls.
 1.21  06-Dec-1994  deraadt TIOC[SG]FLAGS from matthew green
 1.20  26-Nov-1994  deraadt i hate ttyX-ignore-cd, but leave it here for a while longer
 1.19  23-Nov-1994  deraadt XXmatch change (and a few __P() as well)
 1.18  20-Nov-1994  deraadt copyright/Id cleanup
 1.17  03-Nov-1994  pk Don't mess with device if it was opened while we napped.
 1.16  02-Nov-1994  deraadt ioctl u_long cmd; and KNF
 1.15  15-Oct-1994  deraadt mapiodev takes a bustype argument now
 1.14  02-Oct-1994  deraadt sun4/300 support works
 1.13  17-Sep-1994  deraadt sbus/* --> dev/*
deal with multiple bus types (start of vme/obio support)
 1.12  20-Aug-1994  deraadt sun4 needs software delays for register accesses
 1.11  21-Jul-1994  deraadt make X11R5 compile easier
 1.10  24-Jun-1994  deraadt branches: 1.10.2;
sun4c -> SUN4C
 1.9  27-May-1994  pk cast to make compiler happy.
 1.8  19-May-1994  deraadt t_stop has been erradicated
 1.7  14-May-1994  deraadt TIOCSBRK/TIOCCBRK
 1.6  05-May-1994  deraadt timeout and ndflush casts
 1.5  23-Mar-1994  pk DDB support
 1.4  14-Feb-1994  deraadt ioctl takes a proc *
 1.3  13-Oct-1993  deraadt fixups for dynamic tty allocation:
cdevsw[]->d_ttys must be initialized
XXstop() functions must be callable from cdevsw[]->d_stop
the console tty is used before vm system is up, and must
allocate it's own clists..
 1.2  11-Oct-1993  deraadt cons.c, zs.c: tty->t_stop doesn't exist here. I think it goes through d_stop
automatically now, but have not checked.
l_ioctl() has no last parameter 'p'
fb.c: move sys/fbio.h to machine/fbio.h
various: typecast parms for timeout() properly
zs.c: extra level of indir in cdevsw[]->d_ttys
 1.1  02-Oct-1993  deraadt Chris Torek's sparc port. Missing lots of things.
 1.10.2.1  22-Jul-1994  cgd from trunk.
 1.37.4.1  02-Jun-1996  mrg pull up tty stats "bug fix".
 1.48.2.1  01-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.50.2.4  08-May-1998  mycroft Pull up 1.59-1.60, per request of mycroft.
 1.50.2.3  14-Nov-1997  mellon Pull rev 1.54 up from trunk (pk)
 1.50.2.2  04-Nov-1997  mellon Pull rev 1.52 and 1.53 up from trunk (mycroft)
 1.50.2.1  23-Oct-1997  mellon Pull rev 1.51 up from trunk
 1.69.14.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.69.10.1  15-Nov-1999  fvdl Sync with -current
 1.69.8.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.69.2.2  29-Mar-2000  he Apply patch (requested by pk):
Fix a NULL pointer dereference when a zs device interrupts during
autoconfiguration of subdevices (keyboard & mouse).
 1.69.2.1  15-Jan-2000  he Pull up revision 1.70 (requested by pk):
Two fixes:
o Fix out of bound indexing of buffer.
o Default to first serial port if console property is absent.
 1.78.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.79.2.2  19-Oct-2000  he Pull up revision 1.81 (requested by pk):
Account for the top-most 4 bits of obio addresses being zero on
sun 4/100 machines when inferring zs PROM device numbers from the
physical address.
 1.79.2.1  19-Jul-2000  mrg pull up sparc/sparc64 bus_intr_establish() changes, necessary for sparc64
(originally done by pk, approved by thorpej):

>Add a `device class' interrupt level argument (from machine/intr.h)
>to bus_interrupt_establish().
>
>It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
>level to devices in PCI slots.
 1.81.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.83.4.1  01-Oct-2001  fvdl Catch up with -current.
 1.83.2.4  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.83.2.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.83.2.2  16-Mar-2002  jdolecek Catch up with -current.
 1.83.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.84.4.7  03-Jan-2003  thorpej Sync with HEAD.

XXX ALT_SWITCH_CODE is not yet LWP'ified.
 1.84.4.6  11-Dec-2002  thorpej Sync with HEAD.
 1.84.4.5  18-Oct-2002  nathanw Catch up to -current.
 1.84.4.4  17-Sep-2002  nathanw Catch up to -current.
 1.84.4.3  27-Aug-2002  nathanw Catch up to -current.
 1.84.4.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.84.4.1  26-Sep-2001  nathanw file zs.c was added on branch nathanw_sa on 2002-04-01 07:42:44 +0000
 1.85.6.1  07-Dec-2002  he Pull up revision 1.92 (requested by jdc in ticket #908):
Check only the physical address of serial ports on a Sun4.
 1.85.4.2  31-Aug-2002  gehenna catch up with -current.
 1.85.4.1  19-May-2002  gehenna Remove hard-coded major.
 1.97.2.5  11-Dec-2005  christos Sync with head.
 1.97.2.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.97.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.97.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.97.2.1  03-Aug-2004  skrll Sync with HEAD
 1.102.8.1  22-Nov-2005  yamt sync with head.
 1.102.2.5  07-Dec-2007  yamt sync with head
 1.102.2.4  15-Nov-2007  yamt sync with head.
 1.102.2.3  03-Sep-2007  yamt sync with head.
 1.102.2.2  26-Feb-2007  yamt sync with head.
 1.102.2.1  21-Jun-2006  yamt sync with head.
 1.103.6.1  22-Apr-2006  simonb Sync with head.
 1.103.4.1  09-Sep-2006  rpaulo sync with head
 1.103.2.1  01-Mar-2006  yamt sync with head.
 1.104.14.1  09-Feb-2007  ad Sync with HEAD.
 1.105.8.1  11-Jul-2007  mjf Sync with head.
 1.105.6.2  03-Dec-2007  ad Sync with HEAD.
 1.105.6.1  10-Apr-2007  ad Sync with head.
 1.105.2.1  24-Mar-2007  yamt sync with head.
 1.106.22.2  08-Dec-2007  mjf Sync with HEAD.
 1.106.22.1  19-Nov-2007  mjf Sync with HEAD.
 1.106.20.1  13-Nov-2007  bouyer Sync with HEAD
 1.106.16.1  09-Jan-2008  matt sync with HEAD
 1.106.14.2  03-Dec-2007  joerg Sync with HEAD.
 1.106.14.1  11-Nov-2007  joerg Sync with HEAD.
 1.108.14.4  17-Jan-2009  mjf Sync with HEAD.
 1.108.14.3  29-Jun-2008  mjf Sync with HEAD.
 1.108.14.2  02-Jun-2008  mjf Sync with HEAD.
 1.108.14.1  03-Apr-2008  mjf Sync with HEAD.
 1.109.4.5  11-Aug-2010  yamt sync with head.
 1.109.4.4  11-Mar-2010  yamt sync with head
 1.109.4.3  20-Jun-2009  yamt sync with head
 1.109.4.2  04-May-2009  yamt sync with head.
 1.109.4.1  16-May-2008  yamt sync with head.
 1.109.2.2  17-Jun-2008  yamt sync with head.
 1.109.2.1  18-May-2008  yamt sync with head.
 1.110.4.1  18-Jun-2008  simonb Sync with head.
 1.110.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.111.6.4  08-Mar-2011  riz Apply patches (requested by mrg in ticket #1564):
sys/arch/sparc/dev/zs.c: patch
sys/arch/sparc/include/cpu.h: patch
sys/arch/sparc/include/z8530var.h: patch
sys/arch/sparc/sparc/cpu.c: patch
sys/arch/sparc/sparc/cpuvar.h: patch
sys/arch/sparc/sparc/db_interface.c: patch
sys/arch/sparc/sparc/genassym.cf: patch
sys/arch/sparc/sparc/intr.c: patch
sys/arch/sparc/sparc/locore.s: patch
sys/arch/sparc/sparc/machdep.c: patch
sys/arch/sparc/sparc/timer.c: patch
sys/arch/sparc/sparc/timer_sun4m.c: patch
sys/arch/sparc/sparc/timervar.h: patch
sys/arch/sparc/sparc/trap.c: patch
sys/arch/sparc/sparc/vm_machdep.c: patch

- fix a panic in savefpstate. idea, and code suggestions from uwe
- convert xpmsg_lock to IPL_SCHED. the old spl/simple_lock code ran at
splsched(), and this significantly helps with stability under load when
running with multiple active CPUs
- in strayintr() don't print about stray zs inters in MP case
- fix a deadlock in xcall()
- consolidate the interrupt evcnt(9) into a full set of per-IPL per-CPU
soft/hard counters
- fix xcall() failure messages in some cases
- addd new ddb command "mach xcall"
- use schedintr() (not schedintr_4m()) on MP or single CPU configurations
- call hardclock() the same way on cpu0 in MP and !MP cases
- request the appropriate stack space for nmi_sun4m, in particular,
make sure we have space for %g2...%g5. now entering ddb via eg,
serial break no longer causes cpu1 to fault.
- give memfault_sun*() some entry points that both gdb and ddb will find.
from tsutsui:
- fix panic in interrupt handlers in zs
 1.111.6.3  16-Jan-2011  bouyer Pull up following revision(s) (requested by mrg in ticket #1526):
sys/arch/sparc/dev/zs.c: revision 1.115
sys/dev/ic/z8530sc.h: revision 1.26
sys/dev/ic/z8530sc.c: revision 1.30
sys/dev/ic/z8530tty.c: revision 1.127
sys/arch/sparc64/dev/zs.c: revision 1.68
add two new functions for z8530tty: zs_chan_lock() and zs_chan_unlock(),
and use them instead of various spl's in the zs.c's.
reviewed by ad and martin.
 1.111.6.2  09-Jun-2009  snj Pull up following revision(s) (requested by martin in ticket #800):
sys/arch/sparc/dev/zs.c: revision 1.116
Properly initialize child attach args to zero - we could end up with
various devices having different ideas about being console otherwise.
 1.111.6.1  18-Nov-2008  snj branches: 1.111.6.1.2;
Pull up following revision(s) (requested by martin in ticket #77):
sys/arch/sparc/dev/zs.c: revision 1.112
PR port-sparc/39942: ifdef ch0_is_cons declaration and all uses
consistently
 1.111.6.1.2.1  09-Jun-2009  snj branches: 1.111.6.1.2.1.2;
Pull up following revision(s) (requested by martin in ticket #800):
sys/arch/sparc/dev/zs.c: revision 1.116
Properly initialize child attach args to zero - we could end up with
various devices having different ideas about being console otherwise.
 1.111.6.1.2.1.2.1  21-Apr-2010  matt sync to netbsd-5
 1.111.4.2  28-Apr-2009  skrll Sync with HEAD.
 1.111.4.1  19-Jan-2009  skrll Sync with HEAD.
 1.111.2.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.112.4.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.117.4.1  03-Jul-2010  rmind sync with head
 1.117.2.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.120.18.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.120.8.1  30-Oct-2012  yamt sync with head
 1.121.52.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.122.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed