History log of /src/sys/arch/mac68k/dev/zs.c |
Revision | | Date | Author | Comments |
1.63 |
| 23-Sep-2023 |
andvar | some whitespace cleanup for debug printf calls.
|
1.62 |
| 23-Sep-2023 |
andvar | change zsprintf to printf. It was defined as printf in include/z8530var.h up to rev 1.4, then removed with conversion to MI 8530 SCC driver back in 1997.
Fixes build with ZSMACDEBUG option enabled for mac68k and macppc.
|
1.61 |
| 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.60 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.59 |
| 24-Apr-2021 |
thorpej | branches: 1.59.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.58 |
| 27-Oct-2009 |
snj | branches: 1.58.78; Drop 3rd and 4th clauses. Approved by gwr@ and wrstuden@ (copyright holders).
|
1.57 |
| 18-Mar-2009 |
cegger | Ansify function definitions w/o arguments. Generated with sed.
|
1.56 |
| 29-Mar-2008 |
tsutsui | branches: 1.56.4; 1.56.12; 1.56.18; Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
|
1.55 |
| 03-Dec-2007 |
ad | branches: 1.55.14; Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high. - Acquire kernel_lock only for interrupts at IPL_VM. - Implement threaded soft interrupts.
|
1.54 |
| 09-Nov-2007 |
ad | Call zs_lock_init() to set up the chanstate's lock.
|
1.53 |
| 08-Mar-2007 |
tsutsui | branches: 1.53.2; 1.53.18; 1.53.20; 1.53.24; 1.53.26; MI softintr(9)'fy. Probably problematic, but LC630 is running at single user.
|
1.52 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.51 |
| 24-Nov-2006 |
wiz | branches: 1.51.4; s/independant/independent/, from Zafer.
|
1.50 |
| 28-Mar-2006 |
thorpej | branches: 1.50.8; 1.50.10; Use device_unit().
|
1.49 |
| 11-Dec-2005 |
christos | branches: 1.49.4; 1.49.6; 1.49.8; 1.49.10; 1.49.12; merge ktrace-lwp.
|
1.48 |
| 16-Jun-2005 |
jmc | branches: 1.48.2; Fixes for volatile problems
|
1.47 |
| 16-Jan-2005 |
chs | branches: 1.47.2; only match one instance (instead of an unlimited number). simplify by not pretending that mac68k can have more than 1 zsc.
|
1.46 |
| 15-Jan-2005 |
chs | de-__P, remove register, ansify, b* -> mem*.
|
1.45 |
| 14-Dec-2004 |
christos | Move the definition of sccA from zc.c to machdep.c and always initialize it. This way we save a mess of #ifdefs. XXX: This code is disgusting. Drivers should not communicate with the rest of the kernel by means of global variables.
|
1.44 |
| 04-Dec-2003 |
keihan | netbsd.org -> NetBSD.org
All "netbsd.org" is now gone from src/sys/arch.
|
1.43 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.42 |
| 28-Jan-2003 |
pk | branches: 1.42.2; Provide locking required by the interrupt handlers running at IPL_SERIAL.
|
1.41 |
| 06-Jan-2003 |
wiz | interrupt with two rs.
|
1.40 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.39 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.38 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.37 |
| 27-Sep-2002 |
provos | remove trailing \n in panic(). approved perry.
|
1.36 |
| 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.35 |
| 17-Mar-2002 |
atatat | branches: 1.35.4; 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.34 |
| 19-Jun-2001 |
wiz | branches: 1.34.2; 1.34.4; 1.34.8; `existent', not `existant'
|
1.33 |
| 25-Jun-2000 |
wrstuden | branches: 1.33.2; Fix logic bug which would keep PPS from working. Noticed by:
Charles Carvalho <carvalho@cisco.com>
|
1.32 |
| 02-Nov-1999 |
scottr | branches: 1.32.6; [Redo] Allow rates higher than 57600, per PR 8070. Change originally from Bill Studenmund.
|
1.31 |
| 27-Mar-1999 |
wrstuden | branches: 1.31.2; 1.31.8; 1.31.10; 1.31.12; Enable pps support, only if CLOCAL set & MDMBUF clear and no clock present.
|
1.30 |
| 23-Mar-1999 |
wrstuden | Oops. mac68k does NOT use PCLK as a clock source, so don't enable it in the default channel setup.
|
1.29 |
| 11-Feb-1999 |
mycroft | branches: 1.29.2; 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.28 |
| 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.27 |
| 22-Oct-1998 |
scottr | Defopt ALTXBUTTONS, DISABLE_EXT_CACHE, and ZS_CONSOLE_ABORT.
|
1.26 |
| 10-Sep-1998 |
scottr | Use correct devices for zs driver on AVs. From Dave Huang (PR 6107).
|
1.25 |
| 12-Aug-1998 |
scottr | A simple, obvious optimization, now that the loop has been removed from zshard(). Pointed out by Bill Studenmund.
|
1.24 |
| 12-Aug-1998 |
scottr | New framework for handling processor interrupts, derived in part from the hp300 port.
- Interrupts 3-6 use this immediately. Interrupt 7 is a special case, and the VIA interrupts (1 and 2) will be addressed when that code is rototilled.
- Modify the zs front end to register with the appropriate interrupt controller: through the PSC on the AV Quadras, and direct to interrupt 4 on the rest. Arrange to have the appropriate zsc_softc supplied to us at interrupt time.
- Modify the direct ADB driver (and its PowerManager cousin) to call intr_dispatch(), rather than zshard(). XXX This is a kludge, but at least limits the brokenness to the ADB drivers, now.
As a side effect, this should fix PR 5590. Thanks to Bill Studenmund for correctly determining the cause of the problem reported there.
|
1.23 |
| 04-Jul-1998 |
jonathan | defopt DDB.
|
1.22 |
| 02-Jul-1998 |
wrstuden | Fixup last revision to zs.c. Keep a lot of the comment cleanup, and keep the explicit clearing of interupts in zscnprobe.
|
1.21 |
| 30-Jun-1998 |
wrstuden | Overkill patches to make serial console work again. Should also make serial echo work, but not sure. Tested by Paul Goyette.
A few of these changes can probably be backed out, but I'm not sure which. This part should work for now, and get things going again. These fixes should also get rid of the problem of things crashing just as zstty0 gets configured.
|
1.20 |
| 05-May-1998 |
scottr | Add the remaining kgdb pieces from sun3/hp300, with some mac68k-specific adjustments to initialization.
|
1.19 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.18 |
| 16-Dec-1997 |
wrstuden | Add initialization code for cs_wr5_dtr as the M.I. layer now tests it in initializing during autoconfig. Similar to sys/arch/sun3/dev/zs.c revision 1.47. Ought to fix hangs at first tty access reported by Johnny Lam, <jlbg+@andrew.cmu.edu>.
|
1.17 |
| 06-Dec-1997 |
scottr | Shades of rev 1.13: Really, we shouldn't call Debugger() if we haven't got ddb in the kernel. Fixes PR 4632.
|
1.16 |
| 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.15 |
| 20-Oct-1997 |
scottr | branches: 1.15.2; Convert to MI 8530 SCC driver, from Bill Studenmund. The new front end also supports DTR/CTS flow control.
|
1.14 |
| 11-Aug-1997 |
scottr | Make #include directives consistent. All MD headers are of the form:
#include <mac68k/{dev,mac68k}/foo.h>
|
1.13 |
| 15-Jun-1997 |
scottr | branches: 1.13.4; Don't call Debugger() if we don't have ddb. Fixes PR 3744.
|
1.12 |
| 18-Dec-1996 |
scottr | Work around another bogus uninitialized warning, and fix a legitimate one. Clearly mark the former.
XXX The bogus warnings show up with -O, but not -O2. Unfortunately, NetBSD/mac68k can't (yet) use -O2.
|
1.11 |
| 16-Dec-1996 |
scottr | Convert all foo_match() functions to use a `struct cfdata *' for their second argument. The NuBus autoconfig code had to be reorganized as a result of this, and looks much more like a directly-attached bus now. These changes eliminate __BROKEN_INDIRECT_CONFIG.
|
1.10 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.9 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.8 |
| 16-Sep-1996 |
scottr | Somehow the last change got mangled. Do over.
|
1.7 |
| 16-Sep-1996 |
scottr | - Add a ZS_CONSOLE_ABORT option to enable a serial console break to force a drop to the system debugger. WARNING: this used to be the default behavior! Modify custom kernel configs accordingly. - Check for ZS_HWFLAG_CONABRT in zs_abort(), and don't abort if it's not set.
|
1.6 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.5 |
| 09-Jun-1996 |
briggs | Add machine/viareg for prototype of via_set_modem().
|
1.4 |
| 07-Jun-1996 |
briggs | Changes from Bill Studenmund to support external clocks on the modem port.
|
1.3 |
| 07-Jun-1996 |
briggs | Patches from Bill Studenmund to get serial default settings from the booter.
|
1.2 |
| 23-May-1996 |
briggs | Change the console banner message.
|
1.1 |
| 18-May-1996 |
briggs | branches: 1.1.4; Serial driver with interface to a slightly modified version of the machine- independent z8530 driver. When that driver is updated, the local copy of those files may be removed. From Bill Studenmund. Compiler warnings fixed by me.
|
1.1.4.4 |
| 09-Jun-1996 |
briggs | Bring #include <machine/viareg.h> from trunk for via_set_modem() prototype.
|
1.1.4.3 |
| 07-Jun-1996 |
briggs | Pull up changes from trunk. Console fix and external serial clock support.
|
1.1.4.2 |
| 07-Jun-1996 |
briggs | Bring in last changes from -current. ADB fixes for MacTV and serial state from the booter.
|
1.1.4.1 |
| 01-Jun-1996 |
scottr | Pull up version 1.2 from the main branch.
|
1.13.4.1 |
| 23-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.15.2.3 |
| 17-Dec-1997 |
mellon | Pull rev 1.18 up from trunk (scottr)
|
1.15.2.2 |
| 09-Dec-1997 |
thorpej | Sync w/ trunk: Make it work without DDB (scottr)
|
1.15.2.1 |
| 04-Nov-1997 |
mellon | Pull rev 1.16 up from trunk (mycroft)
|
1.29.2.2 |
| 02-Nov-1999 |
scottr | [Redo] Sync with main branch.
|
1.29.2.1 |
| 16-May-1999 |
scottr | Sync with main branch.
|
1.31.12.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.31.10.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
1.31.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.31.2.2 |
| 27-Jun-2000 |
he | Pull up revision 1.33 (requested by wrstuden): Correct a bug in handling of CLOCAL and MDMBUF flags.
|
1.31.2.1 |
| 20-Nov-1999 |
he | Pull up revision 1.32 (requested by wrstuden): Allow rates higher than 57600, fixing PR#8070
|
1.32.6.1 |
| 03-Jul-2000 |
thorpej | Pull up rev. 1.33: Fix logic bug which would keep PPS from working. Noticed by:
Charles Carvalho <carvalho@cisco.com>
|
1.33.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.34.8.6 |
| 07-Jan-2003 |
thorpej | Sync with HEAD.
|
1.34.8.5 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.34.8.4 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.34.8.3 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.34.8.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.34.8.1 |
| 19-Jun-2001 |
nathanw | file zs.c was added on branch nathanw_sa on 2002-04-01 07:40:49 +0000
|
1.34.4.1 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.34.2.2 |
| 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.34.2.1 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.35.4.1 |
| 19-May-2002 |
gehenna | Replace the access to devsw table and the hard-coded majors with devsw API.
|
1.42.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.42.2.5 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.42.2.4 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.42.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.42.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.42.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.47.2.2 |
| 16-Jan-2005 |
chs | only match one instance (instead of an unlimited number). simplify by not pretending that mac68k can have more than 1 zsc.
|
1.47.2.1 |
| 16-Jan-2005 |
chs | file zs.c was added on branch kent-audio2 on 2005-01-16 00:33:00 +0000
|
1.48.2.5 |
| 07-Dec-2007 |
yamt | sync with head
|
1.48.2.4 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.48.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.48.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.48.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.49.12.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.49.10.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.49.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.49.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.49.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.50.10.1 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.50.8.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.51.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.53.26.2 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.53.26.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.53.24.1 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.53.20.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.53.18.2 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.53.18.1 |
| 11-Nov-2007 |
joerg | Sync with HEAD.
|
1.53.2.1 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.55.14.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.56.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.56.12.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.56.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.56.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.58.78.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.59.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|