The NetBSD Project

CVS log for src/sys/dev/ic/com.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.384 / (download) - annotate - [select for diffs], Tue Apr 11 13:01:41 2023 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.383: +3 -3 lines
Diff to previous 1.383 (colored) to selected 1.12.2.11 (colored)

com(4): Note ttylock in comment, not tty_lock.

Revision 1.383 / (download) - annotate - [select for diffs], Tue Apr 11 12:55:59 2023 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.382: +3 -2 lines
Diff to previous 1.382 (colored) to selected 1.12.2.11 (colored)

com(4): Note timecounter_lock in lock order comments.

Revision 1.382 / (download) - annotate - [select for diffs], Fri Dec 9 00:35:58 2022 UTC (15 months, 2 weeks ago) by knakahara
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.381: +7 -29 lines
Diff to previous 1.381 (colored) to selected 1.12.2.11 (colored)

Revert com.c:r1.381 because i386/qemu cannot boot.  Pointed out by gson@n.o and martin@n.o.

Revision 1.381 / (download) - annotate - [select for diffs], Thu Dec 8 09:08:49 2022 UTC (15 months, 2 weeks ago) by knakahara
Branch: MAIN
Changes since 1.380: +29 -7 lines
Diff to previous 1.380 (colored) to selected 1.12.2.11 (colored)

Fix hang up writing /dev/console rarely in specific environments.

Some BMC seems to require these syncronous operations.  If not,
it does not send transmit completion interrupts for some reason.

Revision 1.380 / (download) - annotate - [select for diffs], Sat Dec 3 11:28:38 2022 UTC (15 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.379: +6 -4 lines
Diff to previous 1.379 (colored) to selected 1.12.2.11 (colored)

KNF a comment

Revision 1.379 / (download) - annotate - [select for diffs], Wed Oct 26 23:38:09 2022 UTC (17 months ago) by riastradh
Branch: MAIN
Changes since 1.378: +4 -6 lines
Diff to previous 1.378 (colored) to selected 1.12.2.11 (colored)

ddb/db_active.h: New home for extern db_active.

This can be included unconditionally, and db_active can then be
queried unconditionally; if DDB is not in the kernel, then db_active
is a constant zero.  Reduces need for #include opt_ddb.h, #ifdef DDB.

Revision 1.378 / (download) - annotate - [select for diffs], Mon Oct 3 20:15:50 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.377: +10 -11 lines
Diff to previous 1.377 (colored) to selected 1.12.2.11 (colored)

com(4): Nix quirky `integrate' macro.

Just use `static inline' like everything else.

Revision 1.377 / (download) - annotate - [select for diffs], Mon Oct 3 19:59:21 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.376: +5 -10 lines
Diff to previous 1.376 (colored) to selected 1.12.2.11 (colored)

com(4): Omit needless spltty in comstart.

This is called either via tp->t_oproc, which is done with tty_lock
held (thus, at IPL_VM = IPL_TTY), or from comparam which is called at
IPL_TTY, either via comopen or tp->t_param.

Revision 1.376 / (download) - annotate - [select for diffs], Mon Oct 3 19:58:48 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.375: +2 -20 lines
Diff to previous 1.375 (colored) to selected 1.12.2.11 (colored)

com(4): Nix dead code.

This was introduced in rev. 1.292, whose commit message was...
`Delete dead code.'  I guess December 6, 2009 was Opposite Day?

Revision 1.375 / (download) - annotate - [select for diffs], Mon Oct 3 19:57:41 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.374: +6 -2 lines
Diff to previous 1.374 (colored) to selected 1.12.2.11 (colored)

com(4): Comment on lock order.

Revision 1.374 / (download) - annotate - [select for diffs], Mon Oct 3 19:26:35 2022 UTC (17 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.373: +5 -5 lines
Diff to previous 1.373 (colored) to selected 1.12.2.11 (colored)

com(4): Update confusing comment from decades ago to reflect now.

No functional change.

Revision 1.373 / (download) - annotate - [select for diffs], Fri Nov 12 21:57:13 2021 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.372: +109 -8 lines
Diff to previous 1.372 (colored) to selected 1.12.2.11 (colored)

com: Add support for 32-bit IO accesses.

Revision 1.372 / (download) - annotate - [select for diffs], Sat Oct 30 11:43:17 2021 UTC (2 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.371: +5 -3 lines
Diff to previous 1.371 (colored) to selected 1.12.2.11 (colored)

For the DW APB busy bit workaround, only attempt to re-apply LCR and DLB
settings for non-console devices. In the console case, simply clear the
busy bit and continue. Fixes an interrupt storm observed on Macchiatobin.

Revision 1.371 / (download) - annotate - [select for diffs], Thu Oct 21 10:22:54 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.370: +3 -2 lines
Diff to previous 1.370 (colored) to selected 1.12.2.11 (colored)

Restore 16-byte FIFO for ns16550a, accidentally lost in r1.344.

Spotted by msaitoh. Thanks!

Revision 1.370 / (download) - annotate - [select for diffs], Wed Oct 20 01:09:49 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.369: +7 -7 lines
Diff to previous 1.369 (colored) to selected 1.12.2.11 (colored)

- microtime -> microuptime
- avoid kpause with timeo=0

Revision 1.369 / (download) - annotate - [select for diffs], Thu Oct 14 09:56:12 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.368: +7 -10 lines
Diff to previous 1.368 (colored) to selected 1.12.2.11 (colored)

- use microtime instead of getmicrotime, suggested by thorpej
- use ttclos for wchan even though we are sleeping in comopen now

Revision 1.368 / (download) - annotate - [select for diffs], Tue Oct 12 08:09:50 2021 UTC (2 years, 5 months ago) by kre
Branch: MAIN
Changes since 1.367: +3 -2 lines
Diff to previous 1.367 (colored) to selected 1.12.2.11 (colored)


Note that while sleeping (HUPCL), time passes.
Try to avoid the otherwise infinite loop.

Revision 1.367 / (download) - annotate - [select for diffs], Tue Oct 12 06:25:17 2021 UTC (2 years, 5 months ago) by kre
Branch: MAIN
Changes since 1.366: +7 -4 lines
Diff to previous 1.366 (colored) to selected 1.12.2.11 (colored)


Now Jason has made this build, avoid a 50+ year
sleep to implement HUPCL.

Revision 1.366 / (download) - annotate - [select for diffs], Mon Oct 11 18:39:06 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.365: +17 -6 lines
Diff to previous 1.365 (colored) to selected 1.12.2.11 (colored)

com: speed up close with HUPCL set

Instead of incurring a 1s penalty on close of a com device with HUPCL set,
defer the sleep until the next open, and only sleep if necessary.

This has a side effect of making `ttyflags -a` with a default install not
pause for 1s for every non-console com device, which happens every boot
via /etc/rc.d/ttys.

Revision 1.363.2.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:23 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.363: +7 -5 lines
Diff to previous 1.363 (colored) next main 1.364 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.365 / (download) - annotate - [select for diffs], Sat Jul 31 10:04:12 2021 UTC (2 years, 7 months ago) by tnn
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.364: +6 -5 lines
Diff to previous 1.364 (colored) to selected 1.12.2.11 (colored)

only read cpr register if we're going to use the value

Revision 1.364 / (download) - annotate - [select for diffs], Fri Jul 30 12:46:46 2021 UTC (2 years, 7 months ago) by tnn
Branch: MAIN
Changes since 1.363: +4 -3 lines
Diff to previous 1.363 (colored) to selected 1.12.2.11 (colored)

com(4): fix FIFO for DW_APB on Allwinner A20 (got broken by com.c 1.360)

Older DesignWare UARTs do not advertise their FIFO length so we must
provide it via device properties.

Revision 1.361.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:44 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.361: +14 -10 lines
Diff to previous 1.361 (colored) next main 1.362 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.361.4.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:44:51 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.361: +14 -10 lines
Diff to previous 1.361 (colored) next main 1.362 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.363 / (download) - annotate - [select for diffs], Thu Mar 25 05:34:49 2021 UTC (3 years ago) by rin
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.362: +11 -7 lines
Diff to previous 1.362 (colored) to selected 1.12.2.11 (colored)

Introduce COM_HW_BROKEN_ETXRDY bit in sc_hwflags; push TX queue if
possible in comintr() even if IIR_NOPEND is asserted.

Combined with sc_poll_ticks, this flag works around HW bug, by which
ETXRDY interrupts are (sometimes) lost.

Revision 1.362 / (download) - annotate - [select for diffs], Thu Mar 25 05:33:59 2021 UTC (3 years ago) by rin
Branch: MAIN
Changes since 1.361: +5 -5 lines
Diff to previous 1.361 (colored) to selected 1.12.2.11 (colored)

Introduce sc_poll_ticks and obsolete COM_HW_POLL bit in sc_hwflags.
Polling is scheduled at every sc_poll_ticks ticks.

This is useful to work around H/W bug, by which interrupts are lost
*sometimes*; interrupt-based I/O mostly works and no need for polling
every counter ticks.

Revision 1.361 / (download) - annotate - [select for diffs], Wed Sep 30 14:56:34 2020 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
Branch point for: thorpej-futex, thorpej-cfargs
Changes since 1.360: +3 -2 lines
Diff to previous 1.360 (colored) to selected 1.12.2.11 (colored)

Set sc_fifolen=1 for the no fifo case

Revision 1.360 / (download) - annotate - [select for diffs], Mon Sep 28 11:33:15 2020 UTC (3 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.359: +36 -16 lines
Diff to previous 1.359 (colored) to selected 1.12.2.11 (colored)

Auto-detect DW APB UART FIFO length and print the FIFO length when enabled
instead of just "working fifo".

Revision 1.359 / (download) - annotate - [select for diffs], Tue May 26 13:24:52 2020 UTC (3 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.358: +7 -7 lines
Diff to previous 1.358 (colored) to selected 1.12.2.11 (colored)

Make the readahead-while-sending-output code conditional in
com_common_putc(), only erquest readahead before interrupts are enabled
and when called from comcnputc().
Fixes PR kern/55286.

Revision 1.358 / (download) - annotate - [select for diffs], Fri May 1 07:27:51 2020 UTC (3 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.357: +4 -4 lines
Diff to previous 1.357 (colored) to selected 1.12.2.11 (colored)

Get rid of needless __predict_true() and move a comment slightly.

Revision 1.348.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:21 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.348.2.2: +1 -6 lines
Diff to previous 1.348.2.2 (colored) to branchpoint 1.348 (colored) next main 1.349 (colored) to selected 1.12.2.11 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.348.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:06 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.348.2.1: +7 -4 lines
Diff to previous 1.348.2.1 (colored) to branchpoint 1.348 (colored) to selected 1.12.2.11 (colored)

Merge changes from current as of 20200406

Revision 1.356.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:08 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.356: +7 -4 lines
Diff to previous 1.356 (colored) next main 1.357 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.357 / (download) - annotate - [select for diffs], Sat Feb 1 15:24:04 2020 UTC (4 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.356: +7 -4 lines
Diff to previous 1.356 (colored) to selected 1.12.2.11 (colored)

Use designated initializers

Revision 1.356 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:35 2019 UTC (4 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.355: +3 -8 lines
Diff to previous 1.355 (colored) to selected 1.12.2.11 (colored)

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.348.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:10 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.348: +93 -44 lines
Diff to previous 1.348 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.346.2.4 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:26 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.346.2.3: +23 -9 lines
Diff to previous 1.346.2.3 (colored) to branchpoint 1.346 (colored) next main 1.347 (colored) to selected 1.12.2.11 (colored)

Synch with HEAD

Revision 1.355 / (download) - annotate - [select for diffs], Fri Jan 11 23:10:40 2019 UTC (5 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.354: +23 -9 lines
Diff to previous 1.354 (colored) to selected 1.12.2.11 (colored)

Simplify regmap initialization, and fix an regmap issue that
affected TI OMAP (LCR register would get clobbered due to
using the wrong offset for the MDR1 register) reported by Lwazi Dube
(who also found the root cause).

Revision 1.346.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:48 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.346.2.2: +73 -38 lines
Diff to previous 1.346.2.2 (colored) to branchpoint 1.346 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.354 / (download) - annotate - [select for diffs], Tue Dec 11 06:34:00 2018 UTC (5 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.353: +19 -2 lines
Diff to previous 1.353 (colored) to selected 1.12.2.11 (colored)

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.

Revision 1.353 / (download) - annotate - [select for diffs], Sun Dec 9 16:00:40 2018 UTC (5 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.352: +12 -3 lines
Diff to previous 1.352 (colored) to selected 1.12.2.11 (colored)

sparc64 doesn't have a scalar bus_space_handle_t, so cope with this.
Also, add a comment about why we're using the dummy / nil space handle
in the first place.

Revision 1.352 / (download) - annotate - [select for diffs], Sat Dec 8 21:14:37 2018 UTC (5 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.351: +2 -19 lines
Diff to previous 1.351 (colored) to selected 1.12.2.11 (colored)

Remove the COM_REGMAP option -- just use it all the time.  While here,
garbage-collect the COM_FUNCMAP and COM_AU1X00 options, as there are
not used anywhere.

Revision 1.351 / (download) - annotate - [select for diffs], Sat Dec 8 17:46:13 2018 UTC (5 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.350: +27 -21 lines
Diff to previous 1.350 (colored) to selected 1.12.2.11 (colored)

Clean up initialization of com_regs structure, in preparation for
some additional changers.

Revision 1.350 / (download) - annotate - [select for diffs], Fri Nov 30 16:26:19 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.349: +17 -2 lines
Diff to previous 1.349 (colored) to selected 1.12.2.11 (colored)

Add support for com(4) without an interrupt by setting the COM_HW_POLL flag

Revision 1.349 / (download) - annotate - [select for diffs], Wed Nov 28 22:28:46 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.348: +9 -4 lines
Diff to previous 1.348 (colored) to selected 1.12.2.11 (colored)

Add support for a "force_console" property, where when set, reuses the console dev configuration

Revision 1.346.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:50 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.346.2.1: +6 -6 lines
Diff to previous 1.346.2.1 (colored) to branchpoint 1.346 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.348 / (download) - annotate - [select for diffs], Sun May 27 17:05:06 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.347: +6 -6 lines
Diff to previous 1.347 (colored) to selected 1.12.2.11 (colored)

Rename COM_TYPE_SUNXI -> COM_TYPE_DW_APB

Revision 1.346.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 01:59:57 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.346: +2 -4 lines
Diff to previous 1.346 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.347 / (download) - annotate - [select for diffs], Sun Apr 8 13:38:32 2018 UTC (5 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Changes since 1.346: +2 -4 lines
Diff to previous 1.346 (colored) to selected 1.12.2.11 (colored)

Remove COM_AWIN option

Revision 1.346 / (download) - annotate - [select for diffs], Mon Dec 4 09:55:37 2017 UTC (6 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.345: +5 -4 lines
Diff to previous 1.345 (colored) to selected 1.12.2.11 (colored)

Put back SUNXI definitions in the COM_REGMAP case; com.c uses them
without #ifdef COM_AWIN.
To be safe, expand the register map to 42 entries.

Revision 1.306.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:03 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.306.2.3: +240 -126 lines
Diff to previous 1.306.2.3 (colored) to branchpoint 1.306 (colored) next main 1.307 (colored) to selected 1.12.2.11 (colored)

update from HEAD

Revision 1.339.10.1 / (download) - annotate - [select for diffs], Mon Nov 6 10:29:06 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.339: +15 -2 lines
Diff to previous 1.339 (colored) next main 1.340 (colored) to selected 1.12.2.11 (colored)

Pull up following revision(s) (requested by martin in ticket #338):
	sys/arch/sparc64/dev/sab.c: revision 1.55
	sys/dev/ic/com.c: revision 1.345
	sys/dev/ic/z8530tty.c: revision 1.132
	sys/dev/sun/sunkbd.c: revision 1.30
	sys/dev/sun/sunms.c: revision 1.33
	sys/sys/tty.h: revision 1.94
As discussed on tech-kern: define a new tty internal state flag: TS_KERN_ONLY
Implement it in a few tty drivers. If this flag is set, the underlying
hardware is used by another driver and userland has no right to open
it. A few uses will appear soon in sys/dev/sun/sun{kbd,ms}.c.
--
PR port-sparc64/52622: mark the parent device as TS_KERN_ONLY,
so userland will not touch it (and change serial params w/o our
control).

Revision 1.345 / (download) - annotate - [select for diffs], Tue Oct 31 10:45:19 2017 UTC (6 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.344: +15 -2 lines
Diff to previous 1.344 (colored) to selected 1.12.2.11 (colored)

As discussed on tech-kern: define a new tty internal state flag: TS_KERN_ONLY

Implement it in a few tty drivers. If this flag is set, the underlying
hardware is used by another driver and userland has no right to open
it. A few uses will appear soon in sys/dev/sun/sun{kbd,ms}.c.

Revision 1.344 / (download) - annotate - [select for diffs], Sun Oct 29 14:06:08 2017 UTC (6 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.343: +112 -120 lines
Diff to previous 1.343 (colored) to selected 1.12.2.11 (colored)

Make all of the COM_xxx type options runtime selectable. Kernel configs
with the existing options (COM_16650, COM_16750, COM_AWIN, COM_HAYESP, and
COM_PXA2X0) will select the correct type in com_attach_subr. New code
should specify the com type by passing COM_TYPE_xxx to comcnattach and/or
setting sc_type.

Revision 1.343 / (download) - annotate - [select for diffs], Sat Oct 28 04:53:55 2017 UTC (6 years, 5 months ago) by riastradh
Branch: MAIN
Changes since 1.342: +4 -4 lines
Diff to previous 1.342 (colored) to selected 1.12.2.11 (colored)

Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.329.2.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:03 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.329.2.4: +13 -2 lines
Diff to previous 1.329.2.4 (colored) to branchpoint 1.329 (colored) next main 1.330 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.342 / (download) - annotate - [select for diffs], Thu Aug 10 13:25:49 2017 UTC (6 years, 7 months ago) by nat
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.341: +3 -3 lines
Diff to previous 1.341 (colored) to selected 1.12.2.11 (colored)

Report AUXUART fifo size on rpi3 to 1 byte.  This prevents bluetooth
errors using the h5 protocol.

Revision 1.341 / (download) - annotate - [select for diffs], Mon Jul 31 23:53:25 2017 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.340: +5 -2 lines
Diff to previous 1.340 (colored) to selected 1.12.2.11 (colored)

Broadcom AUX UART doesn't seem to set LSR RXRDY bit when data is available
in the RX FIFO.

Revision 1.340 / (download) - annotate - [select for diffs], Mon Jul 31 09:25:14 2017 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.339: +10 -2 lines
Diff to previous 1.339 (colored) to selected 1.12.2.11 (colored)

Add COM_TYPE_BCMAUXUART type for BCM2835 AUX UART.

Revision 1.327.2.1 / (download) - annotate - [select for diffs], Wed Jun 22 08:26:05 2016 UTC (7 years, 9 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.327: +40 -5 lines
Diff to previous 1.327 (colored) next main 1.328 (colored) to selected 1.12.2.11 (colored)

Pull up following revision(s) (requested by bouyer in ticket #1178):
	sys/arch/arm/allwinner/files.awin: revision 1.36
	sys/conf/files: revision 1.1159
	sys/dev/ic/com.c: revision 1.339
	sys/dev/ic/comreg.h: revision 1.25
	sys/dev/ic/comvar.h: revision 1.82
	sys/dev/ic/ns16550reg.h: revision 1.11
The UART in the allwiner SoCs is not full-compatible with the 16550, and
it's not a 16750 either. Like the 16750 it has the IIR_BUSY interrupt,
which is triggered when writing to LCR while the chip
can't accept it. But unlike the 16750, it has a specific register,
HALT, to allow writing to the LCR and divisor registers, and then
commit the changes.
Tested on an A20 SoC, changing the baud rate while keeping the
tty device open and incoming data.

Revision 1.329.2.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:21 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.329.2.3: +40 -5 lines
Diff to previous 1.329.2.3 (colored) to branchpoint 1.329 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.339 / (download) - annotate - [select for diffs], Fri May 27 20:01:49 2016 UTC (7 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.338: +40 -5 lines
Diff to previous 1.338 (colored) to selected 1.12.2.11 (colored)

The UART in the allwiner SoCs is not full-compatible with the 16550, and
it's not a 16750 either. Like the 16750 it has the IIR_BUSY interrupt,
which is triggered when writing to LCR while the chip
can't accept it. But unlike the 16750, it has a specific register,
HALT, to allow writing to the LCR and divisor registers, and then
commit the changes.
Tested on an A20 SoC, changing the baud rate while keeping the
tty device open and incoming data.

Revision 1.329.2.3 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:49 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.329.2.2: +18 -7 lines
Diff to previous 1.329.2.2 (colored) to branchpoint 1.329 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.338 / (download) - annotate - [select for diffs], Mon Dec 14 23:57:30 2015 UTC (8 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.337: +16 -5 lines
Diff to previous 1.337 (colored) to selected 1.12.2.11 (colored)

Fix TX FIFO on Tegra

Revision 1.337 / (download) - annotate - [select for diffs], Mon Nov 2 17:45:13 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.336: +4 -4 lines
Diff to previous 1.336 (colored) to selected 1.12.2.11 (colored)

PR/50395: Vicente Chaves de Melo: Loss of characters in serial port
communication between gdb and kgdb_stub: switch to line break interrupt
both when entering KGDB and also on shutdown so we can re-enter the debugger
with BREAK.

Revision 1.329.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:07 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.329.2.1: +20 -15 lines
Diff to previous 1.329.2.1 (colored) to branchpoint 1.329 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.336 / (download) - annotate - [select for diffs], Mon May 4 22:59:36 2015 UTC (8 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.335: +12 -12 lines
Diff to previous 1.335 (colored) to selected 1.12.2.11 (colored)

For Tegra K1, set IE_RX_TIMEOUT (bit 4) in IER register. RX_TIMEOUT occurs
when data has been sitting in the Rx FIFO for more than 4 character times
without being read because there is not enough data to reach the trigger
level. With this change, enable FIFO usage for Tegra UARTs.

Revision 1.335 / (download) - annotate - [select for diffs], Mon May 4 20:25:48 2015 UTC (8 years, 10 months ago) by macallan
Branch: MAIN
Changes since 1.334: +6 -4 lines
Diff to previous 1.334 (colored) to selected 1.12.2.11 (colored)

fix pasto, use SET() and CLR()
thanks jmcneill@

Revision 1.334 / (download) - annotate - [select for diffs], Sun May 3 17:22:54 2015 UTC (8 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.333: +7 -2 lines
Diff to previous 1.333 (colored) to selected 1.12.2.11 (colored)

add COM_TYPE_TEGRA

Revision 1.333 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:24 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.332: +3 -5 lines
Diff to previous 1.332 (colored) to selected 1.12.2.11 (colored)

Convert sys/dev to use <sys/rndsource.h>.

Revision 1.329.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:09 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.329: +47 -12 lines
Diff to previous 1.329 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.332 / (download) - annotate - [select for diffs], Sat Mar 7 22:13:16 2015 UTC (9 years ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.331: +6 -6 lines
Diff to previous 1.331 (colored) to selected 1.12.2.11 (colored)

KNF

Revision 1.331 / (download) - annotate - [select for diffs], Sat Mar 7 21:53:33 2015 UTC (9 years ago) by skrll
Branch: MAIN
Changes since 1.330: +3 -3 lines
Diff to previous 1.330 (colored) to selected 1.12.2.11 (colored)

Fix build.

Hi mipsallan

Revision 1.330 / (download) - annotate - [select for diffs], Sat Mar 7 15:49:20 2015 UTC (9 years ago) by macallan
Branch: MAIN
Changes since 1.329: +46 -11 lines
Diff to previous 1.329 (colored) to selected 1.12.2.11 (colored)

more Ingenic support:
- make sure we always set FIFO_UART_ON
- deal with the absence of DCD support
- enable the TX FIFO timeout interrupt
- set COM_HW_NOIEN
- pretend the FIFO is only 16 bytes deep ( supposed to be 64 but I get
  overruns with that )
now this works as CI20 console

Revision 1.329 / (download) - annotate - [select for diffs], Sat Nov 22 15:14:35 2014 UTC (9 years, 4 months ago) by macallan
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.328: +18 -5 lines
Diff to previous 1.328 (colored) to selected 1.12.2.11 (colored)

deal with quirk in Ingenic UARTs
( they have a bit in the FIFO control register which turns the entire
  port off if not set )

Revision 1.328 / (download) - annotate - [select for diffs], Sat Nov 15 19:18:18 2014 UTC (9 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.327: +5 -6 lines
Diff to previous 1.327 (colored) to selected 1.12.2.11 (colored)

centralize the dialout/call unit macros.

Revision 1.306.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:37 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.306.2.2: +87 -25 lines
Diff to previous 1.306.2.2 (colored) to branchpoint 1.306 (colored) to selected 1.12.2.11 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.327 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:35 2014 UTC (9 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7
Changes since 1.326: +3 -3 lines
Diff to previous 1.326 (colored) to selected 1.12.2.11 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.323.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:52 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.323.2.1: +6 -9 lines
Diff to previous 1.323.2.1 (colored) to branchpoint 1.323 (colored) next main 1.324 (colored) to selected 1.12.2.11 (colored)

Rebase.

Revision 1.326 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:37 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.325: +3 -2 lines
Diff to previous 1.325 (colored) to selected 1.12.2.11 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.301.4.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:22 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.301.4.3: +132 -25 lines
Diff to previous 1.301.4.3 (colored) to branchpoint 1.301 (colored) next main 1.302 (colored) to selected 1.12.2.11 (colored)

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")

Revision 1.310.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:37 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.310.4.1: +79 -21 lines
Diff to previous 1.310.4.1 (colored) to branchpoint 1.310 (colored) next main 1.311 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.325 / (download) - annotate - [select for diffs], Tue Apr 8 00:09:15 2014 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.324: +4 -6 lines
Diff to previous 1.324 (colored) to selected 1.12.2.11 (colored)

Clear dtr on transition from !0 to 0, and set it on the opposite.
This leaves dtr alone in the normal case.

Revision 1.323.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:32 2014 UTC (9 years, 11 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.323: +3 -3 lines
Diff to previous 1.323 (colored) to selected 1.12.2.11 (colored)

Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.324 / (download) - annotate - [select for diffs], Sun Apr 6 23:29:58 2014 UTC (9 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.323: +4 -6 lines
Diff to previous 1.323 (colored) to selected 1.12.2.11 (colored)

PR/48720: John Kelly: com driver does not allow B0 to be set. The code to
handle B0 was commented out for no reason given at revision 1.99. POSIX
mandates to hangup on B0:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetattr.html

Revision 1.323 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:27 2014 UTC (10 years ago) by dholland
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.322: +13 -4 lines
Diff to previous 1.322 (colored) to selected 1.12.2.11 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.322 / (download) - annotate - [select for diffs], Sun Dec 22 18:20:46 2013 UTC (10 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.321: +7 -5 lines
Diff to previous 1.321 (colored) to selected 1.12.2.11 (colored)

Now that cngetc supports -1 as a return value from the cn_getc routine,
let cngetc loop until a character is available so it can call the critpoll
hooks.

Revision 1.321 / (download) - annotate - [select for diffs], Mon Dec 16 12:08:14 2013 UTC (10 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.320: +3 -3 lines
Diff to previous 1.320 (colored) to selected 1.12.2.11 (colored)

Use #if defined in previous.

Revision 1.320 / (download) - annotate - [select for diffs], Mon Dec 16 01:51:19 2013 UTC (10 years, 3 months ago) by htodd
Branch: MAIN
Changes since 1.319: +3 -3 lines
Diff to previous 1.319 (colored) to selected 1.12.2.11 (colored)

Fix build.

Revision 1.319 / (download) - annotate - [select for diffs], Sun Dec 15 15:55:39 2013 UTC (10 years, 3 months ago) by mbalmer
Branch: MAIN
Changes since 1.318: +4 -2 lines
Diff to previous 1.318 (colored) to selected 1.12.2.11 (colored)

lcr is only used when COM_16650 is defined; unbreak the build

Revision 1.318 / (download) - annotate - [select for diffs], Sun Dec 15 11:06:57 2013 UTC (10 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.317: +6 -2 lines
Diff to previous 1.317 (colored) to selected 1.12.2.11 (colored)

Only attempt to set 64byte fifo for 16750 when COM_16750 is defined.

Hi kiyohara.

PR/48359 NetBSD/cobalt 6.99.25 GENERIC kernel freeze at initializing com0

Revision 1.317 / (download) - annotate - [select for diffs], Thu Oct 3 13:23:03 2013 UTC (10 years, 5 months ago) by kiyohara
Branch: MAIN
Changes since 1.316: +49 -16 lines
Diff to previous 1.316 (colored) to selected 1.12.2.11 (colored)

Revirt 'Move the Marvell extension to com_mv.c' at Sun Sep 1 04:51:24 UTC 2013.
  build test only.

Revision 1.316 / (download) - annotate - [select for diffs], Thu Sep 12 12:54:39 2013 UTC (10 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.315: +5 -4 lines
Diff to previous 1.315 (colored) to selected 1.12.2.11 (colored)

Minor tweaks for newer gcc

Revision 1.315 / (download) - annotate - [select for diffs], Tue Sep 3 15:32:55 2013 UTC (10 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.314: +18 -6 lines
Diff to previous 1.314 (colored) to selected 1.12.2.11 (colored)

no EFR on tl16c750, use AFE bit on MCR reg instead for flow control

Revision 1.314 / (download) - annotate - [select for diffs], Sun Sep 1 04:58:15 2013 UTC (10 years, 6 months ago) by kiyohara
Branch: MAIN
Changes since 1.313: +36 -4 lines
Diff to previous 1.313 (colored) to selected 1.12.2.11 (colored)

Add support 16750 64Byte FIFO.  But not test.

Revision 1.313 / (download) - annotate - [select for diffs], Sun Sep 1 04:51:24 2013 UTC (10 years, 6 months ago) by kiyohara
Branch: MAIN
Changes since 1.312: +15 -48 lines
Diff to previous 1.312 (colored) to selected 1.12.2.11 (colored)

Move the Marvell extension to com_mv.c.

Revision 1.310.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:25 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.310: +11 -8 lines
Diff to previous 1.310 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.312 / (download) - annotate - [select for diffs], Sat Jul 27 06:54:35 2013 UTC (10 years, 8 months ago) by kiyohara
Branch: MAIN
Changes since 1.311: +7 -2 lines
Diff to previous 1.311 (colored) to selected 1.12.2.11 (colored)

As for the console of ns16750, comintr() may be called before comopen().
If sc_lcr is not initialized at this time, console will be in an ugly state.

Revision 1.311 / (download) - annotate - [select for diffs], Sat Jul 27 06:43:56 2013 UTC (10 years, 8 months ago) by kiyohara
Branch: MAIN
Changes since 1.310: +6 -8 lines
Diff to previous 1.310 (colored) to selected 1.12.2.11 (colored)

Remove white-spaces, null-line and new-line.

Revision 1.306.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:17 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.306.2.1: +49 -3 lines
Diff to previous 1.306.2.1 (colored) to branchpoint 1.306 (colored) to selected 1.12.2.11 (colored)

resync from head

Revision 1.310 / (download) - annotate - [select for diffs], Wed May 1 07:38:00 2013 UTC (10 years, 10 months ago) by mlelstv
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.309: +3 -2 lines
Diff to previous 1.309 (colored) to selected 1.12.2.11 (colored)

For a polled console incoming characters are buffered on output.
The buffer is never passed to the regular tty routines and can
survive from early boot to halt where it is read by the "press
any continue to reboot" loops.
As a workaround, just kill the read-ahead buffer when switching
from and to polled mode.

Revision 1.309 / (download) - annotate - [select for diffs], Sat Apr 20 11:52:40 2013 UTC (10 years, 11 months ago) by rkujawa
Branch: MAIN
Changes since 1.308: +47 -3 lines
Diff to previous 1.308 (colored) to selected 1.12.2.11 (colored)

Add support for 16750 style UARTs. Activated by defining COM_16750.

Obtained from Marvell, Semihalf.

Revision 1.306.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:14 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.306: +12 -3 lines
Diff to previous 1.306 (colored) to selected 1.12.2.11 (colored)

resync with head

Revision 1.308 / (download) - annotate - [select for diffs], Sun Feb 24 06:21:36 2013 UTC (11 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.307: +3 -2 lines
Diff to previous 1.307 (colored) to selected 1.12.2.11 (colored)

Initialize t_softc.

Revision 1.301.4.3 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:06 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.301.4.2: +12 -3 lines
Diff to previous 1.301.4.2 (colored) to branchpoint 1.301 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.307 / (download) - annotate - [select for diffs], Thu Jan 10 17:38:10 2013 UTC (11 years, 2 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.306: +12 -3 lines
Diff to previous 1.306 (colored) to selected 1.12.2.11 (colored)

don't try to become console if we get is_console=false as device property

Revision 1.303.2.3 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:16 2012 UTC (11 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.303.2.2: +2 -3 lines
Diff to previous 1.303.2.2 (colored) to branchpoint 1.303 (colored) next main 1.304 (colored) to selected 1.12.2.11 (colored)

sync to latest -current.

Revision 1.301.4.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:56 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.301.4.1: +6 -6 lines
Diff to previous 1.301.4.1 (colored) to branchpoint 1.301 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.306 / (download) - annotate - [select for diffs], Mon May 21 20:51:46 2012 UTC (11 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.305: +2 -3 lines
Diff to previous 1.305 (colored) to selected 1.12.2.11 (colored)

Remove empty line.

Revision 1.303.2.2 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:49 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.303.2.1: +6 -5 lines
Diff to previous 1.303.2.1 (colored) to branchpoint 1.303 (colored) to selected 1.12.2.11 (colored)

sync to latest -current.

Revision 1.304.2.1 / (download) - annotate - [select for diffs], Sun Apr 22 17:01:44 2012 UTC (11 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.304: +6 -5 lines
Diff to previous 1.304 (colored) next main 1.305 (colored) to selected 1.12.2.11 (colored)

Pull up following revision(s) (requested by christos in ticket #190):
	sys/dev/ic/com.c: revision 1.305
don't include<sys/rnd.h>  before we define cn_trap, because it might bring
in<sys/systm.h>

Revision 1.305 / (download) - annotate - [select for diffs], Sun Apr 22 16:00:45 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.304: +6 -5 lines
Diff to previous 1.304 (colored) to selected 1.12.2.11 (colored)

don't include <sys/rnd.h> before we define cn_trap, because it might bring
in <sys/systm.h>

Revision 1.301.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:32 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.301: +16 -16 lines
Diff to previous 1.301 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.303.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:15 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.303: +6 -6 lines
Diff to previous 1.303 (colored) to selected 1.12.2.11 (colored)

merge to -current.

Revision 1.304 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:02 2012 UTC (12 years, 1 month ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.303: +6 -6 lines
Diff to previous 1.303 (colored) to selected 1.12.2.11 (colored)

Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.

Revision 1.303 / (download) - annotate - [select for diffs], Sun Nov 27 18:17:08 2011 UTC (12 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.302: +5 -5 lines
Diff to previous 1.302 (colored) to selected 1.12.2.11 (colored)

more whitespace and comment spelling fixes

Revision 1.302 / (download) - annotate - [select for diffs], Sun Nov 27 15:28:26 2011 UTC (12 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.301: +9 -9 lines
Diff to previous 1.301 (colored) to selected 1.12.2.11 (colored)

whitespace consistency adjustment

Revision 1.298.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:52 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.298: +21 -18 lines
Diff to previous 1.298 (colored) next main 1.299 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.295.2.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:36 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.295.2.2: +20 -15 lines
Diff to previous 1.295.2.2 (colored) to branchpoint 1.295 (colored) next main 1.296 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.301 / (download) - annotate - [select for diffs], Sat May 28 19:30:19 2011 UTC (12 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.300: +18 -13 lines
Diff to previous 1.300 (colored) to selected 1.12.2.11 (colored)

Allow COM_TOLERANCE to be tweakable.  If comspeed returns an invalid
rate, don't use that error value to set the speed.

Revision 1.286.10.2 / (download) - annotate - [select for diffs], Fri May 20 16:47:55 2011 UTC (12 years, 10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.286.10.1: +11 -5 lines
Diff to previous 1.286.10.1 (colored) to branchpoint 1.286 (colored) next main 1.287 (colored) to selected 1.12.2.11 (colored)

Fix early boot on AU1x type com ports.

Revision 1.300 / (download) - annotate - [select for diffs], Sun Apr 24 16:26:59 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.299: +5 -5 lines
Diff to previous 1.299 (colored) to selected 1.12.2.11 (colored)

Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.

Revision 1.295.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:14 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.295.2.1: +3 -3 lines
Diff to previous 1.295.2.1 (colored) to branchpoint 1.295 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.298.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:49 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.298: +2 -4 lines
Diff to previous 1.298 (colored) next main 1.299 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.299 / (download) - annotate - [select for diffs], Sat Jan 22 16:59:26 2011 UTC (13 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.298: +2 -4 lines
Diff to previous 1.298 (colored) to selected 1.12.2.11 (colored)

Revert part of changes in rev 1.298:
 - it breaks cobalt's serial console as mentioned in PR port-cobalt/44292
 - MCR_PRESCALE doesn't affect unless EFR_EFCR is set in the EFR register
 - even if MCR_PRESCALE is enabled we should define appropriate sc_type
   variants and BRG values should be adjusted in comspeed() per sc_type
 - sc_frequency should be adjusted in MD attachment if necessary
Tested on cobalt by several people, ok from jklos@

Revision 1.286.14.1 / (download) - annotate - [select for diffs], Fri Jan 7 02:28:45 2011 UTC (13 years, 2 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.286: +7 -5 lines
Diff to previous 1.286 (colored) next main 1.287 (colored) to selected 1.12.2.11 (colored)

Let's cons.c poll and so don't loop until a chacater becomes available.

Revision 1.294.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:09 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.294.2.1: +3 -1 lines
Diff to previous 1.294.2.1 (colored) to branchpoint 1.294 (colored) next main 1.295 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.279.2.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:24 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.279.2.4: +11 -8 lines
Diff to previous 1.279.2.4 (colored) to branchpoint 1.279 (colored) next main 1.280 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.298 / (download) - annotate - [select for diffs], Tue Jul 20 06:17:20 2010 UTC (13 years, 8 months ago) by jklos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.297: +5 -3 lines
Diff to previous 1.297 (colored) to selected 1.12.2.11 (colored)

Add support for 16650's prescaler from Frank Wille. Tested with
IOblix on Amiga.

Revision 1.295.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:21 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.295: +8 -7 lines
Diff to previous 1.295 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.294.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:14 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.294: +10 -9 lines
Diff to previous 1.294 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.297 / (download) - annotate - [select for diffs], Mon Apr 19 18:24:26 2010 UTC (13 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.296: +8 -14 lines
Diff to previous 1.296 (colored) to selected 1.12.2.11 (colored)

Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9).  Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's.  Tested on i386 and on sparc64.

Revision 1.296 / (download) - annotate - [select for diffs], Mon Mar 22 23:00:08 2010 UTC (14 years ago) by dyoung
Branch: MAIN
Changes since 1.295: +14 -7 lines
Diff to previous 1.295 (colored) to selected 1.12.2.11 (colored)

MI code should not compare bus_space_tag_t!  Introduce tags_are_equal()
for "comparing" two bus_space_tag_t's.  It is always true.

Everywhere that com(4) compares two tags, it compares to I/O base
addresses, too; comparing the base addresses should suffice.

TBD Clean this up more thoroughly.

Revision 1.279.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:29 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.279.2.3: +82 -62 lines
Diff to previous 1.279.2.3 (colored) to branchpoint 1.279 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.295 / (download) - annotate - [select for diffs], Wed Feb 24 22:37:58 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.294: +4 -4 lines
Diff to previous 1.294 (colored) to selected 1.12.2.11 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.294 / (download) - annotate - [select for diffs], Sat Jan 9 14:15:48 2010 UTC (14 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.293: +4 -4 lines
Diff to previous 1.293 (colored) to selected 1.12.2.11 (colored)

To print bus_addr_t value, cast it to u_long rather than size_t.

Revision 1.293 / (download) - annotate - [select for diffs], Fri Jan 8 20:02:39 2010 UTC (14 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.292: +4 -4 lines
Diff to previous 1.292 (colored) to selected 1.12.2.11 (colored)

Expand PMF_FN_* macros.

Revision 1.292 / (download) - annotate - [select for diffs], Sun Dec 6 23:15:59 2009 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.291: +20 -2 lines
Diff to previous 1.291 (colored) to selected 1.12.2.11 (colored)

Delete dead code.

Revision 1.291 / (download) - annotate - [select for diffs], Mon Nov 23 02:13:46 2009 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.290: +2 -3 lines
Diff to previous 1.290 (colored) to selected 1.12.2.11 (colored)

Remove some unecessary includes sys/user.h header.

Revision 1.290 / (download) - annotate - [select for diffs], Thu Nov 12 20:38:35 2009 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.289: +2 -32 lines
Diff to previous 1.289 (colored) to selected 1.12.2.11 (colored)

Remove some dead code.

Revision 1.289 / (download) - annotate - [select for diffs], Thu Nov 12 20:37:09 2009 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.288: +92 -59 lines
Diff to previous 1.288 (colored) to selected 1.12.2.11 (colored)

Move the code in com_activate() to com_detach(), where it always
belonged.  Remove com_activate().

Consolidate information about the console on com(4) in a new struct
comcons_info.

Support detachment & re-attachment of a system console on com(4).
Re-attachment is somehow incomplete.  Ideally, if some other device
could take over as console, it would, but we're not quite there,
yet.

Revision 1.286.10.1 / (download) - annotate - [select for diffs], Sun Sep 13 03:32:33 2009 UTC (14 years, 6 months ago) by cliff
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15
Changes since 1.286: +16 -13 lines
Diff to previous 1.286 (colored) to selected 1.12.2.11 (colored)

when attaching com, (frequency == -1) means leave the BRG divisor as-is
(inherit values established by firmware)

Revision 1.279.2.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:22 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.279.2.2: +4 -2 lines
Diff to previous 1.279.2.2 (colored) to branchpoint 1.279 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.287.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:22 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.287: +4 -2 lines
Diff to previous 1.287 (colored) next main 1.288 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.288 / (download) - annotate - [select for diffs], Wed May 6 07:27:42 2009 UTC (14 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.287: +4 -2 lines
Diff to previous 1.287 (colored) to selected 1.12.2.11 (colored)

add KASSERT to identify when PR kern/40734 happens again.
It happened to me twice and to Emmanuel Dreyfus (reported on port-amd64 ML)

Revision 1.279.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:41 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.279.2.1: +19 -19 lines
Diff to previous 1.279.2.1 (colored) to branchpoint 1.279 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.286.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:54 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.286: +3 -3 lines
Diff to previous 1.286 (colored) next main 1.287 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.272.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:55 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.272.6.3: +19 -10 lines
Diff to previous 1.272.6.3 (colored) to branchpoint 1.272 (colored) next main 1.273 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.287 / (download) - annotate - [select for diffs], Sat Jan 3 03:43:22 2009 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.286: +3 -3 lines
Diff to previous 1.286 (colored) to selected 1.12.2.11 (colored)

remove extra semicolons.

Revision 1.281.6.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:14 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.281.6.1: +18 -9 lines
Diff to previous 1.281.6.1 (colored) to branchpoint 1.281 (colored) next main 1.282 (colored) to selected 1.12.2.11 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.286 / (download) - annotate - [select for diffs], Sat Oct 25 17:50:29 2008 UTC (15 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb4-mips64-k7-u2a-k9b, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, matt-nb5-pq3, matt-nb5-mips64
Changes since 1.285: +26 -28 lines
Diff to previous 1.285 (colored) to selected 1.12.2.11 (colored)

Simplify NOERS case.  Revert most changes back to 1.283.

Revision 1.285 / (download) - annotate - [select for diffs], Sat Oct 25 15:21:57 2008 UTC (15 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.284: +12 -6 lines
Diff to previous 1.284 (colored) to selected 1.12.2.11 (colored)

Fix a botch in an FIFO check for 16650.

Revision 1.284 / (download) - annotate - [select for diffs], Sat Oct 25 10:05:43 2008 UTC (15 years, 5 months ago) by he
Branch: MAIN
CVS Tags: matt-mips64-base2
Changes since 1.283: +1 -1 lines
Diff to previous 1.283 (colored) to selected 1.12.2.11 (colored)

Replace a "type" with "sc->sc_type" to make this build again for cobalt
(and I'm sure a few others as well).

Revision 1.283 / (download) - annotate - [select for diffs], Fri Oct 24 04:43:08 2008 UTC (15 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.282: +16 -11 lines
Diff to previous 1.282 (colored) to selected 1.12.2.11 (colored)

Add support for 16550 chips without an Enhanced Register Set.

Revision 1.281.6.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:26 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.281: +0 -9 lines
Diff to previous 1.281 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.272.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:22 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.272.6.2: +0 -9 lines
Diff to previous 1.272.6.2 (colored) to branchpoint 1.272 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.281.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:03 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.281: +0 -9 lines
Diff to previous 1.281 (colored) next main 1.282 (colored) to selected 1.12.2.11 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.281.4.1 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:33 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.281: +0 -9 lines
Diff to previous 1.281 (colored) next main 1.282 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.282 / (download) - annotate - [select for diffs], Mon Jul 14 15:40:55 2008 UTC (15 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, haad-dm-base1
Changes since 1.281: +0 -9 lines
Diff to previous 1.281 (colored) to selected 1.12.2.11 (colored)

Remove OMAP gunk in com_activate, it's not needed.

Spotted by Matthias Drochner.

Revision 1.272.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:20 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.272.6.1: +109 -16 lines
Diff to previous 1.272.6.1 (colored) to branchpoint 1.272 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.278.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:42 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.278: +101 -12 lines
Diff to previous 1.278 (colored) next main 1.279 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.279.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:03 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.279: +93 -12 lines
Diff to previous 1.279 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.281 / (download) - annotate - [select for diffs], Mon Apr 28 22:00:01 2008 UTC (15 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl, haad-dm
Changes since 1.280: +93 -5 lines
Diff to previous 1.280 (colored) to selected 1.12.2.11 (colored)

More forgotten changes from matt-armv6.

Revision 1.280 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:49 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.279: +2 -9 lines
Diff to previous 1.279 (colored) to selected 1.12.2.11 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.279 / (download) - annotate - [select for diffs], Mon Apr 21 12:56:31 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.278: +10 -2 lines
Diff to previous 1.278 (colored) to selected 1.12.2.11 (colored)

Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE.

Revision 1.278 / (download) - annotate - [select for diffs], Fri Apr 11 12:45:08 2008 UTC (15 years, 11 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.277: +10 -6 lines
Diff to previous 1.277 (colored) to selected 1.12.2.11 (colored)

If it's a high speed, trim the trigger level down to prevent overflows,
as comment says.  The piece of code was removed in rev 1.230,
but it looks an error on reverting of rev 1.228.

Revision 1.272.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:40 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.272: +70 -41 lines
Diff to previous 1.272 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.272.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:16 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.272: +70 -41 lines
Diff to previous 1.272 (colored) next main 1.273 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.262.2.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:37 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.262.2.3: +76 -225 lines
Diff to previous 1.262.2.3 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored) to selected 1.12.2.11 (colored)

sync with HEAD

Revision 1.234.2.9 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:42 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.8: +70 -41 lines
Diff to previous 1.234.2.8 (colored) next main 1.235 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.277 / (download) - annotate - [select for diffs], Fri Mar 14 22:47:06 2008 UTC (16 years ago) by cube
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.276: +9 -7 lines
Diff to previous 1.276 (colored) to selected 1.12.2.11 (colored)

Fix compilation under options RND_COM and COM_DEBUG.
Reported by Kurt Schreiner on current-users@.

Revision 1.276 / (download) - annotate - [select for diffs], Fri Mar 14 15:09:11 2008 UTC (16 years ago) by cube
Branch: MAIN
Changes since 1.275: +34 -26 lines
Diff to previous 1.275 (colored) to selected 1.12.2.11 (colored)

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.

Revision 1.275 / (download) - annotate - [select for diffs], Fri Mar 7 10:08:53 2008 UTC (16 years ago) by dyoung
Branch: MAIN
Changes since 1.274: +2 -3 lines
Diff to previous 1.274 (colored) to selected 1.12.2.11 (colored)

In com_detach(), don't destroy the lock twice.

Revision 1.274 / (download) - annotate - [select for diffs], Fri Mar 7 08:39:18 2008 UTC (16 years ago) by dyoung
Branch: MAIN
Changes since 1.273: +6 -6 lines
Diff to previous 1.273 (colored) to selected 1.12.2.11 (colored)

Use device_t and its accessors.

Revision 1.273 / (download) - annotate - [select for diffs], Fri Feb 29 07:02:05 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.272: +30 -10 lines
Diff to previous 1.272 (colored) to selected 1.12.2.11 (colored)

Use pmf_device_register1() instead of shutdownhook_establish() to
register com_cleanup() as the shutdown hook.

Add a generic suspend routine.  Suspend and resume com@isa.

Protect against dereferencing a NULL softc in comioctl().

Destroy both a mutex and a callout in com_detach().

Cosmetic: use aprint_*_dev().  Use PMF_FN_ARGS, PMF_FN_PROTO.

Revision 1.265.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:40 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.265.2.2: +14 -192 lines
Diff to previous 1.265.2.2 (colored) to branchpoint 1.265 (colored) next main 1.266 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.234.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:23 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.7: +8 -2 lines
Diff to previous 1.234.2.7 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.272 / (download) - annotate - [select for diffs], Mon Jan 28 18:12:29 2008 UTC (16 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.271: +5 -2 lines
Diff to previous 1.271 (colored) to selected 1.12.2.11 (colored)

Do not allow the system console to detach, because that will lead
to a panic.

Revision 1.271 / (download) - annotate - [select for diffs], Thu Jan 24 18:50:15 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.270: +5 -2 lines
Diff to previous 1.270 (colored) to selected 1.12.2.11 (colored)

Destroy mutex when detaching. PR kern/37819.

Revision 1.267.4.3 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:33 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.267.4.2: +0 -184 lines
Diff to previous 1.267.4.2 (colored) to branchpoint 1.267 (colored) next main 1.268 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.234.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:57 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.6: +14 -219 lines
Diff to previous 1.234.2.6 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.270 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:10 2008 UTC (16 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase
Changes since 1.269: +2 -186 lines
Diff to previous 1.269 (colored) to selected 1.12.2.11 (colored)

Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.

Revision 1.262.2.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:50 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.262.2.2: +17 -45 lines
Diff to previous 1.262.2.2 (colored) to branchpoint 1.262 (colored) to selected 1.12.2.11 (colored)

sync with HEAD

Revision 1.267.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:03 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.267.4.1: +6 -6 lines
Diff to previous 1.267.4.1 (colored) to branchpoint 1.267 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.269 / (download) - annotate - [select for diffs], Sat Jan 5 12:44:13 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-base
Changes since 1.268: +8 -8 lines
Diff to previous 1.268 (colored) to selected 1.12.2.11 (colored)

Work around com hangs with pcmcia. PR kern/37462.

Revision 1.267.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:09 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.267: +8 -29 lines
Diff to previous 1.267 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.265.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:06 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.265.2.1: +8 -29 lines
Diff to previous 1.265.2.1 (colored) to branchpoint 1.265 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.266.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:25 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.266.2.1: +8 -29 lines
Diff to previous 1.266.2.1 (colored) to branchpoint 1.266 (colored) next main 1.267 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.268 / (download) - annotate - [select for diffs], Fri Dec 14 03:36:54 2007 UTC (16 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.267: +8 -29 lines
Diff to previous 1.267 (colored) to selected 1.12.2.11 (colored)

Add a resume handler for com@isa, using Jared McNeill's suggested
code from current-users.  com@acpi, et cetera, remain to be done.

Revision 1.261.6.4 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:48 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.261.6.3: +3 -3 lines
Diff to previous 1.261.6.3 (colored) to branchpoint 1.261 (colored) next main 1.262 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.265.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:34 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.265: +5 -13 lines
Diff to previous 1.265 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.266.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:21 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.266: +3 -3 lines
Diff to previous 1.266 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.234.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:29:53 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.5: +5 -13 lines
Diff to previous 1.234.2.5 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.267 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:51 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.266: +3 -3 lines
Diff to previous 1.266 (colored) to selected 1.12.2.11 (colored)

Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.232.2.1 / (download) - annotate - [select for diffs], Sat Dec 1 17:49:45 2007 UTC (16 years, 4 months ago) by bouyer
Branch: netbsd-3
Changes since 1.232: +3 -4 lines
Diff to previous 1.232 (colored) next main 1.233 (colored) to selected 1.12.2.11 (colored)

Pull up following revision(s) (requested by is in ticket #1882):
	sys/dev/ic/com.c: revision 1.233
Revert the part of revision 1.228 that made HW_NO_TXPRELOAD the default:
it appears to break output on the Soekris net4501, which is a rather
popular platform.
This should fix PR kern/29612.

Revision 1.224.2.2.2.1 / (download) - annotate - [select for diffs], Sat Dec 1 17:38:58 2007 UTC (16 years, 4 months ago) by bouyer
Branch: netbsd-2
Changes since 1.224.2.2: +3 -4 lines
Diff to previous 1.224.2.2 (colored) next main 1.225 (colored) to selected 1.12.2.11 (colored)

Pull up following revision(s) (requested by is in ticket #11394):
	sys/dev/ic/com.c: revision 1.233
Revert the part of revision 1.228 that made HW_NO_TXPRELOAD the default:
it appears to break output on the Soekris net4501, which is a rather
popular platform.
This should fix PR kern/29612.

Revision 1.261.6.3 / (download) - annotate - [select for diffs], Wed Nov 21 21:54:49 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.261.6.2: +4 -12 lines
Diff to previous 1.261.6.2 (colored) to branchpoint 1.261 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.264.2.2 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:33 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.264.2.1: +2 -10 lines
Diff to previous 1.264.2.1 (colored) to branchpoint 1.264 (colored) next main 1.265 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.266 / (download) - annotate - [select for diffs], Mon Nov 19 18:51:47 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Changes since 1.265: +4 -12 lines
Diff to previous 1.265 (colored) to selected 1.12.2.11 (colored)

- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.

Revision 1.262.2.2 / (download) - annotate - [select for diffs], Tue Nov 6 23:26:29 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.262.2.1: +50 -84 lines
Diff to previous 1.262.2.1 (colored) to branchpoint 1.262 (colored) to selected 1.12.2.11 (colored)

sync with HEAD

Revision 1.262.2.1 / (download) - annotate - [select for diffs], Mon Oct 29 02:12:51 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.262: +92 -5 lines
Diff to previous 1.262 (colored) to selected 1.12.2.11 (colored)

Add support for OMAP specific com type.

Revision 1.234.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:30:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.4: +50 -84 lines
Diff to previous 1.234.2.4 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.261.6.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:40 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.261.6.1: +50 -84 lines
Diff to previous 1.261.6.1 (colored) to branchpoint 1.261 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.264.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:37:34 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.264: +3 -3 lines
Diff to previous 1.264 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.259.2.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:07:17 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.259.2.2: +7 -5 lines
Diff to previous 1.259.2.2 (colored) to branchpoint 1.259 (colored) next main 1.260 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.265 / (download) - annotate - [select for diffs], Fri Oct 19 11:59:49 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.264: +3 -3 lines
Diff to previous 1.264 (colored) to selected 1.12.2.11 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.262.4.2 / (download) - annotate - [select for diffs], Thu Oct 18 08:33:06 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.262.4.1: +6 -4 lines
Diff to previous 1.262.4.1 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.264 / (download) - annotate - [select for diffs], Wed Oct 17 17:20:41 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4
Branch point for: bouyer-xenamd64
Changes since 1.263: +6 -4 lines
Diff to previous 1.263 (colored) to selected 1.12.2.11 (colored)

Reapply rev 1.262 and add a comment about it.

Revision 1.262.4.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:08 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.262: +47 -83 lines
Diff to previous 1.262 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.263 / (download) - annotate - [select for diffs], Mon Oct 8 16:50:45 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, vmlocking-base
Changes since 1.262: +47 -83 lines
Diff to previous 1.262 (colored) to selected 1.12.2.11 (colored)

Merge from vmlocking: use mutexes and the softint API.

Revision 1.261.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:47:59 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.261: +2 -8 lines
Diff to previous 1.261 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.234.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:34:26 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.3: +17 -109 lines
Diff to previous 1.234.2.3 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.261.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:20:18 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.261: +2 -8 lines
Diff to previous 1.261 (colored) next main 1.262 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.262 / (download) - annotate - [select for diffs], Thu Aug 16 08:56:49 2007 UTC (16 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Changes since 1.261: +2 -8 lines
Diff to previous 1.261 (colored) to selected 1.12.2.11 (colored)

Remove all locking from com_enable_debugport() - it is either called at
attach time, where we don't need further locking, or from comopen(),
where the caller does proper locking already.

Revision 1.261 / (download) - annotate - [select for diffs], Sat Jul 14 21:02:37 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.260: +15 -101 lines
Diff to previous 1.260 (colored) to selected 1.12.2.11 (colored)

Generic soft interrupts are mandatory.

Revision 1.259.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:05:43 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.259: +3 -3 lines
Diff to previous 1.259 (colored) next main 1.260 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.260 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:35 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.259: +3 -3 lines
Diff to previous 1.259 (colored) to selected 1.12.2.11 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.259.2.2 / (download) - annotate - [select for diffs], Sun Jul 1 21:38:33 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.259.2.1: +54 -144 lines
Diff to previous 1.259.2.1 (colored) to branchpoint 1.259 (colored) to selected 1.12.2.11 (colored)

- Generic soft interrupts are mandatory, remove the kludges.
- Adapt to callout API change.
- Use mutexes.

Revision 1.259.2.1 / (download) - annotate - [select for diffs], Sun Jun 17 21:30:58 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.259: +7 -45 lines
Diff to previous 1.259 (colored) to selected 1.12.2.11 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.258.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:29 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.258: +3 -3 lines
Diff to previous 1.258 (colored) next main 1.259 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.259 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:53 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.258: +3 -3 lines
Diff to previous 1.258 (colored) to selected 1.12.2.11 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.234.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:07 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.2: +14 -14 lines
Diff to previous 1.234.2.2 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.251.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:35 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.251.2.1: +17 -15 lines
Diff to previous 1.251.2.1 (colored) to branchpoint 1.251 (colored) next main 1.252 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.258 / (download) - annotate - [select for diffs], Wed Jan 10 20:59:10 2007 UTC (17 years, 2 months ago) by cube
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.257: +14 -14 lines
Diff to previous 1.257 (colored) to selected 1.12.2.11 (colored)

Make COM_HAYESP compile again.  It assumes no register mapping is needed.

Revision 1.234.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:02 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234.2.1: +285 -246 lines
Diff to previous 1.234.2.1 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.251.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:05 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.251.4.1: +13 -11 lines
Diff to previous 1.251.4.1 (colored) to branchpoint 1.251 (colored) next main 1.252 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.257 / (download) - annotate - [select for diffs], Sun Dec 10 00:33:11 2006 UTC (17 years, 3 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.256: +5 -3 lines
Diff to previous 1.256 (colored) to selected 1.12.2.11 (colored)

aprint_naive("\n") to terminate "Found" line for quiet boot.
Use aprint_error to report that we are unable to establish power hook.

Revision 1.251.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:09 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.251: +7 -9 lines
Diff to previous 1.251 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.256 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:51 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.255: +10 -10 lines
Diff to previous 1.255 (colored) to selected 1.12.2.11 (colored)

__unused removal on arguments; approved by core.

Revision 1.251.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:44 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.251: +15 -17 lines
Diff to previous 1.251 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.255 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:00 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.254: +10 -10 lines
Diff to previous 1.254 (colored) to selected 1.12.2.11 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.254 / (download) - annotate - [select for diffs], Sun Oct 1 20:31:50 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.253: +4 -4 lines
Diff to previous 1.253 (colored) to selected 1.12.2.11 (colored)

More from Matt Fleming:

Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.

Revision 1.253 / (download) - annotate - [select for diffs], Sun Oct 1 19:28:43 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.252: +3 -6 lines
Diff to previous 1.252 (colored) to selected 1.12.2.11 (colored)

Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!

Also, add forgotten splx() calls in some places.

Revision 1.252 / (download) - annotate - [select for diffs], Sun Sep 24 03:53:08 2006 UTC (17 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.251: +4 -3 lines
Diff to previous 1.251 (colored) to selected 1.12.2.11 (colored)

Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.240.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:50:01 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.240: +334 -244 lines
Diff to previous 1.240 (colored) next main 1.241 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.250.2.1 / (download) - annotate - [select for diffs], Thu Sep 7 18:19:21 2006 UTC (17 years, 6 months ago) by riz
Branch: abandoned-netbsd-4
Changes since 1.250: +3 -2 lines
Diff to previous 1.250 (colored) next main 1.251 (colored) to selected 1.12.2.11 (colored)

Pull up following revision(s) (requested by martin in ticket #118):
	sys/dev/ic/com.c: revision 1.251
fix a GCC uninitialised variable warning only seen at -O3.

Revision 1.241.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:44:10 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.241.2.3: +250 -244 lines
Diff to previous 1.241.2.3 (colored) to branchpoint 1.241 (colored) next main 1.242 (colored) to selected 1.12.2.11 (colored)

sync with head

Revision 1.251 / (download) - annotate - [select for diffs], Tue Aug 8 10:32:09 2006 UTC (17 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.250: +3 -2 lines
Diff to previous 1.250 (colored) to selected 1.12.2.11 (colored)

fix a GCC uninitialised variable warning only seen at -O3.

Revision 1.250 / (download) - annotate - [select for diffs], Sat Jul 22 09:59:24 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.249: +4 -4 lines
Diff to previous 1.249 (colored) to selected 1.12.2.11 (colored)

oops, no 'p' here. from xtraeme@.

Revision 1.249 / (download) - annotate - [select for diffs], Sat Jul 22 09:22:21 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.248: +14 -6 lines
Diff to previous 1.248 (colored) to selected 1.12.2.11 (colored)

don't call kauth_authorize_generic() when holding a lock, from yamt@.

Revision 1.248 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:48 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.247: +6 -9 lines
Diff to previous 1.247 (colored) to selected 1.12.2.11 (colored)

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.247 / (download) - annotate - [select for diffs], Thu Jul 13 22:56:02 2006 UTC (17 years, 8 months ago) by gdamore
Branch: MAIN
Changes since 1.246: +235 -235 lines
Diff to previous 1.246 (colored) to selected 1.12.2.11 (colored)

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.

Revision 1.244.2.6 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:22 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.244.2.5: +35 -2 lines
Diff to previous 1.244.2.5 (colored) to branchpoint 1.244 (colored) next main 1.245 (colored) to selected 1.12.2.11 (colored)

Merge from HEAD.

Revision 1.241.2.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:01 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.241.2.2: +80 -2 lines
Diff to previous 1.241.2.2 (colored) to branchpoint 1.241 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.246 / (download) - annotate - [select for diffs], Sun Jun 25 14:49:49 2006 UTC (17 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.245: +4 -3 lines
Diff to previous 1.245 (colored) to selected 1.12.2.11 (colored)

Make sure that a powerhook was successfully established before trying to
disestablish it on detach.

Revision 1.245 / (download) - annotate - [select for diffs], Sun Jun 25 00:39:21 2006 UTC (17 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.244: +34 -2 lines
Diff to previous 1.244 (colored) to selected 1.12.2.11 (colored)

Add a power hook for the com device.

Revision 1.234.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:53 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.234: +71 -30 lines
Diff to previous 1.234 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.243.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:58:13 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.243: +47 -2 lines
Diff to previous 1.243 (colored) next main 1.244 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.244.2.5 / (download) - annotate - [select for diffs], Sat Jun 17 03:36:12 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.244.2.4: +0 -12 lines
Diff to previous 1.244.2.4 (colored) to branchpoint 1.244 (colored) to selected 1.12.2.11 (colored)

Yes, I'm restoring COM_INIT_REGS and removing the compatibility #define's
for sc_iot and friends.  Those defines break things, like say ast.c, where
comvar.h is included, but a local sc_iot structure member is also used.

Revision 1.244.2.4 / (download) - annotate - [select for diffs], Sat Jun 17 00:30:24 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.244.2.3: +14 -2 lines
Diff to previous 1.244.2.3 (colored) to branchpoint 1.244 (colored) to selected 1.12.2.11 (colored)

Per tsutsui@, I'm removing COM_INIT_REGS, and adding a flag to make the
map initialization automatic.  This breaks this whole tree again, so I pretty
much have to start over going back thru old code to make it all compatible.

Revision 1.244.2.3 / (download) - annotate - [select for diffs], Fri Jun 16 03:32:02 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.244.2.2: +131 -112 lines
Diff to previous 1.244.2.2 (colored) to branchpoint 1.244 (colored) to selected 1.12.2.11 (colored)

KNF per simonb@ consisting of:
	regs.xx -> regs.cr_xxx
	wrap COM_INIT_REGS body with do { } while (0);)
Convert INB/OUTB macros to CSR_READ/CSR_WRITE macros per tsutsui@.

Revision 1.244.2.2 / (download) - annotate - [select for diffs], Thu Jun 15 22:24:15 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.244.2.1: +3 -3 lines
Diff to previous 1.244.2.1 (colored) to branchpoint 1.244 (colored) to selected 1.12.2.11 (colored)

Fix a type where comconsregs was defined twice, and comkgdregs was missing.
Thanks to simonb@ Doh!

Revision 1.244.2.1 / (download) - annotate - [select for diffs], Thu Jun 15 16:30:26 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.244: +215 -238 lines
Diff to previous 1.244 (colored) to selected 1.12.2.11 (colored)

Initial com framework changes.  These changes bust *all* com consumers, but
follow-up commits shortly will fix many of them, so that i386, sparc, and
some evbmips ports at least work.

Revision 1.244 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:34 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.243: +47 -2 lines
Diff to previous 1.243 (colored) to selected 1.12.2.11 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.240.4.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:24 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.240.4.2: +9 -4 lines
Diff to previous 1.240.4.2 (colored) next main 1.241 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.241.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:25 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.241.6.1: +7 -2 lines
Diff to previous 1.241.6.1 (colored) to branchpoint 1.241 (colored) next main 1.242 (colored) to selected 1.12.2.11 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.241.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:57:41 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.241.2.1: +9 -4 lines
Diff to previous 1.241.2.1 (colored) to branchpoint 1.241 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.243 / (download) - annotate - [select for diffs], Sun May 14 21:42:27 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.242: +9 -4 lines
Diff to previous 1.242 (colored) to selected 1.12.2.11 (colored)

integrate kauth.

Revision 1.240.4.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:55 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.240.4.1: +7 -6 lines
Diff to previous 1.240.4.1 (colored) to selected 1.12.2.11 (colored)

Sync with head.

Revision 1.241.4.3 / (download) - annotate - [select for diffs], Wed Apr 19 03:24:38 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.241.4.2: +5 -4 lines
Diff to previous 1.241.4.2 (colored) to branchpoint 1.241 (colored) next main 1.242 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.241.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:06:57 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.241: +5 -4 lines
Diff to previous 1.241 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.241.6.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:19 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.241: +5 -4 lines
Diff to previous 1.241 (colored) to selected 1.12.2.11 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.242 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:30 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Changes since 1.241: +5 -4 lines
Diff to previous 1.241 (colored) to selected 1.12.2.11 (colored)

Use device_unit().

Revision 1.241.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 14:39:01 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.241.4.1: +4 -4 lines
Diff to previous 1.241.4.1 (colored) to branchpoint 1.241 (colored) to selected 1.12.2.11 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.241.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:44:48 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.241: +9 -4 lines
Diff to previous 1.241 (colored) to selected 1.12.2.11 (colored)

Adapt to kernel authorization KPI.

Revision 1.239.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:12 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.239.2.1: +4 -4 lines
Diff to previous 1.239.2.1 (colored) next main 1.240 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.241 / (download) - annotate - [select for diffs], Mon Feb 20 16:50:37 2006 UTC (18 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.240: +4 -4 lines
Diff to previous 1.240 (colored) to selected 1.12.2.11 (colored)

Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.

Revision 1.240.4.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:00:40 2006 UTC (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.240: +47 -2 lines
Diff to previous 1.240 (colored) to selected 1.12.2.11 (colored)

Adapt for timecounters and newer PPS API.

Revision 1.239.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:02:48 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.239: +3 -3 lines
Diff to previous 1.239 (colored) to selected 1.12.2.11 (colored)

sync with head.

Revision 1.240 / (download) - annotate - [select for diffs], Sun Jan 8 22:19:59 2006 UTC (18 years, 2 months ago) by dsl
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.239: +3 -3 lines
Diff to previous 1.239 (colored) to selected 1.12.2.11 (colored)

Save console baud rate as both the input and output rates.
This is what I thought I'd done in rev 1.237

Revision 1.239 / (download) - annotate - [select for diffs], Tue Dec 27 00:46:38 2005 UTC (18 years, 3 months ago) by chs
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.238: +2 -13 lines
Diff to previous 1.238 (colored) to selected 1.12.2.11 (colored)

remove the COM_MPLOCK option.  always include the spinlock in the softc
and always call the simple_* locking functions.  the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).

Revision 1.238 / (download) - annotate - [select for diffs], Sun Dec 11 12:21:26 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.237: +11 -10 lines
Diff to previous 1.237 (colored) to selected 1.12.2.11 (colored)

merge ktrace-lwp.

Revision 1.216.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:04:14 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.216.2.6: +9 -9 lines
Diff to previous 1.216.2.6 (colored) next main 1.217 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD. Here we go again...

Revision 1.237 / (download) - annotate - [select for diffs], Sun Nov 6 21:34:37 2005 UTC (18 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.236: +3 -3 lines
Diff to previous 1.236 (colored) to selected 1.12.2.11 (colored)

Explicitly default the input baud rate (c_ispeed) to the output baud rate (c_ospeed)
instead of setting it to zero.  Otherwise nothing ever sets it unless some code
explicitly changes the baud rate.  For a serial console (in particular) we want
to use the baud rate set by the bios (or whatever) and used by theboot code.
This is the way it was before a 'new version of com driver' was added in 1997 (rev 1.99)

Revision 1.236 / (download) - annotate - [select for diffs], Tue Sep 6 21:40:39 2005 UTC (18 years, 6 months ago) by kleink
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, thorpej-vnode-attr-base, thorpej-vnode-attr
Changes since 1.235: +3 -3 lines
Diff to previous 1.235 (colored) to selected 1.12.2.11 (colored)

Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Revision 1.235 / (download) - annotate - [select for diffs], Sun Sep 4 09:48:53 2005 UTC (18 years, 6 months ago) by kleink
Branch: MAIN
Changes since 1.234: +4 -4 lines
Diff to previous 1.234 (colored) to selected 1.12.2.11 (colored)

Make COM_DEBUG compile again in the wake of -Wwrite-strings;
from Nicolas Joly in PR kern/31141.

Revision 1.234 / (download) - annotate - [select for diffs], Tue Jun 21 14:01:11 2005 UTC (18 years, 9 months ago) by ws
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.233: +4 -3 lines
Diff to previous 1.233 (colored) to selected 1.12.2.11 (colored)

PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.

Revision 1.233 / (download) - annotate - [select for diffs], Sun Jun 12 21:10:47 2005 UTC (18 years, 9 months ago) by tls
Branch: MAIN
Changes since 1.232: +3 -4 lines
Diff to previous 1.232 (colored) to selected 1.12.2.11 (colored)

Revert the part of revision 1.228 that made HW_NO_TXPRELOAD the default:
it appears to break output on the Soekris net4501, which is a rather
popular platform.

This should fix PR kern/29612 -- if not, I will probably revert it again.

Revision 1.231.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:49 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.231: +36 -36 lines
Diff to previous 1.231 (colored) next main 1.232 (colored) to selected 1.12.2.11 (colored)

sync with -current

Revision 1.231.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:34:02 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.231: +36 -36 lines
Diff to previous 1.231 (colored) next main 1.232 (colored) to selected 1.12.2.11 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.216.2.6 / (download) - annotate - [select for diffs], Fri Mar 4 16:41:27 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.216.2.5: +37 -37 lines
Diff to previous 1.216.2.5 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.232 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:01 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.231: +36 -36 lines
Diff to previous 1.231 (colored) to selected 1.12.2.11 (colored)

nuke trailing whitespace

Revision 1.216.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:27:54 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.216.2.4: +11 -10 lines
Diff to previous 1.216.2.4 (colored) to selected 1.12.2.11 (colored)

Fix the sync with head I botched.

Revision 1.216.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:45:57 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.216.2.3: +10 -11 lines
Diff to previous 1.216.2.3 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.216.2.3 / (download) - annotate - [select for diffs], Thu Aug 12 11:41:23 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.216.2.2: +3 -2 lines
Diff to previous 1.216.2.2 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.231 / (download) - annotate - [select for diffs], Mon Aug 9 16:57:14 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.230: +3 -2 lines
Diff to previous 1.230 (colored) to selected 1.12.2.11 (colored)

Do an extra read of the IIR during initialization, just to ack any pending
interrupt.

Revision 1.216.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:46:12 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.216.2.1: +91 -83 lines
Diff to previous 1.216.2.1 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD

Revision 1.224.2.2 / (download) - annotate - [select for diffs], Mon Jul 5 21:57:45 2004 UTC (19 years, 8 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.224.2.1: +15 -37 lines
Diff to previous 1.224.2.1 (colored) to branchpoint 1.224 (colored) next main 1.225 (colored) to selected 1.12.2.11 (colored)

Pull up revisions 1.228-1.230 (requested by mycroft in ticket #603):
  Incorporate 4 changes:
   o At high speed, set the FIFO trigger to a higher
     value to reduce interrupt load.  Fixes PR#15448.
   o Handle the case of IIR=RXRDY and LSR=!LSR_RCV_MASK
     differently, to avoid a hang with some chips.  Fixes
     PR#21184, and possibly PR#10974 and PR#8248.
   o Remove the extra wait at the end of com_common_putc(),
     after writing a character out, so that we get another
     TXRDY interrupt.  This prevents stalls when normal
     output and kernel output are mixed.  Fixes PR#4263.
   o Do not ``preload'' the TX FIFO; wait for a TXRDY
     interrupt to come in after enabling it.

Revision 1.230 / (download) - annotate - [select for diffs], Sun Jul 4 09:46:44 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.229: +3 -4 lines
Diff to previous 1.229 (colored) to selected 1.12.2.11 (colored)

Back off the trigger level a little.  Testing shows that it's not terribly
reliable at 14.

Revision 1.229 / (download) - annotate - [select for diffs], Sun Jul 4 09:28:05 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.228: +8 -12 lines
Diff to previous 1.228 (colored) to selected 1.12.2.11 (colored)

Minor simplification.

Revision 1.228 / (download) - annotate - [select for diffs], Sun Jul 4 08:09:03 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.227: +9 -26 lines
Diff to previous 1.227 (colored) to selected 1.12.2.11 (colored)

Incorporate 4 changes that have been suggested:
* At high speed, set the FIFO trigger to the maximum value to reduce interrupt
  load.  PR 15448.
* Handler the case of IIR=RXRDY and LSR=!LSR_RCV_MASK differently, to avoid a
  hang with some chips.  PR 21184, and possibly PR 10974 and PR 8248.
* Remove the extra wait at the end of com_common_putc(), after writing a
  character out, so that we get another TXRDY interrupt.  This prevents stalls
  when normal output and kernel output are mixed.  PR 4263.
* Do not "preload" the TX FIFO; wait for a TXRDY interrupt to come in after
  enabling it.

Revision 1.227 / (download) - annotate - [select for diffs], Sat May 1 19:03:59 2004 UTC (19 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.226: +10 -5 lines
Diff to previous 1.226 (colored) to selected 1.12.2.11 (colored)

Rename the COM16650 option to COM_16650, for consistency with other
com variant options.

Revision 1.226 / (download) - annotate - [select for diffs], Sat May 1 06:12:18 2004 UTC (19 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.225: +3 -3 lines
Diff to previous 1.225 (colored) to selected 1.12.2.11 (colored)

Wait just a little longer for console output to finish when we're
attaching the console uart.

Revision 1.196.4.1 / (download) - annotate - [select for diffs], Tue Apr 6 07:59:18 2004 UTC (19 years, 11 months ago) by tron
Branch: netbsd-1-6
Changes since 1.196: +18 -6 lines
Diff to previous 1.196 (colored) next main 1.197 (colored) to selected 1.12.2.11 (colored)

Pull up revision 1.225 (requested by enami in ticket #1658):
Fix race condition introduced in rev 1.189; after the change, if there is
THRE interrupt occurs between the LSR read and IIR read, we won't see the
LSR_TXRDY bit when testing it in the variable `lsr' and we don't interrupted
again (as the corresponding bit in the IIR is cleared by reading, except
for some broken device).
Tested by Matthias Scheler and me, reviewed by Allen Briggs.
Closes PR#25010.

Revision 1.224.2.1 / (download) - annotate - [select for diffs], Tue Apr 6 04:01:40 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.224: +18 -6 lines
Diff to previous 1.224 (colored) to selected 1.12.2.11 (colored)

Pullup rev 1.225 (requested by enami in ticket #70)

Fix race condition introduced in rev 1.189; after the change, if there is
THRE interrupt occurs between the LSR read and IIR read, we won't see the
LSR_TXRDY bit when testing it in the variable 'lsr' and we don't get
interrupted again (as the corresponding bit in the IIR is cleared by reading,
except for some broken devices). PR#25010

Revision 1.225 / (download) - annotate - [select for diffs], Mon Apr 5 22:33:08 2004 UTC (19 years, 11 months ago) by enami
Branch: MAIN
Changes since 1.224: +18 -6 lines
Diff to previous 1.224 (colored) to selected 1.12.2.11 (colored)

Fix race condition introduced in rev 1.189; after the change, if there is
THRE interrupt occurs between the LSR read and IIR read, we won't see the
LSR_TXRDY bit when testing it in the variable `lsr' and we don't interrupted
again (as the corresponding bit in the IIR is cleared by reading, except
for some broken device).

Tested by Matthias Scheler and me, reviewed by Allen Briggs.
Closes PR#25010.

Revision 1.224 / (download) - annotate - [select for diffs], Fri Jan 23 05:01:19 2004 UTC (20 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.223: +35 -17 lines
Diff to previous 1.223 (colored) to selected 1.12.2.11 (colored)

Fix NTP PPSAPI support (enabled with "options PPS_SYNC"):

From PR kern/13702 from Charles Carvalho.  Tested on alpha and
i386 with a Laipac TF10 PPS-capable GPS.  The com.c change was
copied wholesale from Charles' z8530tty.c patch.

Revision 1.223 / (download) - annotate - [select for diffs], Wed Nov 12 06:27:59 2003 UTC (20 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.222: +3 -3 lines
Diff to previous 1.222 (colored) to selected 1.12.2.11 (colored)

Use just "type" and not "sc->sc_type" in cominit().

Pointed out by Shoichi Miyake in private mail.

Revision 1.222 / (download) - annotate - [select for diffs], Sat Nov 8 02:54:47 2003 UTC (20 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.221: +3 -3 lines
Diff to previous 1.221 (colored) to selected 1.12.2.11 (colored)

Make comsoft_callout static; it's not referenced outside this file.

Revision 1.221 / (download) - annotate - [select for diffs], Thu Nov 6 23:02:27 2003 UTC (20 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.220: +6 -6 lines
Diff to previous 1.220 (colored) to selected 1.12.2.11 (colored)

Be consistent with other COM_TYPE_PXA2x0 checks.

Revision 1.220 / (download) - annotate - [select for diffs], Thu Nov 6 22:30:09 2003 UTC (20 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.219: +2 -3 lines
Diff to previous 1.219 (colored) to selected 1.12.2.11 (colored)

White space nit.

Revision 1.219 / (download) - annotate - [select for diffs], Wed Sep 3 13:05:50 2003 UTC (20 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.218: +3 -3 lines
Diff to previous 1.218 (colored) to selected 1.12.2.11 (colored)

Add missing semicolon.

Revision 1.218 / (download) - annotate - [select for diffs], Mon Sep 1 16:44:03 2003 UTC (20 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.217: +13 -13 lines
Diff to previous 1.217 (colored) to selected 1.12.2.11 (colored)

fix debugging printfs

Revision 1.217 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:00 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.216: +3 -7 lines
Diff to previous 1.216 (colored) to selected 1.12.2.11 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.216.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:04 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.216: +11 -10 lines
Diff to previous 1.216 (colored) to selected 1.12.2.11 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.216 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:10 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.215: +10 -11 lines
Diff to previous 1.215 (colored) to selected 1.12.2.11 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.215 / (download) - annotate - [select for diffs], Sun Jun 29 14:09:21 2003 UTC (20 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.214: +3 -3 lines
Diff to previous 1.214 (colored) to selected 1.12.2.11 (colored)

Restore parentheses around return value that were removed with the
previous commit.

Revision 1.214 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:34 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.213: +11 -10 lines
Diff to previous 1.213 (colored) to selected 1.12.2.11 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.213 / (download) - annotate - [select for diffs], Mon Jun 23 11:01:57 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.212: +4 -2 lines
Diff to previous 1.212 (colored) to selected 1.12.2.11 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.212 / (download) - annotate - [select for diffs], Wed Jun 18 04:35:23 2003 UTC (20 years, 9 months ago) by bsh
Branch: MAIN
Changes since 1.211: +7 -2 lines
Diff to previous 1.211 (colored) to selected 1.12.2.11 (colored)

in cominit(), turn on UUE bit in IER register if it is PXA2x0's
built-in UART.

Revision 1.211 / (download) - annotate - [select for diffs], Sun Jun 15 01:34:34 2003 UTC (20 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.210: +6 -4 lines
Diff to previous 1.210 (colored) to selected 1.12.2.11 (colored)

Wrap some long lines.

Revision 1.210 / (download) - annotate - [select for diffs], Sat Jun 14 17:01:06 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.209: +15 -13 lines
Diff to previous 1.209 (colored) to selected 1.12.2.11 (colored)

Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.

Revision 1.209 / (download) - annotate - [select for diffs], Sat Jun 14 16:25:52 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.208: +19 -19 lines
Diff to previous 1.208 (colored) to selected 1.12.2.11 (colored)

Introduce a new "type" field in the softc which is used to indicate
the general UART type.  Currently, we have "normal", "hayesp" and
"pxa2x0" types.  Replace the corresponding hw flags with the new type
values.

Revision 1.208 / (download) - annotate - [select for diffs], Thu Jun 5 13:40:38 2003 UTC (20 years, 9 months ago) by scw
Branch: MAIN
Changes since 1.207: +76 -14 lines
Diff to previous 1.207 (colored) to selected 1.12.2.11 (colored)

Add support, via a kernel config file option, for the 16550-compatible
com ports found on Intel PXA2x0 processors.

Re-arrange the code which detects the FIFO configuration to defer
printing until _after_ com_fifo is cleared. Some supposedly compatible
chips clear the Tx/Rx FIFOs when this happens, resulting in previous
output being lost.

Revision 1.207 / (download) - annotate - [select for diffs], Sun May 18 15:10:08 2003 UTC (20 years, 10 months ago) by fvdl
Branch: MAIN
Changes since 1.206: +4 -3 lines
Diff to previous 1.206 (colored) to selected 1.12.2.11 (colored)

Inialize sc_tty->t_dev early for serial console, so that cn_check_magic
will match in the case of a break before the console was opened for the
first time. Makes BREAKing into DDB work (again) as soon as interrupts
are enabled.

Revision 1.206 / (download) - annotate - [select for diffs], Mon Apr 28 02:46:09 2003 UTC (20 years, 11 months ago) by briggs
Branch: MAIN
Changes since 1.205: +27 -16 lines
Diff to previous 1.205 (colored) to selected 1.12.2.11 (colored)

Allow the console to be used for kgdb if both DDB and KGDB are defined.

Revision 1.205 / (download) - annotate - [select for diffs], Mon Apr 21 03:43:18 2003 UTC (20 years, 11 months ago) by gson
Branch: MAIN
Changes since 1.204: +9 -2 lines
Diff to previous 1.204 (colored) to selected 1.12.2.11 (colored)

Ignore input when the port is not open.  This change is functionally
identical to the patch in kern/6502 (which is hereby fixed), but
modelled after the corresponding fix to the 8530 driver in
z8530tty.c revision 1.60 to maintain consistency with that driver.

Revision 1.204 / (download) - annotate - [select for diffs], Fri Mar 14 02:21:01 2003 UTC (21 years ago) by simonb
Branch: MAIN
Changes since 1.203: +5 -6 lines
Diff to previous 1.203 (colored) to selected 1.12.2.11 (colored)

Fix some white-space niggles.

Revision 1.203 / (download) - annotate - [select for diffs], Thu Mar 6 00:38:27 2003 UTC (21 years ago) by matt
Branch: MAIN
Changes since 1.202: +3 -3 lines
Diff to previous 1.202 (colored) to selected 1.12.2.11 (colored)

Add cn_halt and cn_flush entries to consdevs.  (needed for dma-only console
devices).

Revision 1.202 / (download) - annotate - [select for diffs], Fri Jan 31 00:26:28 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.201: +11 -11 lines
Diff to previous 1.201 (colored) to selected 1.12.2.11 (colored)

Use aprint_*().

Revision 1.183.2.11 / (download) - annotate - [select for diffs], Mon Nov 11 22:09:20 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.183.2.10: +3 -3 lines
Diff to previous 1.183.2.10 (colored) to branchpoint 1.183 (colored) next main 1.184 (colored) to selected 1.12.2.11 (colored)

Catch up to -current

Revision 1.201 / (download) - annotate - [select for diffs], Thu Nov 7 08:07:26 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.200: +4 -4 lines
Diff to previous 1.200 (colored) to selected 1.12.2.11 (colored)

Fix signed/unsigned comparison warnings.

Revision 1.200 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:15 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.199: +3 -3 lines
Diff to previous 1.199 (colored) to selected 1.12.2.11 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.186.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:38:53 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.186.2.5: +18 -11 lines
Diff to previous 1.186.2.5 (colored) next main 1.187 (colored) to selected 1.12.2.11 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.183.2.10 / (download) - annotate - [select for diffs], Tue Sep 17 21:19:43 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.9: +16 -9 lines
Diff to previous 1.183.2.9 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.

Revision 1.199 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 6 months ago) by gehenna
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.198: +18 -11 lines
Diff to previous 1.198 (colored) to selected 1.12.2.11 (colored)

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.

Revision 1.186.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:44:13 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.186.2.4: +94 -184 lines
Diff to previous 1.186.2.4 (colored) to selected 1.12.2.11 (colored)

sync kqueue branch with HEAD

Revision 1.196.2.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:26 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.196.2.1: +97 -187 lines
Diff to previous 1.196.2.1 (colored) to branchpoint 1.196 (colored) next main 1.197 (colored) to selected 1.12.2.11 (colored)

catch up with -current.

Revision 1.183.2.9 / (download) - annotate - [select for diffs], Thu Aug 1 02:44:40 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.8: +92 -182 lines
Diff to previous 1.183.2.8 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.

Revision 1.198 / (download) - annotate - [select for diffs], Mon Jul 29 05:57:16 2002 UTC (21 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.197: +3 -3 lines
Diff to previous 1.197 (colored) to selected 1.12.2.11 (colored)

Don't name parameters in a function declaration.

Revision 1.197 / (download) - annotate - [select for diffs], Mon Jul 29 05:54:09 2002 UTC (21 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.196: +94 -184 lines
Diff to previous 1.196 (colored) to selected 1.12.2.11 (colored)

ANSIfy, KNF.

Revision 1.186.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:46:16 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.186.2.3: +15 -6 lines
Diff to previous 1.186.2.3 (colored) to selected 1.12.2.11 (colored)

catch up with -current on kqueue branch

Revision 1.196.2.1 / (download) - annotate - [select for diffs], Thu May 16 12:18:37 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.196: +18 -11 lines
Diff to previous 1.196 (colored) to selected 1.12.2.11 (colored)

Add the character device switch.
Replace the access to devsw table with calling devsw API.

Revision 1.183.2.8 / (download) - annotate - [select for diffs], Wed Apr 17 00:05:34 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.7: +10 -3 lines
Diff to previous 1.183.2.7 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.

Revision 1.196 / (download) - annotate - [select for diffs], Sat Apr 13 17:05:16 2002 UTC (21 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.195: +11 -2 lines
Diff to previous 1.195 (colored) to selected 1.12.2.11 (colored)

PR/16058: Tero Kivinen: Don't free rbuf or detach tty if rbuf allocation
failed during attach phase.

Revision 1.195 / (download) - annotate - [select for diffs], Fri Apr 12 19:32:30 2002 UTC (21 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.194: +3 -3 lines
Diff to previous 1.194 (colored) to selected 1.12.2.11 (colored)

* Add a new hwflag, COM_HW_NO_TXPRELOAD, which tells comstart() to
  not pre-load the chip's Tx buffer, but instead waits for the Tx Ready
  interrupt to transmit the first chunk of data.
* On the IOP310, set COM_HW_NO_TXPRELOAD, rather than COM_HW_TXFIFO_DISABLE.

This solves the "UART hangs" problem on the Npwr in a nicer way (i.e. we
get to use the FIFO, whee).  The COM_HW_NO_TXPRELOAD happens to match the
Linux 16550 driver's Tx algorithm, and the "UART hang" was never observed
on the Npwr running Linux.

Eventually, we might want to eliminate the COM_HW_NO_TXPRELOAD, and simply
always use its algorithm.  But it should be tested on more 16x50 variants
before we do that.

Kudos to Valeriy Ushakov <uwe@netbsd.org> for pointing out this solution
(which also happens to fix the stray UART interrupt issue on the Krups
Javastation), and to Allen Briggs <briggs@netbsd.org> for experimenting
with various methods of fixing this.

Revision 1.183.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 07:45:19 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.6: +5 -5 lines
Diff to previous 1.183.2.6 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.194 / (download) - annotate - [select for diffs], Sun Mar 17 19:40:57 2002 UTC (22 years ago) by atatat
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.193: +5 -5 lines
Diff to previous 1.193 (colored) to selected 1.12.2.11 (colored)

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.

Revision 1.186.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:54:19 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.186.2.2: +18 -6 lines
Diff to previous 1.186.2.2 (colored) to selected 1.12.2.11 (colored)

Sync kqueue branch with -current.

Revision 1.183.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:29:38 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.5: +2 -4 lines
Diff to previous 1.183.2.5 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.

Revision 1.193 / (download) - annotate - [select for diffs], Tue Nov 20 08:43:45 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.192: +2 -3 lines
Diff to previous 1.192 (colored) to selected 1.12.2.11 (colored)

- pull in opt_kgdb.h where necessary
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
	KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
	DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for  options KGDB_DEVNAME="\"com\""
- use correct quotes for  options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup

Revision 1.192 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:06 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.191: +2 -3 lines
Diff to previous 1.191 (colored) to selected 1.12.2.11 (colored)

don't need <sys/types.h> when including <sys/param.h>

Revision 1.183.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:14:19 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.4: +11 -1 lines
Diff to previous 1.183.2.4 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.

Revision 1.191 / (download) - annotate - [select for diffs], Tue Nov 13 13:14:36 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.190: +4 -1 lines
Diff to previous 1.190 (colored) to selected 1.12.2.11 (colored)

add/cleanup RCSID

Revision 1.189.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:00 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.189: +8 -1 lines
Diff to previous 1.189 (colored) next main 1.190 (colored) to selected 1.12.2.11 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.190 / (download) - annotate - [select for diffs], Mon Nov 5 21:39:24 2001 UTC (22 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.189: +8 -1 lines
Diff to previous 1.189 (colored) to selected 1.12.2.11 (colored)

Initialize the cn_magic goo for kgdb (bah, that should really not
be necessary).

Revision 1.188.2.5 / (download) - annotate - [select for diffs], Sat Oct 13 17:42:46 2001 UTC (22 years, 5 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.188.2.4: +11 -15 lines
Diff to previous 1.188.2.4 (colored) to branchpoint 1.188 (colored) next main 1.189 (colored) to selected 1.12.2.11 (colored)

Revert the t_dev -> t_devvp change in struct tty. The way that tty
structs are currently used (especially by console ttys) aren't
ready for it, and this will require quite a few changes.

Revision 1.188.2.4 / (download) - annotate - [select for diffs], Mon Oct 1 12:45:31 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.188.2.3: +8 -4 lines
Diff to previous 1.188.2.3 (colored) to branchpoint 1.188 (colored) to selected 1.12.2.11 (colored)

Catch up with -current.

Revision 1.188.2.3 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:11 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.188.2.2: +57 -26 lines
Diff to previous 1.188.2.2 (colored) to branchpoint 1.188 (colored) to selected 1.12.2.11 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.183.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:35 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.3: +43 -10 lines
Diff to previous 1.183.2.3 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.

Revision 1.188.2.2 / (download) - annotate - [select for diffs], Tue Sep 18 19:13:50 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.188.2.1: +8 -3 lines
Diff to previous 1.188.2.1 (colored) to branchpoint 1.188 (colored) to selected 1.12.2.11 (colored)

Various changes to make cloning devices possible:

	* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
	  not NULL, specfs will create a cloned (aliased) vnode during
	  the call, and return it there. The caller should release and
	  unlock the original vnode if a new vnode was returned. The
	  new vnode is returned locked.

	* Add a flag field to the cdevsw and bdevsw structures.
	  DF_CLONING indicates that it wants a new vnode for each
	  open (XXX is there a better way? devprop?)

	* If a device is cloning, always call the close entry
	  point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).

Revision 1.189 / (download) - annotate - [select for diffs], Mon Sep 17 02:47:13 2001 UTC (22 years, 6 months ago) by briggs
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.188: +8 -4 lines
Diff to previous 1.188 (colored) to selected 1.12.2.11 (colored)

Patch to handle odd behavior from exar ST16C1550 UART.  It does not set
IIR_NOPEND if the TXRDY condition is true.  Apparently, other chips do
not take TXRDY into account in the IIR_NOPEND case.

Also remove useless assignment (iir = IIR_NOPEND;) in one case.

No response from patch posted on tech-kern 29Aug2001.

Revision 1.186.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:37 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.186.2.1: +32 -2 lines
Diff to previous 1.186.2.1 (colored) to selected 1.12.2.11 (colored)

Update the kqueue branch to HEAD.

Revision 1.188.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:25 2001 UTC (22 years, 6 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.188: +35 -31 lines
Diff to previous 1.188 (colored) to selected 1.12.2.11 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.188 / (download) - annotate - [select for diffs], Mon Aug 27 14:27:01 2001 UTC (22 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.187: +32 -2 lines
Diff to previous 1.187 (colored) to selected 1.12.2.11 (colored)

For hayes esp card, set prescaler if specified rate is grater than 115200.

Revision 1.186.2.1 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:14 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.186: +5 -6 lines
Diff to previous 1.186 (colored) to selected 1.12.2.11 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.183.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:09:19 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.2: +59 -77 lines
Diff to previous 1.183.2.2 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up with -current.

Revision 1.187 / (download) - annotate - [select for diffs], Wed Aug 22 12:44:10 2001 UTC (22 years, 7 months ago) by simonb
Branch: MAIN
Changes since 1.186: +5 -6 lines
Diff to previous 1.186 (colored) to selected 1.12.2.11 (colored)

Cosmetic cleanups:
  - cominit() is local to com.c, remove prototype from comvar.h.
  - Don't prototype comstop(), cdev_decl(com) does this.
  - Don't use a block device switch table declaration(!).
  - No need to include "com.h".

Revision 1.183.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:02:20 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.183.2.1: +18 -2 lines
Diff to previous 1.183.2.1 (colored) to branchpoint 1.183 (colored) to selected 1.12.2.11 (colored)

Catch up to -current.

Revision 1.186 / (download) - annotate - [select for diffs], Wed Jun 20 03:07:25 2001 UTC (22 years, 9 months ago) by uwe
Branch: MAIN
Branch point for: kqueue
Changes since 1.185: +59 -77 lines
Diff to previous 1.185 (colored) to selected 1.12.2.11 (colored)

Convert to use cnmagic(9).  Unifdef DDB and DDB_BREAK_CHAR.
While I'm here, s/ungetc/readahead/ in com_common_* because that's
what it _really_ is, "ungetc" is a very confusing name.

Revision 1.185 / (download) - annotate - [select for diffs], Wed May 30 15:24:23 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.184: +3 -2 lines
Diff to previous 1.184 (colored) to selected 1.12.2.11 (colored)

add missing   #include "opt_kgdb.h"

Revision 1.184 / (download) - annotate - [select for diffs], Wed May 2 10:32:09 2001 UTC (22 years, 11 months ago) by scw
Branch: MAIN
Changes since 1.183: +16 -1 lines
Diff to previous 1.183 (colored) to selected 1.12.2.11 (colored)

Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.

Revision 1.183.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:34 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.183: +3 -1 lines
Diff to previous 1.183 (colored) to selected 1.12.2.11 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.162.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:17 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.162.2.2: +8 -8 lines
Diff to previous 1.162.2.2 (colored) to branchpoint 1.162 (colored) next main 1.163 (colored) to selected 1.12.2.11 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.183 / (download) - annotate - [select for diffs], Sun Jan 14 23:50:28 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.182: +9 -9 lines
Diff to previous 1.182 (colored) to selected 1.12.2.11 (colored)

Rename __GENERIC_SOFT_INTERRUPTS to __HAVE_GENERIC_SOFT_INTERRUPTS,
and place the definition in <machine/types.h>.  This can now be used
as a flag to indicate whether or not <machine/intr.h> can be included
to get the generic soft interrupt API.

Revision 1.162.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:03:15 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.162.2.1: +13 -11 lines
Diff to previous 1.162.2.1 (colored) to branchpoint 1.162 (colored) to selected 1.12.2.11 (colored)

Sync with HEAD.

Revision 1.162.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:40:26 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.162: +213 -92 lines
Diff to previous 1.162 (colored) to selected 1.12.2.11 (colored)

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.

Revision 1.182 / (download) - annotate - [select for diffs], Sat Nov 18 15:46:23 2000 UTC (23 years, 4 months ago) by sommerfeld
Branch: MAIN
Changes since 1.181: +3 -1 lines
Diff to previous 1.181 (colored) to selected 1.12.2.11 (colored)

Initialize ring buffer pointers when the ring buffer is allocated.
(comsoft() can be invoked before comopen() on serial consoles; a character
received before the console is opened "for real" can result in a fatal trap
unless the ring buffer pointers are initialized early)

Revision 1.181 / (download) - annotate - [select for diffs], Wed Nov 1 23:54:57 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.180: +11 -11 lines
Diff to previous 1.180 (colored) to selected 1.12.2.11 (colored)

Adapt to the new line discipline scheme.

Revision 1.180 / (download) - annotate - [select for diffs], Tue Sep 26 14:12:42 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.179: +2 -2 lines
Diff to previous 1.179 (colored) to selected 1.12.2.11 (colored)

Add missing '&& defined(COM_MPLOCK)'

Revision 1.179 / (download) - annotate - [select for diffs], Sat Sep 23 17:17:12 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.178: +54 -3 lines
Diff to previous 1.178 (colored) to selected 1.12.2.11 (colored)

Add `COM_MPLOCK' option to use a device-instance-specific spinlocks
when running at splserial().  This is a temporary measure (until
there's a MP-safe interrupt handling structure); until then, it should
be used when MULTIPROCESSOR and IPL_SERIAL > IPL_SCHED.

Revision 1.178 / (download) - annotate - [select for diffs], Fri Sep 22 14:46:38 2000 UTC (23 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.177: +11 -13 lines
Diff to previous 1.177 (colored) to selected 1.12.2.11 (colored)

paddr_t -> bus_addr_t.

Revision 1.177 / (download) - annotate - [select for diffs], Thu Sep 21 23:27:32 2000 UTC (23 years, 6 months ago) by eeh
Branch: MAIN
Changes since 1.176: +26 -19 lines
Diff to previous 1.176 (colored) to selected 1.12.2.11 (colored)

Support for SPARC machines with `su' devices.

Revision 1.176 / (download) - annotate - [select for diffs], Sun Sep 17 22:07:39 2000 UTC (23 years, 6 months ago) by toshii
Branch: MAIN
Changes since 1.175: +3 -2 lines
Diff to previous 1.175 (colored) to selected 1.12.2.11 (colored)

Change tiocm_to_{com,zs}'s second argument to u_long to match with
the type in their caller.

Revision 1.175 / (download) - annotate - [select for diffs], Fri Aug 18 13:22:39 2000 UTC (23 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.174: +5 -1 lines
Diff to previous 1.174 (colored) to selected 1.12.2.11 (colored)

Avoid calling tsleep when running above splhigh()

Revision 1.174 / (download) - annotate - [select for diffs], Thu Aug 3 00:30:47 2000 UTC (23 years, 8 months ago) by jeffs
Branch: MAIN
Changes since 1.173: +59 -1 lines
Diff to previous 1.173 (colored) to selected 1.12.2.11 (colored)

Add options DDB_BREAK_CHAR.  This overrides break on the serial console
break character with the supplied one.  This is useful for cases where
break is hard to generate, or you are connected to a PC that "sends"
breaks when power cycled.  For this mode in com, interpret break char
in the polling section, which allows entry into the debugger before
the tty is opened.  Only supported in the com driver currently.

Revision 1.173 / (download) - annotate - [select for diffs], Thu Jul 6 01:47:36 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.172: +14 -17 lines
Diff to previous 1.172 (colored) to selected 1.12.2.11 (colored)

Use device_lookup().

Revision 1.172 / (download) - annotate - [select for diffs], Wed May 3 19:19:04 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.171: +2 -2 lines
Diff to previous 1.171 (colored) to selected 1.12.2.11 (colored)

Remove unnecessary junk on #undef line that some C preprocessors
get cranky about.

Revision 1.171 / (download) - annotate - [select for diffs], Thu Mar 30 02:04:30 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.170: +1 -2 lines
Diff to previous 1.170 (colored) to selected 1.12.2.11 (colored)

Delete redundant decl of com_attach_subr(), it's in comvar.h.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:29 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.169: +10 -5 lines
Diff to previous 1.169 (colored) to selected 1.12.2.11 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.169 / (download) - annotate - [select for diffs], Mon Mar 6 21:36:12 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.168: +3 -2 lines
Diff to previous 1.168 (colored) to selected 1.12.2.11 (colored)

- Implement cnbell() -- ring the console bell.  The cn_bell entrypoint
  is optional.
- Add cn_bell to statically allocated consdevs as appropriate.

Revision 1.159.2.4 / (download) - annotate - [select for diffs], Tue Feb 8 22:14:27 2000 UTC (24 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.159.2.3: +41 -41 lines
Diff to previous 1.159.2.3 (colored) to branchpoint 1.159 (colored) next main 1.160 (colored) to selected 1.12.2.11 (colored)

Pull up revisions 1.167-1.168 (requested by jonathan):
  Properly catch PPS signals on DCD transitions, even if DCD is
  otherwise ignored.

Revision 1.168 / (download) - annotate - [select for diffs], Mon Feb 7 02:17:18 2000 UTC (24 years, 1 month ago) by jonathan
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.167: +5 -5 lines
Diff to previous 1.167 (colored) to selected 1.12.2.11 (colored)

Fix thinko in previous revision: it wouldn't catch deassert.
Revert the code inside the new test to the previous-but-one revision.

Revision 1.167 / (download) - annotate - [select for diffs], Sun Feb 6 23:23:37 2000 UTC (24 years, 1 month ago) by jonathan
Branch: MAIN
Changes since 1.166: +42 -42 lines
Diff to previous 1.166 (colored) to selected 1.12.2.11 (colored)

Check for DCD status change interrupts which signal PPS events, even
if the line discipline is ignoring carrier (e.g., via comparam()'s
setting of sc->sc_msr_mask).  Move PPS timestamp outside the normal
status-change processing, and ignore sc_msr_mask when testing
for PPS events.

Revision 1.166 / (download) - annotate - [select for diffs], Sun Jan 23 21:06:01 2000 UTC (24 years, 2 months ago) by soda
Branch: MAIN
Changes since 1.165: +5 -1 lines
Diff to previous 1.165 (colored) to selected 1.12.2.11 (colored)

kluge to make this work with NEC M403 (arc/magnum).

Revision 1.159.2.3 / (download) - annotate - [select for diffs], Thu Jan 20 23:24:39 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.159.2.2: +7 -14 lines
Diff to previous 1.159.2.2 (colored) to branchpoint 1.159 (colored) to selected 1.12.2.11 (colored)

Pull up revisions 1.162-1.163 (requested by jonathan):
  Fix TIMEVAL/TIMESPEC botches and update to the -05 draft version
  of the PPS-API specification.

Revision 1.159.2.2 / (download) - annotate - [select for diffs], Wed Jan 5 23:44:41 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.159.2.1: +3 -3 lines
Diff to previous 1.159.2.1 (colored) to branchpoint 1.159 (colored) to selected 1.12.2.11 (colored)

Pull up revision 1.165 (requested by drochner):
  Set carrier early enough for a serial console or kgdb to work
  with hardware handshake.  Fixes PR#6547.

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:45 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.161: +10 -16 lines
Diff to previous 1.161 (colored) next main 1.162 (colored) to selected 1.12.2.11 (colored)

Pull up to last week's -current.

Revision 1.165 / (download) - annotate - [select for diffs], Tue Dec 21 11:04:36 1999 UTC (24 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.164: +3 -3 lines
Diff to previous 1.164 (colored) to selected 1.12.2.11 (colored)

set carrier early if used as console or kgdb line, fixes PR kern/6547
by Andreas Gustafsson, gson@iengines.com

Revision 1.164 / (download) - annotate - [select for diffs], Mon Nov 22 03:53:38 1999 UTC (24 years, 4 months ago) by sommerfeld
Branch: MAIN
Changes since 1.163: +2 -1 lines
Diff to previous 1.163 (colored) to selected 1.12.2.11 (colored)

defopt COM_DEBUG, COM_HAYESP, and COM16650

Revision 1.162.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:40:28 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.162: +7 -12 lines
Diff to previous 1.162 (colored) next main 1.163 (colored) to selected 1.12.2.11 (colored)

Sync with -current

Revision 1.163 / (download) - annotate - [select for diffs], Thu Nov 4 05:33:58 1999 UTC (24 years, 4 months ago) by jonathan
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.162: +7 -12 lines
Diff to previous 1.162 (colored) to selected 1.12.2.11 (colored)

Update user-level PPS-API to match -05 draft.
Change PPS_<xxx> ioctls to PPS_IOC_<xxx>.

Revision 1.162 / (download) - annotate - [select for diffs], Fri Oct 15 06:16:15 1999 UTC (24 years, 5 months ago) by jonathan
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.161: +1 -3 lines
Diff to previous 1.161 (colored) to selected 1.12.2.11 (colored)

Fix nanosecond/microsecond botch in PPSAPI:
  remove bogus TIMESPEC_TO_TIMEVAL() after applying any {assert,clear} offset.

Revision 1.159.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:17:42 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.159.2.1: +0 -0 lines
Diff to previous 1.159.2.1 (colored) next main 1.159.2.2 (colored) to selected 1.12.2.11 (colored)

Sync w/ -current.

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Mon Apr 19 20:37:57 1999 UTC (24 years, 11 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.159: +12 -11 lines
Diff to previous 1.159 (colored) to selected 1.12.2.11 (colored)

pullup 1.159->1.161 -- requested by ross. apparently fixes critical bugs on
a number of ports.

Revision 1.161 / (download) - annotate - [select for diffs], Mon Apr 19 19:27:31 1999 UTC (24 years, 11 months ago) by ross
Branch: MAIN
CVS Tags: chs-ubc2-base
Branch point for: wrstuden-devbsize
Changes since 1.160: +5 -5 lines
Diff to previous 1.160 (colored) to selected 1.12.2.11 (colored)

Get rid of delay() in com_common_putc() because the Shark delay() is borked
and can't be called until after the timers are setup. (It should not use
a timer, or it should have a fallback algorithm.)

Revision 1.160 / (download) - annotate - [select for diffs], Sun Apr 18 22:02:47 1999 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.159: +13 -12 lines
Diff to previous 1.159 (colored) to selected 1.12.2.11 (colored)

Revert revision 1.159.  The correct answer was not to re-break the
serial console support, but rather to fix the Shark delay().

Revision 1.159 / (download) - annotate - [select for diffs], Wed Mar 31 12:44:04 1999 UTC (25 years ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.158: +12 -13 lines
Diff to previous 1.158 (colored) to selected 1.12.2.11 (colored)

back date this file to version 1.155 which works on the shark.

Revision 1.158 / (download) - annotate - [select for diffs], Mon Mar 29 13:40:41 1999 UTC (25 years ago) by mycroft
Branch: MAIN
Changes since 1.157: +3 -6 lines
Diff to previous 1.157 (colored) to selected 1.12.2.11 (colored)

Nuke bogus extra variable, too.

Revision 1.157 / (download) - annotate - [select for diffs], Mon Mar 29 13:21:15 1999 UTC (25 years ago) by mycroft
Branch: MAIN
Changes since 1.156: +4 -11 lines
Diff to previous 1.156 (colored) to selected 1.12.2.11 (colored)

Fix bogons in previous change:
* The fact that IIR_NOPEND was not set on entry does *not* mean that no
  transmission was in progress.  Besides, we don't want to throw away receive
  interrupts either.
* In the !clearirq case, we didn't splx().

Revision 1.156 / (download) - annotate - [select for diffs], Mon Mar 29 10:01:39 1999 UTC (25 years ago) by ross
Branch: MAIN
Changes since 1.155: +19 -8 lines
Diff to previous 1.155 (colored) to selected 1.12.2.11 (colored)

Mods to com_common_putc(). When doing kprintf() or kgdb output:
1. don't clear the irq unless it was clear before transmitting
2. also do various bus_space_barrier() ops
Stops console from freezing when kprintf interrupts tty driver output.

Revision 1.155 / (download) - annotate - [select for diffs], Sun Feb 28 17:10:52 1999 UTC (25 years, 1 month ago) by explorer
Branch: MAIN
Changes since 1.154: +2 -2 lines
Diff to previous 1.154 (colored) to selected 1.12.2.11 (colored)

Update to slightly altered rnd_attach_source() api

Revision 1.154 / (download) - annotate - [select for diffs], Fri Feb 12 12:45:48 1999 UTC (25 years, 1 month ago) by drochner
Branch: MAIN
Changes since 1.153: +4 -3 lines
Diff to previous 1.153 (colored) to selected 1.12.2.11 (colored)

make the probe stricter to catch cases where the chipset doesn't pull
the data lines to "high" for not-existant devices

Revision 1.153 / (download) - annotate - [select for diffs], Wed Feb 3 23:57:27 1999 UTC (25 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.152: +77 -48 lines
Diff to previous 1.152 (colored) to selected 1.12.2.11 (colored)

Separate the tiocm code into functions, like the z8530 code, and fix the same
DTR bug.

Revision 1.152 / (download) - annotate - [select for diffs], Wed Feb 3 23:22:11 1999 UTC (25 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.151: +2 -1 lines
Diff to previous 1.151 (colored) to selected 1.12.2.11 (colored)

Fix an inconsistency: PPS was turned off on first open, but the mode may have
still claimed it was enabled.

Revision 1.151 / (download) - annotate - [select for diffs], Wed Feb 3 23:20:33 1999 UTC (25 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.150: +21 -37 lines
Diff to previous 1.150 (colored) to selected 1.12.2.11 (colored)

Slight redux in PPS code.

Revision 1.150 / (download) - annotate - [select for diffs], Tue Jan 26 17:08:37 1999 UTC (25 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.149: +2 -2 lines
Diff to previous 1.149 (colored) to selected 1.12.2.11 (colored)

Debugger() -> console_debugger() to honour the ddb_fromconsole sysctl

Revision 1.149 / (download) - annotate - [select for diffs], Wed Nov 18 23:58:52 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.148: +107 -6 lines
Diff to previous 1.148 (colored) to selected 1.12.2.11 (colored)

Add support for detaching "com" instances.

Revision 1.148 / (download) - annotate - [select for diffs], Wed Sep 16 21:30:58 1998 UTC (25 years, 6 months ago) by is
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.147: +2 -3 lines
Diff to previous 1.147 (colored) to selected 1.12.2.11 (colored)

Garbage collect unused 3rd parameter to comprobe1().

Revision 1.147 / (download) - annotate - [select for diffs], Wed Sep 9 05:17:53 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.146: +12 -5 lines
Diff to previous 1.146 (colored) to selected 1.12.2.11 (colored)

Don't use M_WAITOK to allocate the ring buffer; we could be in interrupt
context.  Reported by Lennart Augustsson.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Aug 15 17:47:16 1998 UTC (25 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.145: +21 -18 lines
Diff to previous 1.145 (colored) to selected 1.12.2.11 (colored)

Assign my copyrights to TNF.

Revision 1.145 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:50 1998 UTC (25 years, 8 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.144: +3 -1 lines
Diff to previous 1.144 (colored) to selected 1.12.2.11 (colored)

defopt DDB.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Jun 10 12:06:23 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.143: +186 -1 lines
Diff to previous 1.143 (colored) to selected 1.12.2.11 (colored)

PPS support from April, reworked and extended to match the PPS-API
Internet Draft (draft-mogul-pps-api-02.txt).

Revision 1.118.2.5 / (download) - annotate - [select for diffs], Tue May 5 08:33:30 1998 UTC (25 years, 10 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.118.2.4: +20 -16 lines
Diff to previous 1.118.2.4 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored) to selected 1.12.2.11 (colored)

Pull up 1.136-1.138, per request of scottr.

Revision 1.143 / (download) - annotate - [select for diffs], Sun Mar 22 00:55:37 1998 UTC (26 years ago) by mycroft
Branch: MAIN
Changes since 1.142: +16 -19 lines
Diff to previous 1.142 (colored) to selected 1.12.2.11 (colored)

Move the code to wait for carrier on a tty into a common function, since it
depends only on device-independent state bits.
Implement SunOS-style `dialout' devices.

Revision 1.142 / (download) - annotate - [select for diffs], Sat Mar 21 04:27:58 1998 UTC (26 years ago) by mycroft
Branch: MAIN
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored) to selected 1.12.2.11 (colored)

Remove a bogus initializer.

Revision 1.141 / (download) - annotate - [select for diffs], Sat Mar 21 04:05:49 1998 UTC (26 years ago) by mycroft
Branch: MAIN
Changes since 1.140: +73 -74 lines
Diff to previous 1.140 (colored) to selected 1.12.2.11 (colored)

Replace TS_WOPEN with t_wopen, per mail on tech-kern.

Revision 1.140 / (download) - annotate - [select for diffs], Wed Feb 25 08:32:35 1998 UTC (26 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.139: +6 -1 lines
Diff to previous 1.139 (colored) to selected 1.12.2.11 (colored)

Add dummy }} after comsoft() to keep ctags(1) bashing on.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Feb 22 05:09:58 1998 UTC (26 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.138: +31 -18 lines
Diff to previous 1.138 (colored) to selected 1.12.2.11 (colored)

Disable the device if we fail to open and nobody else has the device open.
(Thanks Charles and Marc for your advices).

Revision 1.138 / (download) - annotate - [select for diffs], Sun Feb 22 03:24:58 1998 UTC (26 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.137: +3 -1 lines
Diff to previous 1.137 (colored) to selected 1.12.2.11 (colored)

Fix bonehead error in previous change.

Revision 1.137 / (download) - annotate - [select for diffs], Thu Feb 19 09:33:33 1998 UTC (26 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.136: +1 -2 lines
Diff to previous 1.136 (colored) to selected 1.12.2.11 (colored)

Remove stray label from last change.

Revision 1.136 / (download) - annotate - [select for diffs], Thu Feb 19 09:23:38 1998 UTC (26 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.135: +19 -16 lines
Diff to previous 1.135 (colored) to selected 1.12.2.11 (colored)

Arrange to call com_break() and com_modem() at splserial().
It's simpler this way.  Really.

Revision 1.135 / (download) - annotate - [select for diffs], Mon Feb 9 10:22:45 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.134: +6 -17 lines
Diff to previous 1.134 (colored) to selected 1.12.2.11 (colored)

Fix serial console support, which was broken by the previous revision:
- In the console getc routine, block until a character becomes ready
  (no, really, we mean it).  This routine should _never_ time out.
- In the console putc routine, if the UART has trouble, do NOT proceed
  to print a diagnostic message, which would recursively invoke the
  console putc routine ad nauseum.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Feb 6 03:25:34 1998 UTC (26 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.133: +2 -1 lines
Diff to previous 1.133 (colored) to selected 1.12.2.11 (colored)

Restore system priority level before return from comopen().

Revision 1.133 / (download) - annotate - [select for diffs], Mon Feb 2 23:01:02 1998 UTC (26 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.132: +8 -8 lines
Diff to previous 1.132 (colored) to selected 1.12.2.11 (colored)

change #ifdefs keying on "alpha" to key on "__NO_SOFT_SERIAL_INTERRUPT"
instead, and define that on NetBSD/alpha and NetBSD/arm32.

Revision 1.132 / (download) - annotate - [select for diffs], Mon Feb 2 22:54:55 1998 UTC (26 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.131: +5 -3 lines
Diff to previous 1.131 (colored) to selected 1.12.2.11 (colored)

Implement a flag to indicate that the driver attached correctly.
This is useful in the case where an attachment's probe routine
verifies that there is indeed hardware present but something goes
"wrong" in the attach causing the device to be unusable.  (Without
keeping track of this, in that case incorrect ports could be
accessed or uninitted pointers could be deferenced on open or at
other times.)

Revision 1.131 / (download) - annotate - [select for diffs], Sun Feb 1 23:33:01 1998 UTC (26 years, 2 months ago) by marc
Branch: MAIN
Changes since 1.130: +135 -32 lines
Diff to previous 1.130 (colored) to selected 1.12.2.11 (colored)

 split com_attach_subr into attach stuff and per-open initialization stuff
 add timeouts to all splserial() while loops so bugs elsewhere don't cause
the com driver to wedge the machine
 add power management support

Revision 1.130 / (download) - annotate - [select for diffs], Mon Jan 12 09:23:19 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.129: +2 -5 lines
Diff to previous 1.129 (colored) to selected 1.12.2.11 (colored)

Adjust for config changes.

Revision 1.118.2.4 / (download) - annotate - [select for diffs], Wed Dec 17 15:37:16 1997 UTC (26 years, 3 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Changes since 1.118.2.3: +12 -1 lines
Diff to previous 1.118.2.3 (colored) to branchpoint 1.118 (colored) to selected 1.12.2.11 (colored)

Pull rev 1.129 up from trunk (mycroft)

Revision 1.129 / (download) - annotate - [select for diffs], Tue Dec 16 22:52:37 1997 UTC (26 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.128: +12 -1 lines
Diff to previous 1.128 (colored) to selected 1.12.2.11 (colored)

Don't do anything in comparam() if the line speed and flags are the same.

Revision 1.118.2.3 / (download) - annotate - [select for diffs], Tue Nov 4 23:18:31 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-BETA
Changes since 1.118.2.2: +183 -149 lines
Diff to previous 1.118.2.2 (colored) to branchpoint 1.118 (colored) to selected 1.12.2.11 (colored)

Pull up rev 1.120 through 1.128 (mycroft)

Revision 1.128 / (download) - annotate - [select for diffs], Mon Nov 3 08:20:35 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.127: +8 -8 lines
Diff to previous 1.127 (colored) to selected 1.12.2.11 (colored)

Slight optimization in soft input routine.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Nov 3 06:12:02 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.126: +133 -109 lines
Diff to previous 1.126 (colored) to selected 1.12.2.11 (colored)

Mostly cosmetic and performance changes:
* Make the ring buffer size and water marks patchable, and allocate the buffer
  separately.
* Do the ttymalloc() at attach time.
* Reorganize the receive buffer so the status and data pair are next to each
  other.  This is slightly faster.
* Make sure we actually do turn off interrupts in comclose() if we have DDB
  configured and it's not the console.  (D'oh!!!!)
* When we exhaust the current transmit run, turn off transmit interrupts in
  comintr(), so we're fairly sure we don't get another one.
* Nuke the silly lsrmap[] idea; it's slower in the normal case.
* Cache the l_rint pointer in the soft interrupt routine.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Nov 2 09:31:49 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.125: +7 -7 lines
Diff to previous 1.125 (colored) to selected 1.12.2.11 (colored)

Slight code rearrangement.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Nov 2 09:24:51 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.124: +7 -7 lines
Diff to previous 1.124 (colored) to selected 1.12.2.11 (colored)

Slight code rearrangement.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Nov 2 09:15:41 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.123: +14 -18 lines
Diff to previous 1.123 (colored) to selected 1.12.2.11 (colored)

Rearrange *param() slightly to eliminate a spl.
Also fix another comment regarding DTR.

Revision 1.123 / (download) - annotate - [select for diffs], Sun Nov 2 08:55:52 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.122: +3 -1 lines
Diff to previous 1.122 (colored) to selected 1.12.2.11 (colored)

Add another splserial()/splzs().

Revision 1.122 / (download) - annotate - [select for diffs], Sun Nov 2 08:50:33 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.121: +7 -6 lines
Diff to previous 1.121 (colored) to selected 1.12.2.11 (colored)

Minimize some spl regions slightly.

Revision 1.121 / (download) - annotate - [select for diffs], Sat Nov 1 20:40:38 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.120: +4 -3 lines
Diff to previous 1.120 (colored) to selected 1.12.2.11 (colored)

Correct a comment regarding our behaviour with DTR.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Nov 1 20:31:57 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.119: +23 -13 lines
Diff to previous 1.119 (colored) to selected 1.12.2.11 (colored)

Add additional splserial()s in comopen() and comclose().  These are not
necessary on the i386 port, but may be on others.

Revision 1.118.2.2 / (download) - annotate - [select for diffs], Thu Oct 30 23:22:55 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.118.2.1: +1887 -0 lines
Diff to previous 1.118.2.1 (colored) to branchpoint 1.118 (colored) to selected 1.12.2.11 (colored)

Pull rev 1.119 up from trunk (drochner)

Revision 1.119 / (download) - annotate - [select for diffs], Wed Oct 29 18:28:07 1997 UTC (26 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.118: +8 -7 lines
Diff to previous 1.118 (colored) to selected 1.12.2.11 (colored)

Print probe result after the LCR is restored. Otherwise, bad
things happen if we are the console.
Restore to the prevoius value (not to hardwired 8N1) because this
could be set by the serial console initialization.
Closed PR kern/4373 (Dave Huang)

Revision 1.118.2.1, Tue Oct 21 01:25:41 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.118: +0 -1886 lines
FILE REMOVED

file com.c was added on branch netbsd-1-3 on 1997-10-30 23:22:55 +0000

Revision 1.118 / (download) - annotate - [select for diffs], Tue Oct 21 01:25:41 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.117: +9 -2 lines
Diff to previous 1.117 (colored) to selected 1.12.2.11 (colored)

Make 16650 probe optional on COM16650 define. It breaks on some
multiport Startech chips.

Revision 1.117 / (download) - annotate - [select for diffs], Sun Oct 19 20:01:08 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.116: +5 -1 lines
Diff to previous 1.116 (colored) to selected 1.12.2.11 (colored)

Initialize the IER to 0 in com_attach_subr().

Revision 1.116 / (download) - annotate - [select for diffs], Sun Oct 19 14:26:16 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.115: +46 -4 lines
Diff to previous 1.115 (colored) to selected 1.12.2.11 (colored)

Add 16650 hardware flowcontrol support. Basically PR 3844 from
Dave Huang <khym@bga.com>, with added check for broken early versions
of the 16650, taken from the Linux driver.

This should be extended to use, for example, higher trigger levels for
the bigger 16650 FIFO, and its capability for using a smaller divisor
and thus higher speeds. But this patch is very useful for 16650 users
already.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Oct 19 11:45:33 1997 UTC (26 years, 5 months ago) by explorer
Branch: MAIN
Changes since 1.114: +17 -1 lines
Diff to previous 1.114 (colored) to selected 1.12.2.11 (colored)

Add hooks for entropy collection.  Right now, you must place
	options RND_COM
in your kernel config file (along with the
	pseudo-device rnd
line) to enable this.  If results are positive, I will make this enabled
by default.

Revision 1.114 / (download) - annotate - [select for diffs], Sat Oct 18 23:11:45 1997 UTC (26 years, 5 months ago) by is
Branch: MAIN
Changes since 1.113: +2 -2 lines
Diff to previous 1.113 (colored) to selected 1.12.2.11 (colored)

Use long long in bitrate tolerance computation, else we'll overflow for
higher than standard-pc chip clocks.

Revision 1.113.2.2 / (download) - annotate - [select for diffs], Thu Oct 16 00:04:07 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.113.2.1: +1817 -0 lines
Diff to previous 1.113.2.1 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored) to selected 1.12.2.11 (colored)

Sync w/ trunk.

Revision 1.113.2.1, Thu Oct 16 00:01:00 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.113: +0 -1817 lines
FILE REMOVED

file com.c was added on branch marc-pcmcia on 1997-10-16 00:04:07 +0000

Revision 1.113 / (download) - annotate - [select for diffs], Thu Oct 16 00:01:00 1997 UTC (26 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: marc-pcmcia-base
Branch point for: marc-pcmcia
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored) to selected 1.12.2.11 (colored)

"com" driver files copied by repository copy magick to sys/dev/ic, and
adjusted for their new home.

Revision 1.102.2.4 / (download) - annotate - [select for diffs], Tue Oct 14 10:23:19 1997 UTC (26 years, 5 months ago) by thorpej
Changes since 1.102.2.3: +51 -3 lines
Diff to previous 1.102.2.3 (colored) next main 1.103 (colored) to selected 1.12.2.11 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Oct 3 06:11:35 1997 UTC (26 years, 6 months ago) by mikel
Branch: MAIN
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored) to selected 1.12.2.11 (colored)

fix missing com_kgdb_attached() argdecl, from Michael C. Richardson in PR 4196

Revision 1.111 / (download) - annotate - [select for diffs], Tue Sep 30 21:51:43 1997 UTC (26 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.110: +50 -2 lines
Diff to previous 1.110 (colored) to selected 1.12.2.11 (colored)

Add TIOCM{BI{C,S},{S,G}ET} from revision 1.98. As Charles says these
interfaces are slightly broken and should be obsoleted, but some programs
are using them and also they are useful for debugging.

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Mon Sep 22 06:33:09 1997 UTC (26 years, 6 months ago) by thorpej
Changes since 1.102.2.2: +37 -34 lines
Diff to previous 1.102.2.2 (colored) to selected 1.12.2.11 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Sep 19 01:17:37 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.109: +23 -20 lines
Diff to previous 1.109 (colored) to selected 1.12.2.11 (colored)

Cosmetic Changes; make coding style closer to other part of this file.
(This version is identical with version 1.109 except whitespace changes.)

Revision 1.109 / (download) - annotate - [select for diffs], Tue Sep 16 20:34:23 1997 UTC (26 years, 6 months ago) by is
Branch: MAIN
Changes since 1.108: +15 -15 lines
Diff to previous 1.108 (colored) to selected 1.12.2.11 (colored)

Support for the upcoming NetBSD/Amiga Hypercom driver family:
* support chip clocks != COM_FREQ, by introducing sc_frequency (for the
  mainline code) and adding a frequency parameter right after the rate
  parameter to comcnattach() and com_kgdb_attach().
- Make com_isa and com_multi initialize sc_frequency to COM_FREQ.
- Make i386/machdep.c and alpha/dec_xxx.c call com*attach() with the freq.
  parameter.
* supio_attach_args get two more fields: a sc_ipl and a sc_arg, both ints.
- com_supio uses the first for interupt establishment (all childs will, as
  soon as they exist) and the 2nd for sc_frequency.
- drsupio passes sc_ipl alway as 5, and for the "com"s, sc_arg as 16*115200
- hyper will pass sc_ipl as 6, and sc_arg as 16 * 460800

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Wed Aug 27 23:31:26 1997 UTC (26 years, 7 months ago) by thorpej
Changes since 1.102.2.1: +163 -143 lines
Diff to previous 1.102.2.1 (colored) to selected 1.12.2.11 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Aug 27 18:00:13 1997 UTC (26 years, 7 months ago) by is
Branch: MAIN
Changes since 1.107: +3 -2 lines
Diff to previous 1.107 (colored) to selected 1.12.2.11 (colored)

Make this work with __GENERIC_SOFT_INTERRUPTS.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Aug 24 09:40:16 1997 UTC (26 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.106: +4 -1 lines
Diff to previous 1.106 (colored) to selected 1.12.2.11 (colored)

Check for KGDB port == console port in a consistent way.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Aug 23 14:01:32 1997 UTC (26 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.105: +158 -142 lines
Diff to previous 1.105 (colored) to selected 1.12.2.11 (colored)

clean up the serial console / KGDB attachment:
-put all early console / KGDB initialization into 1 exported function
  (com_*_attach()) each, dont use global variables anymore
-use the passed tcflag_t for port settings instead of hardwiring 8N1
-at autoconfiguration attach time, decide if the attaching device is
  already console / KGDB by comparing bus tag and base addr (cgd's wish)
-export a function "com_is_console()" for use by driver frontends for
  this comparision
-delay setting of cn_tab->cn_dev until autoconfiguration attach
  to get the minor number right
-delete unused comcnprobe() and comcninit()

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:13:13 1997 UTC (26 years, 7 months ago) by thorpej
Changes since 1.102: +53 -61 lines
Diff to previous 1.102 (colored) to selected 1.12.2.11 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.105 / (download) - annotate - [select for diffs], Sat Aug 16 08:33:10 1997 UTC (26 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.104: +4 -1 lines
Diff to previous 1.104 (colored) to selected 1.12.2.11 (colored)

Bring back the "comconsattached" flag. It is necessary for starred
com devices (on non "__BROKEN_INDIRECT_CONFIG" ISA).

Revision 1.104 / (download) - annotate - [select for diffs], Thu Aug 14 16:15:15 1997 UTC (26 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.103: +33 -29 lines
Diff to previous 1.103 (colored) to selected 1.12.2.11 (colored)

-Export variables needed for system console initialization.
-Enable line break interrupt for DDB on a serial console.
-Share initialization code between DDB and KGDB.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Aug 12 17:25:43 1997 UTC (26 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.102: +31 -46 lines
Diff to previous 1.102 (colored) to selected 1.12.2.11 (colored)

KGDB improvements:
-Separate KGDB port initialization and softc related stuff to allow
 KGDB to be attached in early system startup, before autoconfiguration.
-Export the variables needed by md code to hand-craft bus tag/handle.
-Fix initialization to enable interrupt by line break.
-Call DDB/KGDB at line break (move DDB call from the softirq handler
 to the hard handler because it should work without a tty attached too).

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jul 5 20:52:40 1997 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.101: +137 -53 lines
Diff to previous 1.101 (colored) to selected 1.12.2.11 (colored)

Add support for remote serial KGDB.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Jun 15 11:18:59 1997 UTC (26 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.100: +124 -57 lines
Diff to previous 1.100 (colored) to selected 1.12.2.11 (colored)

Implement a better backpressure mechanism so that data is collected
in the driver's buffer if the tty buffer is full.  If the driver's buffer
becomes full, turn off receive interrupts until it drains a bit.

Revision 1.100 / (download) - annotate - [select for diffs], Mon May 26 14:54:46 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.99: +1 -2 lines
Diff to previous 1.99 (colored) to selected 1.12.2.11 (colored)

Remove unneeded call to comstop() in commsrint().  This fixes a problem
where the driver would sometimes retransmit bytes.

Revision 1.99 / (download) - annotate - [select for diffs], Fri Apr 4 20:56:34 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.98: +890 -751 lines
Diff to previous 1.98 (colored) to selected 1.12.2.11 (colored)

New version of com driver.  Uses a different queueing mechanism and a split
hardware/software interrupt mechanism for improved performance.  Many odd
protocols bugs also fixed.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Apr 4 20:49:49 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.97: +16 -14 lines
Diff to previous 1.97 (colored) to selected 1.12.2.11 (colored)

comdefaultrate -> comconsrate
comconsbah -> comconsioh
Only use comconsrate on the console.

Revision 1.82.4.3 / (download) - annotate - [select for diffs], Sun Feb 16 04:52:10 1997 UTC (27 years, 1 month ago) by rat
Changes since 1.82.4.2: +2 -2 lines
Diff to previous 1.82.4.2 (colored) next main 1.83 (colored) to selected 1.12.2.11 (colored)

Patch supplied by Charles Hannmum.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Jan 30 19:42:33 1997 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.96: +1 -2 lines
Diff to previous 1.96 (colored) to selected 1.12.2.11 (colored)

don't clobber IER in cominit().  (suggested by mycroft.)

Revision 1.96 / (download) - annotate - [select for diffs], Sat Dec 14 10:46:38 1996 UTC (27 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.95: +7 -19 lines
Diff to previous 1.95 (colored) to selected 1.12.2.11 (colored)

If attaching the console, reinitialize it immediately.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Dec 14 08:56:23 1996 UTC (27 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored) to selected 1.12.2.11 (colored)

Turn off the baud rate changing optimization.

Revision 1.82.4.2 / (download) - annotate - [select for diffs], Tue Dec 10 06:30:03 1996 UTC (27 years, 3 months ago) by mycroft
Changes since 1.82.4.1: +5 -2 lines
Diff to previous 1.82.4.1 (colored) to selected 1.12.2.11 (colored)

From trunk:
Set serial port parameters sanely for a serial console.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Dec 5 01:25:38 1996 UTC (27 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.93: +11 -2 lines
Diff to previous 1.93 (colored) to selected 1.12.2.11 (colored)

update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Nov 13 19:41:35 1996 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.92: +1 -3 lines
Diff to previous 1.92 (colored) to selected 1.12.2.11 (colored)

move cominit() prototype to comvar.h, so that ports which use 'com'
for serial console, but don't use the (i386-specific)
comcninit()/comcnprobe() functions, can do the right thing.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Oct 22 00:45:25 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored) to selected 1.12.2.11 (colored)

add missing argument to bus_space_map in ESP code

Revision 1.91 / (download) - annotate - [select for diffs], Mon Oct 21 22:40:30 1996 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.90: +149 -147 lines
Diff to previous 1.90 (colored) to selected 1.12.2.11 (colored)

New bus.h implementation/interface:
	- No more distinction between i/o-mapped and memory-mapped
	  devices.  It's all "bus space" now, and space tags
	  differentiate the space with finer grain than the
	  bus chipset tag.
	- Add memory barrier methods.
	- Implement space alloc/free methods.
	- Implement region read/write methods (like memcpy to/from
	  bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Oct 13 01:37:38 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.89: +19 -19 lines
Diff to previous 1.89 (colored) to selected 1.12.2.11 (colored)

backout kprintf changes

Revision 1.89 / (download) - annotate - [select for diffs], Thu Oct 10 22:04:53 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.88: +19 -19 lines
Diff to previous 1.88 (colored) to selected 1.12.2.11 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.88 / (download) - annotate - [select for diffs], Sun Oct 6 01:52:26 1996 UTC (27 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.87: +36 -20 lines
Diff to previous 1.87 (colored) to selected 1.12.2.11 (colored)

If we get a RXRDY interrupt, but RXRDY is not set in the LSR, briefly set IER
to 0.  This fixes a condition where some UARTs send an infinite stream of
RXRDY interrupts.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Oct 6 01:46:04 1996 UTC (27 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.86: +5 -2 lines
Diff to previous 1.86 (colored) to selected 1.12.2.11 (colored)

Serial console changes:
* Enable FIFO with trigger level 1.
* Set DTR and RTS so terminals are happy.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Sep 5 16:42:32 1996 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored) to selected 1.12.2.11 (colored)

compoll() -> comsoft()

Revision 1.85 / (download) - annotate - [select for diffs], Mon Sep 2 06:44:47 1996 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.84: +2 -3 lines
Diff to previous 1.84 (colored) to selected 1.12.2.11 (colored)

tty stop functions really should return void, not int, and certainly not both.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jul 10 18:14:04 1996 UTC (27 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.83: +3 -1 lines
Diff to previous 1.83 (colored) to selected 1.12.2.11 (colored)

move DDB-only label inside an #ifdef, so that -Wall works

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Sun Jun 2 09:08:00 1996 UTC (27 years, 10 months ago) by mrg
Changes since 1.82: +4 -3 lines
Diff to previous 1.82 (colored) to selected 1.12.2.11 (colored)

pull up tty stats "bug fix".

Revision 1.83 / (download) - annotate - [select for diffs], Thu May 30 18:24:09 1996 UTC (27 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.82: +4 -3 lines
Diff to previous 1.82 (colored) to selected 1.12.2.11 (colored)

add tty_attach() where appropriate.

Revision 1.82 / (download) - annotate - [select for diffs], Sun May 12 23:52:00 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.81: +2 -6 lines
Diff to previous 1.81 (colored) to selected 1.12.2.11 (colored)

Use intr.h.

Revision 1.81 / (download) - annotate - [select for diffs], Sun May 5 19:50:44 1996 UTC (27 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.80: +1 -2 lines
Diff to previous 1.80 (colored) to selected 1.12.2.11 (colored)

Move comintr() prototype to comvar.h; needed by the multi-port cards.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Apr 29 20:03:00 1996 UTC (27 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.79: +32 -20 lines
Diff to previous 1.79 (colored) to selected 1.12.2.11 (colored)

- prototype fixes

Revision 1.79 / (download) - annotate - [select for diffs], Mon Apr 15 18:54:31 1996 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.78: +6 -2 lines
Diff to previous 1.78 (colored) to selected 1.12.2.11 (colored)

define and export the global variable "comconscflag", the default tty
'cflag' for the console.  Normally set to TTYDEF_CFLAG, may be
overridden by machine-dependent console attachment code, as necessary.
(Alpha uses it to set cs8 -parenb.)  Files including comvar.h now
need to include <sys/termios.h>, because comconscflag is of type
tcflag_t.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Apr 11 22:28:31 1996 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.77: +17 -5 lines
Diff to previous 1.77 (colored) to selected 1.12.2.11 (colored)

update for addition of a machine-dependent cookie as the first argument
to isa_intr_{,dis}establish().

Revision 1.77 / (download) - annotate - [select for diffs], Sun Mar 17 13:38:14 1996 UTC (28 years ago) by cgd
Branch: MAIN
Changes since 1.76: +29 -8 lines
Diff to previous 1.76 (colored) to selected 1.12.2.11 (colored)

Add #ifdef's at the right places, on NCOM_ISA and NCOM_COMMULTI, to
only include the relevant code in the probe & attach functions.  Still
one probe and one attach function, with #ifdefs, but this is a step
in the right direction and saves a few hundred bytes (ooh, ahh!).

Revision 1.76 / (download) - annotate - [select for diffs], Sun Mar 17 00:53:10 1996 UTC (28 years ago) by thorpej
Branch: MAIN
Changes since 1.75: +37 -15 lines
Diff to previous 1.75 (colored) to selected 1.12.2.11 (colored)

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.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Mar 10 09:01:24 1996 UTC (28 years ago) by cgd
Branch: MAIN
Changes since 1.74: +268 -141 lines
Diff to previous 1.74 (colored) to selected 1.12.2.11 (colored)

convert these to use new <machine/bus.h> interfaces.  This involved
substantial reworking of the multi-port drivers, as they need to frob
bits in the io-port spaces of their children.  As a result, the
commulti->com attachment interface is substantially more complex.
(This may be fixable in the future by making some of the code common,
but as long as io-port allocation checking is planned, it's necessary.)

Revision 1.74 / (download) - annotate - [select for diffs], Sat Mar 9 01:02:08 1996 UTC (28 years ago) by cgd
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored) to selected 1.12.2.11 (colored)

include comvar.h for comprobe1() prototype

Revision 1.73 / (download) - annotate - [select for diffs], Mon Feb 26 22:48:32 1996 UTC (28 years, 1 month ago) by scottr
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored) to selected 1.12.2.11 (colored)

Fix typo (PR 2123, from Michael VanLoon)

Revision 1.72 / (download) - annotate - [select for diffs], Tue Feb 20 12:13:09 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.71: +21 -8 lines
Diff to previous 1.71 (colored) to selected 1.12.2.11 (colored)

Add more debugging code.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Feb 19 15:23:25 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (colored) to selected 1.12.2.11 (colored)

Update copyright notice.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Feb 19 15:09:25 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.69: +7 -7 lines
Diff to previous 1.69 (colored) to selected 1.12.2.11 (colored)

Set IER_ETXRDY before outputting any bytes, to prevent race condition.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Feb 19 14:53:03 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.68: +64 -19 lines
Diff to previous 1.68 (colored) to selected 1.12.2.11 (colored)

Handle break more correctly.
Make IER_ETXRDY track TS_BUSY.  (Prevents a loop in comintr() if no output
is available.)
Add a bunch of debugging code.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Feb 18 09:10:15 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.67: +3 -5 lines
Diff to previous 1.67 (colored) to selected 1.12.2.11 (colored)

Fix a race condition where we might stop outputting if a write follows a
flush too closely.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Feb 17 04:51:41 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.66: +6 -2 lines
Diff to previous 1.66 (colored) to selected 1.12.2.11 (colored)

Add some text describing the UART lossage worked around in the previous.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Feb 17 04:04:28 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.65: +47 -14 lines
Diff to previous 1.65 (colored) to selected 1.12.2.11 (colored)

Drain the transmitter FIFO before changing the baud rate or FIFO depth
registers.  Fixes PR 2046.
Also, if COMCONSOLE is defined, expect CONSPEED to be the baud rate.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Feb 10 20:23:18 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.64: +81 -68 lines
Diff to previous 1.64 (colored) to selected 1.12.2.11 (colored)

Hayes ESP patches [from PR database]

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jan 14 23:44:34 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.63: +125 -6 lines
Diff to previous 1.63 (colored) to selected 1.12.2.11 (colored)

Hayes ESP support from Michael Van Loon, with minor cleanups. Tested on
a single port ESP card; works great!

Revision 1.63 / (download) - annotate - [select for diffs], Sun Dec 24 02:31:15 1995 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.12.2.11 (colored)

The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Oct 15 19:43:04 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.61: +189 -159 lines
Diff to previous 1.61 (colored) to selected 1.12.2.11 (colored)

Use SET(), CLR(), and ISSET() macros.
Rename CFCR to LCR, and cache its value.
Check MSR before transmitting, for better flow control.
Preserve LCR_SBREAK inside comparam().

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jul 4 06:47:18 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.60: +15 -10 lines
Diff to previous 1.60 (colored) to selected 1.12.2.11 (colored)

Fix a condition where ttywait() wouldn't be woken up.  Also, short-circuit
the case of no pending input in compoll().

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jun 28 04:31:28 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored) to selected 1.12.2.11 (colored)

note that most of dev/ic's contents have changed names

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jun 5 19:08:09 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +14 -16 lines
Diff to previous 1.58 (colored) to selected 1.12.2.11 (colored)

Various:
* Check for CTS in the correct register.
* Only do a selwakeup() if we output something.
* Don't make assumptions about what TTYDISC does.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jun 4 20:50:14 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +9 -7 lines
Diff to previous 1.57 (colored) to selected 1.12.2.11 (colored)

Handle BREAK correctly when not entering DDB.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jun 4 20:39:22 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.56: +182 -129 lines
Diff to previous 1.56 (colored) to selected 1.12.2.11 (colored)

Add an input FIFO, and fix several flow control problems.  Based on code from
Felix A. Croes.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jun 1 21:26:51 1995 UTC (28 years, 10 months ago) by jtc
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.12.2.11 (colored)

Changed ns82450 to ns8250 and dropped ns82550 from probe console messages.

Revision 1.55 / (download) - annotate - [select for diffs], Sun May 28 03:26:37 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.54: +47 -56 lines
Diff to previous 1.54 (colored) to selected 1.12.2.11 (colored)

Only use the `no pending interrupt' bit in the IIR; the other bits
are too unreliable on clone chips.

Revision 1.54 / (download) - annotate - [select for diffs], Fri May 12 17:54:41 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.53: +8 -6 lines
Diff to previous 1.53 (colored) to selected 1.12.2.11 (colored)

(1) conditionalize debugger usage in comeint with DDB, not COMCONSOLE;
	latter would lead to undefined symbols if DDB not defined.
(2) check for break on console, and therefore debugger entry (if ddb
	in kernel) earlier, so that the device doesn't need to be open.
(3) return immediately after breaking into the debugger in comeint().
(4) only do the normal character input routine in comintr if receive
	mask yeilds _EXACLTY_ LSR_RXRDY.  if there's only a receive
	error, or there's a receive error _and_ a received character,
	do comeint().
(former two by me.  latter two from Bob Baron <rvb@cs.cmu.edu>.)

Revision 1.53 / (download) - annotate - [select for diffs], Fri Apr 28 00:34:08 1995 UTC (28 years, 11 months ago) by hpeyerl
Branch: MAIN
Changes since 1.52: +5 -1 lines
Diff to previous 1.52 (colored) to selected 1.12.2.11 (colored)

<break> --> ddb if defined(comconsole).
(if you have a serial console and you hit break, you get ddb).

Revision 1.52 / (download) - annotate - [select for diffs], Wed Apr 19 22:04:33 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.51: +8 -4 lines
Diff to previous 1.51 (colored) to selected 1.12.2.11 (colored)

Fix thinko in previous change.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Apr 19 19:12:53 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +1 -3 lines
Diff to previous 1.50 (colored) to selected 1.12.2.11 (colored)

Garbage collect #includes.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Apr 19 18:59:27 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +23 -17 lines
Diff to previous 1.49 (colored) to selected 1.12.2.11 (colored)

Implement comtty().

Revision 1.49 / (download) - annotate - [select for diffs], Mon Apr 17 12:08:44 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.48: +10 -12 lines
Diff to previous 1.48 (colored) to selected 1.12.2.11 (colored)

clean up several ISA device interfaces: autoconfiguration, header
inclusion, and interrupt configuration.  more work still needs to be done,
but it's getting better...

Revision 1.48 / (download) - annotate - [select for diffs], Mon Apr 10 01:05:55 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.47: +6 -3 lines
Diff to previous 1.47 (colored) to selected 1.12.2.11 (colored)

Most of the console functions return void.  Also change interrupt logic
slightly.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jan 29 07:36:54 1995 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) to selected 1.12.2.11 (colored)

lip service to making ISA support machine-independent.  This is the first
round: moving the drivers into a machine-independent directory.
Some drivers (e.g. fd.c) not moved because they use other pc features (e.g.
CMOS settings), and none of the non-driver files moved, because they're
still pretty much PC specific.  eventually (when other ports with ISA
busses really start using this code), more 'high-level' ISA support will
live here.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jan 29 02:58:20 1995 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.12.2.11 (colored)

use chip headers in /dev/ic

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jan 11 09:56:40 1995 UTC (29 years, 2 months ago) by pk
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.12.2.11 (colored)

Explicitly test the RXRDY status bit on incoming characters.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jan 4 00:47:56 1995 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored) to selected 1.12.2.11 (colored)

Fix oversight in previous.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jan 3 01:30:28 1995 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.12.2.11 (colored)

Add interrupt sharing types.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Nov 25 08:17:21 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.12.2.11 (colored)

Minor update for new autoconfig.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Nov 18 22:03:02 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +18 -18 lines
Diff to previous 1.40 (colored) to selected 1.12.2.11 (colored)

Convert port, IRQ, and DRQ numbers to ints.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 3 23:26:03 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.39: +7 -7 lines
Diff to previous 1.39 (colored) to selected 1.12.2.11 (colored)

Update to match autoconfig code.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Oct 30 21:43:28 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.12.2.11 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 27 04:17:01 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored) to selected 1.12.2.11 (colored)

new RCS ID format.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Oct 26 18:06:30 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +9 -1 lines
Diff to previous 1.36 (colored) to selected 1.12.2.11 (colored)

Implement *cnpollc().

Revision 1.31.2.5 / (download) - annotate - [select for diffs], Fri Sep 16 17:31:02 1994 UTC (29 years, 6 months ago) by cgd
Changes since 1.31.2.4: +24 -9 lines
Diff to previous 1.31.2.4 (colored) next main 1.32 (colored) to selected 1.12.2.11 (colored)

from trunk.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 16 02:50:39 1994 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +24 -9 lines
Diff to previous 1.35 (colored) to selected 1.12.2.11 (colored)

Only reset FIFO if changing baud rate.  From John Kohl (slightly edited).

Revision 1.31.2.4 / (download) - annotate - [select for diffs], Wed Aug 24 07:29:42 1994 UTC (29 years, 7 months ago) by mycroft
Changes since 1.31.2.3: +7 -5 lines
Diff to previous 1.31.2.3 (colored) to selected 1.12.2.11 (colored)

update from trunk

Revision 1.35 / (download) - annotate - [select for diffs], Wed Aug 24 07:25:18 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.34: +6 -4 lines
Diff to previous 1.34 (colored) to selected 1.12.2.11 (colored)

Set the FIFO threshold based on the receive speed, per Mark Weaver.

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Sun Aug 21 15:04:59 1994 UTC (29 years, 7 months ago) by mycroft
Changes since 1.31.2.2: +2 -2 lines
Diff to previous 1.31.2.2 (colored) to selected 1.12.2.11 (colored)

update from trunk

Revision 1.34 / (download) - annotate - [select for diffs], Sun Aug 21 15:04:37 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.12.2.11 (colored)

Look for MDMBUF in cflag, not lflag.

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Sun Aug 7 11:28:12 1994 UTC (29 years, 7 months ago) by mycroft
Changes since 1.31.2.1: +25 -3 lines
Diff to previous 1.31.2.1 (colored) to selected 1.12.2.11 (colored)

update from trunk

Revision 1.33 / (download) - annotate - [select for diffs], Sun Aug 7 11:27:51 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +25 -3 lines
Diff to previous 1.32 (colored) to selected 1.12.2.11 (colored)

Count up the silo overflows and only log a warning at most once per minute.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Mon Aug 1 17:13:41 1994 UTC (29 years, 8 months ago) by cgd
Changes since 1.31: +9 -9 lines
Diff to previous 1.31 (colored) to selected 1.12.2.11 (colored)

From trunk.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jul 31 11:34:38 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +9 -9 lines
Diff to previous 1.31 (colored) to selected 1.12.2.11 (colored)

Bug fixes from Mark Weaver.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 10 10:29:06 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored) to selected 1.12.2.11 (colored)

allow MDMBUF flags to be set (oops)

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 7 06:50:28 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.29: +12 -5 lines
Diff to previous 1.29 (colored) to selected 1.12.2.11 (colored)

Implement dynamic IRQ configuration and IRQ sharing.  Inline spl*() calls.
Reorganize and clean up the relevant code.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 29 04:35:44 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.28: +53 -84 lines
Diff to previous 1.28 (colored) to selected 1.12.2.11 (colored)

Updates for new autoconfig.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Mar 25 04:38:01 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.12.2.11 (colored)

Fix off-by-one error in comopen() unit number sanity check.  From Brian de
Alwis.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 23 03:01:53 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.26: +18 -21 lines
Diff to previous 1.26 (colored) to selected 1.12.2.11 (colored)

Some stylistic cleanup, and a very minor speedup.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 23 01:28:23 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.25: +36 -5 lines
Diff to previous 1.25 (colored) to selected 1.12.2.11 (colored)

add AST-style serial multiport support, from Roland McGrath
<roland@@frob.com>.  Needs light clean by Mr. I386, but mostly
OK.  For some reason, Bad Things (TM) happened on the last cvs commit.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 18 05:13:26 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.24: +26 -3 lines
Diff to previous 1.24 (colored) to selected 1.12.2.11 (colored)

add reasonable support for MDMBUF output flow control.  input to be done later

Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 12 08:04:19 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.12.2.11 (colored)

copy appropriate hardware config bits from config's flags

Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 12 07:43:03 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.22: +7 -6 lines
Diff to previous 1.22 (colored) to selected 1.12.2.11 (colored)

fix some of the last; thanks to charles for looking it over...

Revision 1.22 / (download) - annotate - [select for diffs], Sat Mar 12 07:25:16 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.21: +63 -19 lines
Diff to previous 1.21 (colored) to selected 1.12.2.11 (colored)

support new ioctls.  fix the way CRTSCTS is used, etc.  Seperate 'hardware'
and 'software' flags.  beginnings of multiport support.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Mar 8 08:12:56 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.20: +491 -397 lines
Diff to previous 1.20 (colored) to selected 1.12.2.11 (colored)

Major cleanup and many bugs fixed; based in part on Brad Huntting's version
for BSD/386.  More to be done when the low-level interrupt system is replaced.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 6 17:18:50 1994 UTC (30 years ago) by mycroft
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored) to selected 1.12.2.11 (colored)

DELAY() --> delay().  This is not a macro.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 9 21:13:41 1994 UTC (30 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.18: +7 -4 lines
Diff to previous 1.18 (colored) to selected 1.12.2.11 (colored)

All ioctl routines take a struct proc * now.

Revision 1.12.2.17 / (download) - annotate - [select for diffs], Tue Feb 1 05:57:44 1994 UTC (30 years, 2 months ago) by mycroft
Changes since 1.12.2.16: +7 -15 lines
Diff to previous 1.12.2.16 (colored) next main 1.13 (colored) to selected 1.12.2.11 (colored)

Updates from main branch.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Feb 1 04:38:03 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.12.2.11 (colored)

oops

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 1 03:42:08 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.16: +2 -11 lines
Diff to previous 1.16 (colored) to selected 1.12.2.11 (colored)

new cons.h location, etc.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 30 16:41:27 1994 UTC (30 years, 2 months ago) by ws
Branch: MAIN
Changes since 1.15: +6 -9 lines
Diff to previous 1.15 (colored) to selected 1.12.2.11 (colored)

Traditional behaviour is to reset all modes if device isn't open already

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 13 14:58:12 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +1 -35 lines
Diff to previous 1.14 (colored) to selected 1.12.2.11 (colored)

Junk comselect(); it's the same at ttselect().

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 20 09:05:33 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +23 -20 lines
Diff to previous 1.13 (colored) to selected 1.12.2.11 (colored)

Canonicalize all #includes, and add pio.h where appropriate.

Revision 1.12.2.16 / (download) - annotate - [select for diffs], Fri Oct 29 19:59:09 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.15: +8 -9 lines
Diff to previous 1.12.2.15 (colored) to selected 1.12.2.11 (colored)

Minor cleanup.

Revision 1.12.2.15 / (download) - annotate - [select for diffs], Fri Oct 29 17:57:05 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.14: +5 -3 lines
Diff to previous 1.12.2.14 (colored) to selected 1.12.2.11 (colored)

c_cflag is a tcflag_t, not a u_char.  (Duh.)

Revision 1.12.2.14 / (download) - annotate - [select for diffs], Mon Oct 18 07:38:32 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.13: +2 -2 lines
Diff to previous 1.12.2.13 (colored) to selected 1.12.2.11 (colored)

Fix a small typo.

Revision 1.12.2.13 / (download) - annotate - [select for diffs], Mon Oct 18 07:35:26 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.12: +20 -17 lines
Diff to previous 1.12.2.12 (colored) to selected 1.12.2.11 (colored)

Check bits in the fifo reg during probe to make sure they are on.

Revision 1.12.2.12 / (download) - annotate - [select for diffs], Sun Oct 17 05:34:20 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.11: +20 -21 lines
Diff to previous 1.12.2.11 (colored)

Minor cleanup.

Revision 1.12.2.11 / (download) - annotate - [selected], Sat Oct 16 06:39:45 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.10: +5 -5 lines
Diff to previous 1.12.2.10 (colored)

Add missing dv_class entry to cfdrivers, and use dv_xname where appropriate.

Revision 1.12.2.10 / (download) - annotate - [select for diffs], Fri Oct 15 09:57:45 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.9: +3 -5 lines
Diff to previous 1.12.2.9 (colored) to selected 1.12.2.11 (colored)

Nuke a wakeup() I left in accidentally.

Revision 1.12.2.9 / (download) - annotate - [select for diffs], Fri Oct 15 09:51:56 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.8: +47 -29 lines
Diff to previous 1.12.2.8 (colored) to selected 1.12.2.11 (colored)

Flush any pending I/O on open.  After a transmit interrupt, don't call
comstart() if TS_FLUSH is set.

Revision 1.12.2.8 / (download) - annotate - [select for diffs], Wed Oct 13 01:26:43 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.7: +4 -3 lines
Diff to previous 1.12.2.7 (colored) to selected 1.12.2.11 (colored)

Use stupid indirection to avoid a compiler warning.

Revision 1.12.2.7 / (download) - annotate - [select for diffs], Tue Oct 12 23:30:58 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.6: +12 -14 lines
Diff to previous 1.12.2.6 (colored) to selected 1.12.2.11 (colored)

Minor cleanup.

Revision 1.12.2.6 / (download) - annotate - [select for diffs], Mon Oct 11 01:51:19 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.5: +2 -1 lines
Diff to previous 1.12.2.5 (colored) to selected 1.12.2.11 (colored)

#include pio.h where needed, and remove cpufunc.h.

Revision 1.12.2.5 / (download) - annotate - [select for diffs], Thu Oct 7 14:48:45 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.4: +1 -2 lines
Diff to previous 1.12.2.4 (colored) to selected 1.12.2.11 (colored)

Don't #include isa.h.

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Wed Oct 6 12:08:38 1993 UTC (30 years, 5 months ago) by mycroft
Changes since 1.12.2.3: +24 -5 lines
Diff to previous 1.12.2.3 (colored) to selected 1.12.2.11 (colored)

Change comforceintr() to not use loopback.  Change attach messages.

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Thu Sep 30 20:18:59 1993 UTC (30 years, 6 months ago) by mycroft
Changes since 1.12.2.2: +17 -4 lines
Diff to previous 1.12.2.2 (colored) to selected 1.12.2.11 (colored)

Change some uses of IRQUNK to IRQNONE.  #include isa.h and icu.h.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Thu Sep 30 17:32:55 1993 UTC (30 years, 6 months ago) by mycroft
Changes since 1.12.2.1: +475 -472 lines
Diff to previous 1.12.2.1 (colored) to selected 1.12.2.11 (colored)

clock.c: Remove unnecessary casts.
com.c: Update for new config.  Add bis() and bic() macros like BSDI's.
Add comspeed() and tiocm_xxx2mcr() from BSDI.
comreg.h: Add COM_FREQ, COM_TOLERANCE, and COM_NPORTS.
fd.c: Remove casts and clean up fdioctl().
[lm]ms.c: Add necessary gunk to [lm]ms_softc and remove casts.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 29 02:36:21 1993 UTC (30 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored) to selected 1.12.2.11 (colored)

ifdef out the ttyfree()'s, so that fill_eproc doesn't panic when
a process's session still holds a ref to a tty which has been deallocated
and reused.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Tue Sep 14 17:32:22 1993 UTC (30 years, 6 months ago) by mycroft
Changes since 1.12: +5 -4 lines
Diff to previous 1.12 (colored) to selected 1.12.2.11 (colored)

New i386 code.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Aug 29 13:47:03 1993 UTC (30 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored) to selected 1.12.2.11 (colored)

tty XXstart() routines return void

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 12 11:37:16 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +11 -14 lines
Diff to previous 1.10 (colored) to selected 1.12.2.11 (colored)

Change tty code to use clist interface, but with ring buffer implementation.
Also, fix a couple of bugs in tty.c and pccons.c, and some gross kluginess
in the hp300 stuff.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 7 11:00:59 1993 UTC (30 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored) to selected 1.12.2.11 (colored)

pccons.c now dynamically allocates it's "struct tty"
cons.c's "struct tty *cn_tty" wasn't used by any of the kernel, and goes away.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 6 23:05:03 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.12.2.11 (colored)

make getc() and ungetc() be rb{un,}getc(), so getc() and ungetc()
don't conflict w/ansi prototypes...

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 26 10:11:01 1993 UTC (30 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +21 -13 lines
Diff to previous 1.7 (colored) to selected 1.12.2.11 (colored)

tty dynamic allocation

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 18 18:18:59 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.6: +6 -25 lines
Diff to previous 1.6 (colored) to selected 1.12.2.11 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Apr 10 12:05:19 1993 UTC (30 years, 11 months ago) by glass
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored) to selected 1.12.2.11 (colored)

fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 9 16:43:56 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.12.2.11 (colored)

have probe return size of io space on successful return, rather
than simply 1.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 8 08:26:50 1993 UTC (30 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) to selected 1.12.2.11 (colored)

dmesg output at boottime now tries to print out information as
soon as it is available. The output looks much more like Sunos.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Mar 27 09:24:42 1993 UTC (31 years ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.12.2.11 (colored)

moved closing #endif to include comselect

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (31 years ago) by cgd
Branch: MAIN
Changes since 1.1: +65 -13 lines
Diff to previous 1.1 (colored) to selected 1.12.2.11 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WJF-920714
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.12.2.11 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.12.2.11 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>