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


Keyword substitution: kv
Default branch: MAIN


Revision 1.388: download - view: text, markup, annotated - select for diffs
Wed Feb 12 05:15:39 2025 UTC (2 months, 1 week ago) by imil
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.387: preferred, colored
Changes since revision 1.387: +8 -3 lines
Set a skip_attach_delay property to "true" for com port in virtual machines
to avoid a delay(10000) at attach

Revision 1.387: download - view: text, markup, annotated - select for diffs
Sun Feb 9 10:27:29 2025 UTC (2 months, 2 weeks ago) by skrll
Branches: MAIN
Diff to: previous 1.386: preferred, colored
Changes since revision 1.386: +4 -4 lines
Trailing whitespace

Revision 1.386: download - view: text, markup, annotated - select for diffs
Mon Jan 20 09:24:32 2025 UTC (3 months ago) by martin
Branches: MAIN
Diff to: previous 1.385: preferred, colored
Changes since revision 1.385: +8 -23 lines
Backout previous, this needs to be done differently

Revision 1.385: download - view: text, markup, annotated - select for diffs
Mon Jan 20 07:21:29 2025 UTC (3 months ago) by imil
Branches: MAIN
Diff to: previous 1.384: preferred, colored
Changes since revision 1.384: +23 -8 lines
Avoid delay(10000) for virtual machines

Revision 1.384: download - view: text, markup, annotated - select for diffs
Tue Apr 11 13:01:41 2023 UTC (2 years ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.383: preferred, colored
Changes since revision 1.383: +3 -3 lines
com(4): Note ttylock in comment, not tty_lock.

Revision 1.383: download - view: text, markup, annotated - select for diffs
Tue Apr 11 12:55:59 2023 UTC (2 years ago) by riastradh
Branches: MAIN
Diff to: previous 1.382: preferred, colored
Changes since revision 1.382: +3 -2 lines
com(4): Note timecounter_lock in lock order comments.

Revision 1.382: download - view: text, markup, annotated - select for diffs
Fri Dec 9 00:35:58 2022 UTC (2 years, 4 months ago) by knakahara
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, 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
Diff to: previous 1.381: preferred, colored
Changes since revision 1.381: +7 -29 lines
Revert com.c:r1.381 because i386/qemu cannot boot.  Pointed out by gson@n.o and martin@n.o.

Revision 1.381: download - view: text, markup, annotated - select for diffs
Thu Dec 8 09:08:49 2022 UTC (2 years, 4 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.380: preferred, colored
Changes since revision 1.380: +29 -7 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 3 11:28:38 2022 UTC (2 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.379: preferred, colored
Changes since revision 1.379: +6 -4 lines
KNF a comment

Revision 1.379: download - view: text, markup, annotated - select for diffs
Wed Oct 26 23:38:09 2022 UTC (2 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.378: preferred, colored
Changes since revision 1.378: +4 -6 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 3 20:15:50 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.377: preferred, colored
Changes since revision 1.377: +10 -11 lines
com(4): Nix quirky `integrate' macro.

Just use `static inline' like everything else.

Revision 1.377: download - view: text, markup, annotated - select for diffs
Mon Oct 3 19:59:21 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.376: preferred, colored
Changes since revision 1.376: +5 -10 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 3 19:58:48 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.375: preferred, colored
Changes since revision 1.375: +2 -20 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 3 19:57:41 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.374: preferred, colored
Changes since revision 1.374: +6 -2 lines
com(4): Comment on lock order.

Revision 1.374: download - view: text, markup, annotated - select for diffs
Mon Oct 3 19:26:35 2022 UTC (2 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.373: preferred, colored
Changes since revision 1.373: +5 -5 lines
com(4): Update confusing comment from decades ago to reflect now.

No functional change.

Revision 1.373: download - view: text, markup, annotated - select for diffs
Fri Nov 12 21:57:13 2021 UTC (3 years, 5 months ago) by jmcneill
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.372: preferred, colored
Changes since revision 1.372: +109 -8 lines
com: Add support for 32-bit IO accesses.

Revision 1.372: download - view: text, markup, annotated - select for diffs
Sat Oct 30 11:43:17 2021 UTC (3 years, 5 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.371: preferred, colored
Changes since revision 1.371: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 21 10:22:54 2021 UTC (3 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.370: preferred, colored
Changes since revision 1.370: +3 -2 lines
Restore 16-byte FIFO for ns16550a, accidentally lost in r1.344.

Spotted by msaitoh. Thanks!

Revision 1.370: download - view: text, markup, annotated - select for diffs
Wed Oct 20 01:09:49 2021 UTC (3 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.369: preferred, colored
Changes since revision 1.369: +7 -7 lines
- microtime -> microuptime
- avoid kpause with timeo=0

Revision 1.369: download - view: text, markup, annotated - select for diffs
Thu Oct 14 09:56:12 2021 UTC (3 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.368: preferred, colored
Changes since revision 1.368: +7 -10 lines
- use microtime instead of getmicrotime, suggested by thorpej
- use ttclos for wchan even though we are sleeping in comopen now

Revision 1.368: download - view: text, markup, annotated - select for diffs
Tue Oct 12 08:09:50 2021 UTC (3 years, 6 months ago) by kre
Branches: MAIN
Diff to: previous 1.367: preferred, colored
Changes since revision 1.367: +3 -2 lines

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

Revision 1.367: download - view: text, markup, annotated - select for diffs
Tue Oct 12 06:25:17 2021 UTC (3 years, 6 months ago) by kre
Branches: MAIN
Diff to: previous 1.366: preferred, colored
Changes since revision 1.366: +7 -4 lines

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

Revision 1.366: download - view: text, markup, annotated - select for diffs
Mon Oct 11 18:39:06 2021 UTC (3 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.365: preferred, colored
Changes since revision 1.365: +17 -6 lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:23 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.363: preferred, colored; next MAIN 1.364: preferred, colored
Changes since revision 1.363: +7 -5 lines
Sync with HEAD.

Revision 1.365: download - view: text, markup, annotated - select for diffs
Sat Jul 31 10:04:12 2021 UTC (3 years, 8 months ago) by tnn
Branches: 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
Diff to: previous 1.364: preferred, colored
Changes since revision 1.364: +6 -5 lines
only read cpr register if we're going to use the value

Revision 1.364: download - view: text, markup, annotated - select for diffs
Fri Jul 30 12:46:46 2021 UTC (3 years, 8 months ago) by tnn
Branches: MAIN
Diff to: previous 1.363: preferred, colored
Changes since revision 1.363: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:44 2021 UTC (4 years ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.361: preferred, colored; next MAIN 1.362: preferred, colored
Changes since revision 1.361: +14 -10 lines
Sync with HEAD.

Revision 1.361.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:44:51 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.361: preferred, colored; next MAIN 1.362: preferred, colored
Changes since revision 1.361: +14 -10 lines
Sync with HEAD.

Revision 1.363: download - view: text, markup, annotated - select for diffs
Thu Mar 25 05:34:49 2021 UTC (4 years, 1 month ago) by rin
Branches: 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
Diff to: previous 1.362: preferred, colored
Changes since revision 1.362: +11 -7 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 25 05:33:59 2021 UTC (4 years, 1 month ago) by rin
Branches: MAIN
Diff to: previous 1.361: preferred, colored
Changes since revision 1.361: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 30 14:56:34 2020 UTC (4 years, 6 months ago) by jmcneill
Branches: MAIN
Branch point for: thorpej-futex, thorpej-cfargs
Diff to: previous 1.360: preferred, colored
Changes since revision 1.360: +3 -2 lines
Set sc_fifolen=1 for the no fifo case

Revision 1.360: download - view: text, markup, annotated - select for diffs
Mon Sep 28 11:33:15 2020 UTC (4 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.359: preferred, colored
Changes since revision 1.359: +36 -16 lines
Auto-detect DW APB UART FIFO length and print the FIFO length when enabled
instead of just "working fifo".

Revision 1.359: download - view: text, markup, annotated - select for diffs
Tue May 26 13:24:52 2020 UTC (4 years, 11 months ago) by martin
Branches: MAIN
Diff to: previous 1.358: preferred, colored
Changes since revision 1.358: +7 -7 lines
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 - view: text, markup, annotated - select for diffs
Fri May 1 07:27:51 2020 UTC (4 years, 11 months ago) by simonb
Branches: MAIN
Diff to: previous 1.357: preferred, colored
Changes since revision 1.357: +4 -4 lines
Get rid of needless __predict_true() and move a comment slightly.

Revision 1.348.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:21 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.348.2.2: preferred, colored; branchpoint 1.348: preferred, colored; next MAIN 1.349: preferred, colored
Changes since revision 1.348.2.2: +1 -6 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.348.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:06 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.348.2.1: preferred, colored; branchpoint 1.348: preferred, colored
Changes since revision 1.348.2.1: +7 -4 lines
Merge changes from current as of 20200406

Revision 1.356.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:08 2020 UTC (5 years, 1 month ago) by ad
Branches: ad-namecache
Diff to: previous 1.356: preferred, colored; next MAIN 1.357: preferred, colored
Changes since revision 1.356: +7 -4 lines
Sync with head.

Revision 1.357: download - view: text, markup, annotated - select for diffs
Sat Feb 1 15:24:04 2020 UTC (5 years, 2 months ago) by skrll
Branches: 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
Diff to: previous 1.356: preferred, colored
Changes since revision 1.356: +7 -4 lines
Use designated initializers

Revision 1.356: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:35 2019 UTC (5 years, 5 months ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.355: preferred, colored
Changes since revision 1.355: +3 -8 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:10 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.348: preferred, colored
Changes since revision 1.348: +93 -44 lines
Sync with HEAD

Revision 1.346.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:26 2019 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.346.2.3: preferred, colored; branchpoint 1.346: preferred, colored; next MAIN 1.347: preferred, colored
Changes since revision 1.346.2.3: +23 -9 lines
Synch with HEAD

Revision 1.355: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:10:40 2019 UTC (6 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-4-RELEASE, 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
Diff to: previous 1.354: preferred, colored
Changes since revision 1.354: +23 -9 lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:48 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.346.2.2: preferred, colored; branchpoint 1.346: preferred, colored
Changes since revision 1.346.2.2: +73 -38 lines
Sync with HEAD, resolve a few conflicts

Revision 1.354: download - view: text, markup, annotated - select for diffs
Tue Dec 11 06:34:00 2018 UTC (6 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: pgoyette-compat-1226
Diff to: previous 1.353: preferred, colored
Changes since revision 1.353: +19 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 9 16:00:40 2018 UTC (6 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.352: preferred, colored
Changes since revision 1.352: +12 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 8 21:14:37 2018 UTC (6 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.351: preferred, colored
Changes since revision 1.351: +2 -19 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 8 17:46:13 2018 UTC (6 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.350: preferred, colored
Changes since revision 1.350: +27 -21 lines
Clean up initialization of com_regs structure, in preparation for
some additional changers.

Revision 1.350: download - view: text, markup, annotated - select for diffs
Fri Nov 30 16:26:19 2018 UTC (6 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.349: preferred, colored
Changes since revision 1.349: +17 -2 lines
Add support for com(4) without an interrupt by setting the COM_HW_POLL flag

Revision 1.349: download - view: text, markup, annotated - select for diffs
Wed Nov 28 22:28:46 2018 UTC (6 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.348: preferred, colored
Changes since revision 1.348: +9 -4 lines
Add support for a "force_console" property, where when set, reuses the console dev configuration

Revision 1.346.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:50 2018 UTC (6 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.346.2.1: preferred, colored; branchpoint 1.346: preferred, colored
Changes since revision 1.346.2.1: +6 -6 lines
Sync with HEAD

Revision 1.348: download - view: text, markup, annotated - select for diffs
Sun May 27 17:05:06 2018 UTC (6 years, 11 months ago) by jmcneill
Branches: 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
Diff to: previous 1.347: preferred, colored
Changes since revision 1.347: +6 -6 lines
Rename COM_TYPE_SUNXI -> COM_TYPE_DW_APB

Revision 1.346.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 16 01:59:57 2018 UTC (7 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.346: preferred, colored
Changes since revision 1.346: +2 -4 lines
Sync with HEAD, resolve some conflicts

Revision 1.347: download - view: text, markup, annotated - select for diffs
Sun Apr 8 13:38:32 2018 UTC (7 years ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Diff to: previous 1.346: preferred, colored
Changes since revision 1.346: +2 -4 lines
Remove COM_AWIN option

Revision 1.346: download - view: text, markup, annotated - select for diffs
Mon Dec 4 09:55:37 2017 UTC (7 years, 4 months ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.345: preferred, colored
Changes since revision 1.345: +5 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.306.2.3: preferred, colored; branchpoint 1.306: preferred, colored; next MAIN 1.307: preferred, colored
Changes since revision 1.306.2.3: +240 -126 lines
update from HEAD

Revision 1.339.10.1: download - view: text, markup, annotated - select for diffs
Mon Nov 6 10:29:06 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, 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
Diff to: previous 1.339: preferred, colored; next MAIN 1.340: preferred, colored
Changes since revision 1.339: +15 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 31 10:45:19 2017 UTC (7 years, 5 months ago) by martin
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.344: preferred, colored
Changes since revision 1.344: +15 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 29 14:06:08 2017 UTC (7 years, 5 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.343: preferred, colored
Changes since revision 1.343: +112 -120 lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 28 04:53:55 2017 UTC (7 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.342: preferred, colored
Changes since revision 1.342: +4 -4 lines
Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.329.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:03 2017 UTC (7 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.329.2.4: preferred, colored; branchpoint 1.329: preferred, colored; next MAIN 1.330: preferred, colored
Changes since revision 1.329.2.4: +13 -2 lines
Sync with HEAD

Revision 1.342: download - view: text, markup, annotated - select for diffs
Thu Aug 10 13:25:49 2017 UTC (7 years, 8 months ago) by nat
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.341: preferred, colored
Changes since revision 1.341: +3 -3 lines
Report AUXUART fifo size on rpi3 to 1 byte.  This prevents bluetooth
errors using the h5 protocol.

Revision 1.341: download - view: text, markup, annotated - select for diffs
Mon Jul 31 23:53:25 2017 UTC (7 years, 8 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.340: preferred, colored
Changes since revision 1.340: +5 -2 lines
Broadcom AUX UART doesn't seem to set LSR RXRDY bit when data is available
in the RX FIFO.

Revision 1.340: download - view: text, markup, annotated - select for diffs
Mon Jul 31 09:25:14 2017 UTC (7 years, 8 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.339: preferred, colored
Changes since revision 1.339: +10 -2 lines
Add COM_TYPE_BCMAUXUART type for BCM2835 AUX UART.

Revision 1.327.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 22 08:26:05 2016 UTC (8 years, 10 months ago) by snj
Branches: 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
Diff to: previous 1.327: preferred, colored; next MAIN 1.328: preferred, colored
Changes since revision 1.327: +40 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun May 29 08:44:21 2016 UTC (8 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.329.2.3: preferred, colored; branchpoint 1.329: preferred, colored
Changes since revision 1.329.2.3: +40 -5 lines
Sync with HEAD

Revision 1.339: download - view: text, markup, annotated - select for diffs
Fri May 27 20:01:49 2016 UTC (8 years, 10 months ago) by bouyer
Branches: 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
Diff to: previous 1.338: preferred, colored
Changes since revision 1.338: +40 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:49 2015 UTC (9 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.329.2.2: preferred, colored; branchpoint 1.329: preferred, colored
Changes since revision 1.329.2.2: +18 -7 lines
Sync with HEAD (as of 26th Dec)

Revision 1.338: download - view: text, markup, annotated - select for diffs
Mon Dec 14 23:57:30 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Diff to: previous 1.337: preferred, colored
Changes since revision 1.337: +16 -5 lines
Fix TX FIFO on Tegra

Revision 1.337: download - view: text, markup, annotated - select for diffs
Mon Nov 2 17:45:13 2015 UTC (9 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.336: preferred, colored
Changes since revision 1.336: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:07 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.329.2.1: preferred, colored; branchpoint 1.329: preferred, colored
Changes since revision 1.329.2.1: +20 -15 lines
Sync with HEAD

Revision 1.336: download - view: text, markup, annotated - select for diffs
Mon May 4 22:59:36 2015 UTC (9 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Diff to: previous 1.335: preferred, colored
Changes since revision 1.335: +12 -12 lines
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 - view: text, markup, annotated - select for diffs
Mon May 4 20:25:48 2015 UTC (9 years, 11 months ago) by macallan
Branches: MAIN
Diff to: previous 1.334: preferred, colored
Changes since revision 1.334: +6 -4 lines
fix pasto, use SET() and CLR()
thanks jmcneill@

Revision 1.334: download - view: text, markup, annotated - select for diffs
Sun May 3 17:22:54 2015 UTC (9 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.333: preferred, colored
Changes since revision 1.333: +7 -2 lines
add COM_TYPE_TEGRA

Revision 1.333: download - view: text, markup, annotated - select for diffs
Mon Apr 13 16:33:24 2015 UTC (10 years ago) by riastradh
Branches: MAIN
Diff to: previous 1.332: preferred, colored
Changes since revision 1.332: +3 -5 lines
Convert sys/dev to use <sys/rndsource.h>.

Revision 1.329.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:09 2015 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.329: preferred, colored
Changes since revision 1.329: +47 -12 lines
Sync with HEAD

Revision 1.332: download - view: text, markup, annotated - select for diffs
Sat Mar 7 22:13:16 2015 UTC (10 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.331: preferred, colored
Changes since revision 1.331: +6 -6 lines
KNF

Revision 1.331: download - view: text, markup, annotated - select for diffs
Sat Mar 7 21:53:33 2015 UTC (10 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.330: preferred, colored
Changes since revision 1.330: +3 -3 lines
Fix build.

Hi mipsallan

Revision 1.330: download - view: text, markup, annotated - select for diffs
Sat Mar 7 15:49:20 2015 UTC (10 years, 1 month ago) by macallan
Branches: MAIN
Diff to: previous 1.329: preferred, colored
Changes since revision 1.329: +46 -11 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 22 15:14:35 2014 UTC (10 years, 5 months ago) by macallan
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.328: preferred, colored
Changes since revision 1.328: +18 -5 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 15 19:18:18 2014 UTC (10 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.327: preferred, colored
Changes since revision 1.327: +5 -6 lines
centralize the dialout/call unit macros.

Revision 1.306.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:37 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.306.2.2: preferred, colored; branchpoint 1.306: preferred, colored
Changes since revision 1.306.2.2: +87 -25 lines
Rebase to HEAD as of a few days ago.

Revision 1.327: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:35 2014 UTC (10 years, 8 months ago) by tls
Branches: 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
Diff to: previous 1.326: preferred, colored
Changes since revision 1.326: +3 -3 lines
Merge tls-earlyentropy branch into HEAD.

Revision 1.323.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:52 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.323.2.1: preferred, colored; branchpoint 1.323: preferred, colored; next MAIN 1.324: preferred, colored
Changes since revision 1.323.2.1: +6 -9 lines
Rebase.

Revision 1.326: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:37 2014 UTC (10 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: tls-earlyentropy-base
Diff to: previous 1.325: preferred, colored
Changes since revision 1.325: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu May 22 11:40:22 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.301.4.3: preferred, colored; branchpoint 1.301: preferred, colored; next MAIN 1.302: preferred, colored
Changes since revision 1.301.4.3: +132 -25 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:45:37 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.310.4.1: preferred, colored; branchpoint 1.310: preferred, colored; next MAIN 1.311: preferred, colored
Changes since revision 1.310.4.1: +79 -21 lines
sync with head

Revision 1.325: download - view: text, markup, annotated - select for diffs
Tue Apr 8 00:09:15 2014 UTC (11 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.324: preferred, colored
Changes since revision 1.324: +4 -6 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:32 2014 UTC (11 years ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.323: preferred, colored
Changes since revision 1.323: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Apr 6 23:29:58 2014 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.323: preferred, colored
Changes since revision 1.323: +4 -6 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:27 2014 UTC (11 years, 1 month ago) by dholland
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.322: preferred, colored
Changes since revision 1.322: +13 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 22 18:20:46 2013 UTC (11 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.321: preferred, colored
Changes since revision 1.321: +7 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 16 12:08:14 2013 UTC (11 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.320: preferred, colored
Changes since revision 1.320: +3 -3 lines
Use #if defined in previous.

Revision 1.320: download - view: text, markup, annotated - select for diffs
Mon Dec 16 01:51:19 2013 UTC (11 years, 4 months ago) by htodd
Branches: MAIN
Diff to: previous 1.319: preferred, colored
Changes since revision 1.319: +3 -3 lines
Fix build.

Revision 1.319: download - view: text, markup, annotated - select for diffs
Sun Dec 15 15:55:39 2013 UTC (11 years, 4 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.318: preferred, colored
Changes since revision 1.318: +4 -2 lines
lcr is only used when COM_16650 is defined; unbreak the build

Revision 1.318: download - view: text, markup, annotated - select for diffs
Sun Dec 15 11:06:57 2013 UTC (11 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.317: preferred, colored
Changes since revision 1.317: +6 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 3 13:23:03 2013 UTC (11 years, 6 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.316: preferred, colored
Changes since revision 1.316: +49 -16 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 12 12:54:39 2013 UTC (11 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.315: preferred, colored
Changes since revision 1.315: +5 -4 lines
Minor tweaks for newer gcc

Revision 1.315: download - view: text, markup, annotated - select for diffs
Tue Sep 3 15:32:55 2013 UTC (11 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.314: preferred, colored
Changes since revision 1.314: +18 -6 lines
no EFR on tl16c750, use AFE bit on MCR reg instead for flow control

Revision 1.314: download - view: text, markup, annotated - select for diffs
Sun Sep 1 04:58:15 2013 UTC (11 years, 7 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.313: preferred, colored
Changes since revision 1.313: +36 -4 lines
Add support 16750 64Byte FIFO.  But not test.

Revision 1.313: download - view: text, markup, annotated - select for diffs
Sun Sep 1 04:51:24 2013 UTC (11 years, 7 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.312: preferred, colored
Changes since revision 1.312: +15 -48 lines
Move the Marvell extension to com_mv.c.

Revision 1.310.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:25 2013 UTC (11 years, 7 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.310: preferred, colored
Changes since revision 1.310: +11 -8 lines
sync with head

Revision 1.312: download - view: text, markup, annotated - select for diffs
Sat Jul 27 06:54:35 2013 UTC (11 years, 9 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.311: preferred, colored
Changes since revision 1.311: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 27 06:43:56 2013 UTC (11 years, 9 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.310: preferred, colored
Changes since revision 1.310: +6 -8 lines
Remove white-spaces, null-line and new-line.

Revision 1.306.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:17 2013 UTC (11 years, 10 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.306.2.1: preferred, colored; branchpoint 1.306: preferred, colored
Changes since revision 1.306.2.1: +49 -3 lines
resync from head

Revision 1.310: download - view: text, markup, annotated - select for diffs
Wed May 1 07:38:00 2013 UTC (11 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.309: preferred, colored
Changes since revision 1.309: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 20 11:52:40 2013 UTC (12 years ago) by rkujawa
Branches: MAIN
Diff to: previous 1.308: preferred, colored
Changes since revision 1.308: +47 -3 lines
Add support for 16750 style UARTs. Activated by defining COM_16750.

Obtained from Marvell, Semihalf.

Revision 1.306.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:14 2013 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.306: preferred, colored
Changes since revision 1.306: +12 -3 lines
resync with head

Revision 1.308: download - view: text, markup, annotated - select for diffs
Sun Feb 24 06:21:36 2013 UTC (12 years, 2 months ago) by matt
Branches: MAIN
CVS tags: agc-symver-base, agc-symver
Diff to: previous 1.307: preferred, colored
Changes since revision 1.307: +3 -2 lines
Initialize t_softc.

Revision 1.301.4.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:06 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.301.4.2: preferred, colored; branchpoint 1.301: preferred, colored
Changes since revision 1.301.4.2: +12 -3 lines
sync with head

Revision 1.307: download - view: text, markup, annotated - select for diffs
Thu Jan 10 17:38:10 2013 UTC (12 years, 3 months ago) by macallan
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.306: preferred, colored
Changes since revision 1.306: +12 -3 lines
don't try to become console if we get is_console=false as device property

Revision 1.303.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:16 2012 UTC (12 years, 10 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.303.2.2: preferred, colored; branchpoint 1.303: preferred, colored; next MAIN 1.304: preferred, colored
Changes since revision 1.303.2.2: +2 -3 lines
sync to latest -current.

Revision 1.301.4.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:07:56 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.301.4.1: preferred, colored; branchpoint 1.301: preferred, colored
Changes since revision 1.301.4.1: +6 -6 lines
sync with head.

Revision 1.306: download - view: text, markup, annotated - select for diffs
Mon May 21 20:51:46 2012 UTC (12 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.305: preferred, colored
Changes since revision 1.305: +2 -3 lines
Remove empty line.

Revision 1.303.2.2: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:49 2012 UTC (12 years, 11 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.303.2.1: preferred, colored; branchpoint 1.303: preferred, colored
Changes since revision 1.303.2.1: +6 -5 lines
sync to latest -current.

Revision 1.304.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 22 17:01:44 2012 UTC (13 years ago) by riz
Branches: 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
Diff to: previous 1.304: preferred, colored; next MAIN 1.305: preferred, colored
Changes since revision 1.304: +6 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Apr 22 16:00:45 2012 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: jmcneill-usbmp-base9
Diff to: previous 1.304: preferred, colored
Changes since revision 1.304: +6 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:32 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.301: preferred, colored
Changes since revision 1.301: +16 -16 lines
sync with head

Revision 1.303.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:15 2012 UTC (13 years, 2 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.303: preferred, colored
Changes since revision 1.303: +6 -6 lines
merge to -current.

Revision 1.304: download - view: text, markup, annotated - select for diffs
Thu Feb 2 19:43:02 2012 UTC (13 years, 2 months ago) by tls
Branches: 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
Diff to: previous 1.303: preferred, colored
Changes since revision 1.303: +6 -6 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 27 18:17:08 2011 UTC (13 years, 5 months ago) by jakllsch
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.302: preferred, colored
Changes since revision 1.302: +5 -5 lines
more whitespace and comment spelling fixes

Revision 1.302: download - view: text, markup, annotated - select for diffs
Sun Nov 27 15:28:26 2011 UTC (13 years, 5 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.301: preferred, colored
Changes since revision 1.301: +9 -9 lines
whitespace consistency adjustment

Revision 1.298.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:52 2011 UTC (13 years, 10 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.298: preferred, colored; next MAIN 1.299: preferred, colored
Changes since revision 1.298: +21 -18 lines
Sync with HEAD.

Revision 1.295.2.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:36 2011 UTC (13 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.295.2.2: preferred, colored; branchpoint 1.295: preferred, colored; next MAIN 1.296: preferred, colored
Changes since revision 1.295.2.2: +20 -15 lines
sync with head

Revision 1.301: download - view: text, markup, annotated - select for diffs
Sat May 28 19:30:19 2011 UTC (13 years, 11 months ago) by matt
Branches: 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
Diff to: previous 1.300: preferred, colored
Changes since revision 1.300: +18 -13 lines
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 - view: text, markup, annotated - select for diffs
Fri May 20 16:47:55 2011 UTC (13 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.286.10.1: preferred, colored; branchpoint 1.286: preferred, colored; next MAIN 1.287: preferred, colored
Changes since revision 1.286.10.1: +11 -5 lines
Fix early boot on AU1x type com ports.

Revision 1.300: download - view: text, markup, annotated - select for diffs
Sun Apr 24 16:26:59 2011 UTC (14 years ago) by rmind
Branches: MAIN
Diff to: previous 1.299: preferred, colored
Changes since revision 1.299: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:14 2011 UTC (14 years, 1 month ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.295.2.1: preferred, colored; branchpoint 1.295: preferred, colored
Changes since revision 1.295.2.1: +3 -3 lines
sync with head

Revision 1.298.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:49 2011 UTC (14 years, 2 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.298: preferred, colored; next MAIN 1.299: preferred, colored
Changes since revision 1.298: +2 -4 lines
Sync with HEAD

Revision 1.299: download - view: text, markup, annotated - select for diffs
Sat Jan 22 16:59:26 2011 UTC (14 years, 3 months ago) by tsutsui
Branches: MAIN
CVS tags: bouyer-quota2-nbase, bouyer-quota2-base
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +2 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 7 02:28:45 2011 UTC (14 years, 3 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.286: preferred, colored; next MAIN 1.287: preferred, colored
Changes since revision 1.286: +7 -5 lines
Let's cons.c poll and so don't loop until a chacater becomes available.

Revision 1.294.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:09 2010 UTC (14 years, 8 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.294.2.1: preferred, colored; branchpoint 1.294: preferred, colored; next MAIN 1.295: preferred, colored
Changes since revision 1.294.2.1: +3 -1 lines
Sync with HEAD.

Revision 1.279.2.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:24 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.279.2.4: preferred, colored; branchpoint 1.279: preferred, colored; next MAIN 1.280: preferred, colored
Changes since revision 1.279.2.4: +11 -8 lines
sync with head.

Revision 1.298: download - view: text, markup, annotated - select for diffs
Tue Jul 20 06:17:20 2010 UTC (14 years, 9 months ago) by jklos
Branches: 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
Diff to: previous 1.297: preferred, colored
Changes since revision 1.297: +5 -3 lines
Add support for 16650's prescaler from Frank Wille. Tested with
IOblix on Amiga.

Revision 1.295.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:21 2010 UTC (14 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +8 -7 lines
sync with head

Revision 1.294.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:14 2010 UTC (14 years, 11 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +10 -9 lines
Sync with HEAD.

Revision 1.297: download - view: text, markup, annotated - select for diffs
Mon Apr 19 18:24:26 2010 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +8 -14 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 22 23:00:08 2010 UTC (15 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +14 -7 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:29 2010 UTC (15 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.279.2.3: preferred, colored; branchpoint 1.279: preferred, colored
Changes since revision 1.279.2.3: +82 -62 lines
sync with head

Revision 1.295: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:58 2010 UTC (15 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 9 14:15:48 2010 UTC (15 years, 3 months ago) by tsutsui
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +4 -4 lines
To print bus_addr_t value, cast it to u_long rather than size_t.

Revision 1.293: download - view: text, markup, annotated - select for diffs
Fri Jan 8 20:02:39 2010 UTC (15 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +4 -4 lines
Expand PMF_FN_* macros.

Revision 1.292: download - view: text, markup, annotated - select for diffs
Sun Dec 6 23:15:59 2009 UTC (15 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +20 -2 lines
Delete dead code.

Revision 1.291: download - view: text, markup, annotated - select for diffs
Mon Nov 23 02:13:46 2009 UTC (15 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +2 -3 lines
Remove some unecessary includes sys/user.h header.

Revision 1.290: download - view: text, markup, annotated - select for diffs
Thu Nov 12 20:38:35 2009 UTC (15 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +2 -32 lines
Remove some dead code.

Revision 1.289: download - view: text, markup, annotated - select for diffs
Thu Nov 12 20:37:09 2009 UTC (15 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +92 -59 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 13 03:32:33 2009 UTC (15 years, 7 months ago) by cliff
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +16 -13 lines
when attaching com, (frequency == -1) means leave the BRG divisor as-is
(inherit values established by firmware)

Revision 1.279.2.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:22 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.279.2.2: preferred, colored; branchpoint 1.279: preferred, colored
Changes since revision 1.279.2.2: +4 -2 lines
sync with head

Revision 1.287.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:22 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.287: preferred, colored; next MAIN 1.288: preferred, colored
Changes since revision 1.287: +4 -2 lines
Sync with HEAD.

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

Revision 1.288: download - view: text, markup, annotated - select for diffs
Wed May 6 07:27:42 2009 UTC (15 years, 11 months ago) by cegger
Branches: 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
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon May 4 08:12:41 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.279.2.1: preferred, colored; branchpoint 1.279: preferred, colored
Changes since revision 1.279.2.1: +19 -19 lines
sync with head.

Revision 1.286.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:54 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.286: preferred, colored; next MAIN 1.287: preferred, colored
Changes since revision 1.286: +3 -3 lines
Sync with HEAD.

Revision 1.272.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:55 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.272.6.3: preferred, colored; branchpoint 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272.6.3: +19 -10 lines
Sync with HEAD.

Revision 1.287: download - view: text, markup, annotated - select for diffs
Sat Jan 3 03:43:22 2009 UTC (16 years, 3 months ago) by yamt
Branches: 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
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +3 -3 lines
remove extra semicolons.

Revision 1.281.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:14 2008 UTC (16 years, 4 months ago) by haad
Branches: haad-dm
Diff to: previous 1.281.6.1: preferred, colored; branchpoint 1.281: preferred, colored; next MAIN 1.282: preferred, colored
Changes since revision 1.281.6.1: +18 -9 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.286: download - view: text, markup, annotated - select for diffs
Sat Oct 25 17:50:29 2008 UTC (16 years, 6 months ago) by matt
Branches: 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
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +26 -28 lines
Simplify NOERS case.  Revert most changes back to 1.283.

Revision 1.285: download - view: text, markup, annotated - select for diffs
Sat Oct 25 15:21:57 2008 UTC (16 years, 6 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +12 -6 lines
Fix a botch in an FIFO check for 16650.

Revision 1.284: download - view: text, markup, annotated - select for diffs
Sat Oct 25 10:05:43 2008 UTC (16 years, 6 months ago) by he
Branches: MAIN
CVS tags: matt-mips64-base2
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +1 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 24 04:43:08 2008 UTC (16 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +16 -11 lines
Add support for 16550 chips without an Enhanced Register Set.

Revision 1.281.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:26 2008 UTC (16 years, 6 months ago) by haad
Branches: haad-dm
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +0 -9 lines
Sync with HEAD.

Revision 1.272.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:22 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.272.6.2: preferred, colored; branchpoint 1.272: preferred, colored
Changes since revision 1.272.6.2: +0 -9 lines
Sync with HEAD.

Revision 1.281.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:03 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.281: preferred, colored; next MAIN 1.282: preferred, colored
Changes since revision 1.281: +0 -9 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.281.4.1: download - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:33 2008 UTC (16 years, 9 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.281: preferred, colored; next MAIN 1.282: preferred, colored
Changes since revision 1.281: +0 -9 lines
Sync with head.

Revision 1.282: download - view: text, markup, annotated - select for diffs
Mon Jul 14 15:40:55 2008 UTC (16 years, 9 months ago) by matt
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, haad-dm-base1
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +0 -9 lines
Remove OMAP gunk in com_activate, it's not needed.

Spotted by Matthias Drochner.

Revision 1.272.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:20 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.272.6.1: preferred, colored; branchpoint 1.272: preferred, colored
Changes since revision 1.272.6.1: +109 -16 lines
Sync with HEAD.

Revision 1.278.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:42 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.278: preferred, colored; next MAIN 1.279: preferred, colored
Changes since revision 1.278: +101 -12 lines
sync with head.

Revision 1.279.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:03 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +93 -12 lines
sync with head.

Revision 1.281: download - view: text, markup, annotated - select for diffs
Mon Apr 28 22:00:01 2008 UTC (17 years ago) by matt
Branches: 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
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +93 -5 lines
More forgotten changes from matt-armv6.

Revision 1.280: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:49 2008 UTC (17 years ago) by martin
Branches: MAIN
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.279: download - view: text, markup, annotated - select for diffs
Mon Apr 21 12:56:31 2008 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +10 -2 lines
Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE.

Revision 1.278: download - view: text, markup, annotated - select for diffs
Fri Apr 11 12:45:08 2008 UTC (17 years ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +10 -6 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:40 2008 UTC (17 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +70 -41 lines
Sync with HEAD.

Revision 1.272.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:16 2008 UTC (17 years, 1 month ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.272: preferred, colored; next MAIN 1.273: preferred, colored
Changes since revision 1.272: +70 -41 lines
sync with head.

Revision 1.262.2.4: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:37 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.262.2.3: preferred, colored; branchpoint 1.262: preferred, colored; next MAIN 1.263: preferred, colored
Changes since revision 1.262.2.3: +76 -225 lines
sync with HEAD

Revision 1.234.2.9: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:42 2008 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.8: preferred, colored; next MAIN 1.235: preferred, colored
Changes since revision 1.234.2.8: +70 -41 lines
sync with head.

Revision 1.277: download - view: text, markup, annotated - select for diffs
Fri Mar 14 22:47:06 2008 UTC (17 years, 1 month ago) by cube
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +9 -7 lines
Fix compilation under options RND_COM and COM_DEBUG.
Reported by Kurt Schreiner on current-users@.

Revision 1.276: download - view: text, markup, annotated - select for diffs
Fri Mar 14 15:09:11 2008 UTC (17 years, 1 month ago) by cube
Branches: MAIN
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +34 -26 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 7 10:08:53 2008 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +2 -3 lines
In com_detach(), don't destroy the lock twice.

Revision 1.274: download - view: text, markup, annotated - select for diffs
Fri Mar 7 08:39:18 2008 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +6 -6 lines
Use device_t and its accessors.

Revision 1.273: download - view: text, markup, annotated - select for diffs
Fri Feb 29 07:02:05 2008 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +30 -10 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:40 2008 UTC (17 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.265.2.2: preferred, colored; branchpoint 1.265: preferred, colored; next MAIN 1.266: preferred, colored
Changes since revision 1.265.2.2: +14 -192 lines
Sync with HEAD.

Revision 1.234.2.8: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:23:23 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.7: preferred, colored
Changes since revision 1.234.2.7: +8 -2 lines
sync with head.

Revision 1.272: download - view: text, markup, annotated - select for diffs
Mon Jan 28 18:12:29 2008 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +5 -2 lines
Do not allow the system console to detach, because that will lead
to a panic.

Revision 1.271: download - view: text, markup, annotated - select for diffs
Thu Jan 24 18:50:15 2008 UTC (17 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +5 -2 lines
Destroy mutex when detaching. PR kern/37819.

Revision 1.267.4.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 19:27:33 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.267.4.2: preferred, colored; branchpoint 1.267: preferred, colored; next MAIN 1.268: preferred, colored
Changes since revision 1.267.4.2: +0 -184 lines
Sync with HEAD.

Revision 1.234.2.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:57 2008 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.6: preferred, colored
Changes since revision 1.234.2.6: +14 -219 lines
sync with head

Revision 1.270: download - view: text, markup, annotated - select for diffs
Sun Jan 20 18:09:10 2008 UTC (17 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: bouyer-xeni386-nbase
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +2 -186 lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:50 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.262.2.2: preferred, colored; branchpoint 1.262: preferred, colored
Changes since revision 1.262.2.2: +17 -45 lines
sync with HEAD

Revision 1.267.4.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:03 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.267.4.1: preferred, colored; branchpoint 1.267: preferred, colored
Changes since revision 1.267.4.1: +6 -6 lines
Sync with HEAD

Revision 1.269: download - view: text, markup, annotated - select for diffs
Sat Jan 5 12:44:13 2008 UTC (17 years, 3 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base, bouyer-xeni386-base
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +8 -8 lines
Work around com hangs with pcmcia. PR kern/37462.

Revision 1.267.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:54:09 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +8 -29 lines
Sync with HEAD

Revision 1.265.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:06 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.265.2.1: preferred, colored; branchpoint 1.265: preferred, colored
Changes since revision 1.265.2.1: +8 -29 lines
Sync with HEAD.

Revision 1.266.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:25 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.266.2.1: preferred, colored; branchpoint 1.266: preferred, colored; next MAIN 1.267: preferred, colored
Changes since revision 1.266.2.1: +8 -29 lines
Sync with head.

Revision 1.268: download - view: text, markup, annotated - select for diffs
Fri Dec 14 03:36:54 2007 UTC (17 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +8 -29 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:48 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.261.6.3: preferred, colored; branchpoint 1.261: preferred, colored; next MAIN 1.262: preferred, colored
Changes since revision 1.261.6.3: +3 -3 lines
Sync with HEAD.

Revision 1.265.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:34 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +5 -13 lines
Sync with HEAD.

Revision 1.266.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:21 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +3 -3 lines
Sync with head.

Revision 1.234.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:53 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.5: preferred, colored
Changes since revision 1.234.2.5: +5 -13 lines
sync with head

Revision 1.267: download - view: text, markup, annotated - select for diffs
Wed Dec 5 07:06:51 2007 UTC (17 years, 4 months ago) by ad
Branches: 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
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +3 -3 lines
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.232.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 1 17:49:45 2007 UTC (17 years, 4 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.232: preferred, colored; next MAIN 1.233: preferred, colored
Changes since revision 1.232: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 1 17:38:58 2007 UTC (17 years, 4 months ago) by bouyer
Branches: netbsd-2
Diff to: previous 1.224.2.2: preferred, colored; next MAIN 1.225: preferred, colored
Changes since revision 1.224.2.2: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 21 21:54:49 2007 UTC (17 years, 5 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.261.6.2: preferred, colored; branchpoint 1.261: preferred, colored
Changes since revision 1.261.6.2: +4 -12 lines
Sync with HEAD.

Revision 1.264.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:19:33 2007 UTC (17 years, 5 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.264.2.1: preferred, colored; branchpoint 1.264: preferred, colored; next MAIN 1.265: preferred, colored
Changes since revision 1.264.2.1: +2 -10 lines
Sync with HEAD

Revision 1.266: download - view: text, markup, annotated - select for diffs
Mon Nov 19 18:51:47 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +4 -12 lines
- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.

Revision 1.262.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:26:29 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.262.2.1: preferred, colored; branchpoint 1.262: preferred, colored
Changes since revision 1.262.2.1: +50 -84 lines
sync with HEAD

Revision 1.262.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 29 02:12:51 2007 UTC (17 years, 6 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +92 -5 lines
Add support for OMAP specific com type.

Revision 1.234.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:30:34 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.4: preferred, colored
Changes since revision 1.234.2.4: +50 -84 lines
sync with head.

Revision 1.261.6.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:40 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.261.6.1: preferred, colored; branchpoint 1.261: preferred, colored
Changes since revision 1.261.6.1: +50 -84 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:34 2007 UTC (17 years, 6 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +3 -3 lines
Sync with HEAD.

Revision 1.259.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:17 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.259.2.2: preferred, colored; branchpoint 1.259: preferred, colored; next MAIN 1.260: preferred, colored
Changes since revision 1.259.2.2: +7 -5 lines
Sync with head.

Revision 1.265: download - view: text, markup, annotated - select for diffs
Fri Oct 19 11:59:49 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +3 -3 lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.262.4.2: download - view: text, markup, annotated - select for diffs
Thu Oct 18 08:33:06 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.262.4.1: preferred, colored; branchpoint 1.262: preferred, colored; next MAIN 1.263: preferred, colored
Changes since revision 1.262.4.1: +6 -4 lines
sync with head.

Revision 1.264: download - view: text, markup, annotated - select for diffs
Wed Oct 17 17:20:41 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4
Branch point for: bouyer-xenamd64
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +6 -4 lines
Reapply rev 1.262 and add a comment about it.

Revision 1.262.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:08 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +47 -83 lines
sync with head.

Revision 1.263: download - view: text, markup, annotated - select for diffs
Mon Oct 8 16:50:45 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base3, vmlocking-base
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +47 -83 lines
Merge from vmlocking: use mutexes and the softint API.

Revision 1.261.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:47:59 2007 UTC (17 years, 7 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +2 -8 lines
Sync with HEAD.

Revision 1.234.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:34:26 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.3: preferred, colored
Changes since revision 1.234.2.3: +17 -109 lines
sync with head.

Revision 1.261.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:20:18 2007 UTC (17 years, 7 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.261: preferred, colored; next MAIN 1.262: preferred, colored
Changes since revision 1.261: +2 -8 lines
Sync with HEAD.

Revision 1.262: download - view: text, markup, annotated - select for diffs
Thu Aug 16 08:56:49 2007 UTC (17 years, 8 months ago) by martin
Branches: MAIN
CVS tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +2 -8 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 14 21:02:37 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +15 -101 lines
Generic soft interrupts are mandatory.

Revision 1.259.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:43 2007 UTC (17 years, 9 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.259: preferred, colored; next MAIN 1.260: preferred, colored
Changes since revision 1.259: +3 -3 lines
Sync with head.

Revision 1.260: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:35 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: mjf-ufs-trans-base
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 1 21:38:33 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.259.2.1: preferred, colored; branchpoint 1.259: preferred, colored
Changes since revision 1.259.2.1: +54 -144 lines
- Generic soft interrupts are mandatory, remove the kludges.
- Adapt to callout API change.
- Use mutexes.

Revision 1.259.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 17 21:30:58 2007 UTC (17 years, 10 months ago) by ad
Branches: vmlocking
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +7 -45 lines
- 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 - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:29 2007 UTC (18 years, 1 month ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.258: preferred, colored; next MAIN 1.259: preferred, colored
Changes since revision 1.258: +3 -3 lines
Sync with HEAD.

Revision 1.259: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:53 2007 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +3 -3 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.234.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:07 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.2: preferred, colored
Changes since revision 1.234.2.2: +14 -14 lines
sync with head.

Revision 1.251.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:35 2007 UTC (18 years, 3 months ago) by ad
Branches: newlock2
Diff to: previous 1.251.2.1: preferred, colored; branchpoint 1.251: preferred, colored; next MAIN 1.252: preferred, colored
Changes since revision 1.251.2.1: +17 -15 lines
Sync with head.

Revision 1.258: download - view: text, markup, annotated - select for diffs
Wed Jan 10 20:59:10 2007 UTC (18 years, 3 months ago) by cube
Branches: MAIN
CVS tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +14 -14 lines
Make COM_HAYESP compile again.  It assumes no register mapping is needed.

Revision 1.234.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:02 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234.2.1: preferred, colored
Changes since revision 1.234.2.1: +285 -246 lines
sync with head.

Revision 1.251.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:05 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.251.4.1: preferred, colored; branchpoint 1.251: preferred, colored; next MAIN 1.252: preferred, colored
Changes since revision 1.251.4.1: +13 -11 lines
sync with head.

Revision 1.257: download - view: text, markup, annotated - select for diffs
Sun Dec 10 00:33:11 2006 UTC (18 years, 4 months ago) by uwe
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:09 2006 UTC (18 years, 5 months ago) by ad
Branches: newlock2
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +7 -9 lines
Sync with head.

Revision 1.256: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:51 2006 UTC (18 years, 5 months ago) by christos
Branches: 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
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +10 -10 lines
__unused removal on arguments; approved by core.

Revision 1.251.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:44 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +15 -17 lines
sync with head

Revision 1.255: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:00 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +10 -10 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.254: download - view: text, markup, annotated - select for diffs
Sun Oct 1 20:31:50 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +4 -4 lines
More from Matt Fleming:

Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.

Revision 1.253: download - view: text, markup, annotated - select for diffs
Sun Oct 1 19:28:43 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +3 -6 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 24 03:53:08 2006 UTC (18 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +4 -3 lines
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.240.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:01 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.240: preferred, colored; next MAIN 1.241: preferred, colored
Changes since revision 1.240: +334 -244 lines
sync with head

Revision 1.250.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 7 18:19:21 2006 UTC (18 years, 7 months ago) by riz
Branches: abandoned-netbsd-4
Diff to: previous 1.250: preferred, colored; next MAIN 1.251: preferred, colored
Changes since revision 1.250: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 11 15:44:10 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.241.2.3: preferred, colored; branchpoint 1.241: preferred, colored; next MAIN 1.242: preferred, colored
Changes since revision 1.241.2.3: +250 -244 lines
sync with head

Revision 1.251: download - view: text, markup, annotated - select for diffs
Tue Aug 8 10:32:09 2006 UTC (18 years, 8 months ago) by mrg
Branches: 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
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +3 -2 lines
fix a GCC uninitialised variable warning only seen at -O3.

Revision 1.250: download - view: text, markup, annotated - select for diffs
Sat Jul 22 09:59:24 2006 UTC (18 years, 9 months ago) by elad
Branches: MAIN
CVS tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +4 -4 lines
oops, no 'p' here. from xtraeme@.

Revision 1.249: download - view: text, markup, annotated - select for diffs
Sat Jul 22 09:22:21 2006 UTC (18 years, 9 months ago) by elad
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +14 -6 lines
don't call kauth_authorize_generic() when holding a lock, from yamt@.

Revision 1.248: download - view: text, markup, annotated - select for diffs
Fri Jul 21 16:48:48 2006 UTC (18 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +6 -9 lines
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.247: download - view: text, markup, annotated - select for diffs
Thu Jul 13 22:56:02 2006 UTC (18 years, 9 months ago) by gdamore
Branches: MAIN
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +235 -235 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:22 2006 UTC (18 years, 9 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.244.2.5: preferred, colored; branchpoint 1.244: preferred, colored; next MAIN 1.245: preferred, colored
Changes since revision 1.244.2.5: +35 -2 lines
Merge from HEAD.

Revision 1.241.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:51:01 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.241.2.2: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.2.2: +80 -2 lines
sync with head.

Revision 1.246: download - view: text, markup, annotated - select for diffs
Sun Jun 25 14:49:49 2006 UTC (18 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pdpolicy-base6
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +4 -3 lines
Make sure that a powerhook was successfully established before trying to
disestablish it on detach.

Revision 1.245: download - view: text, markup, annotated - select for diffs
Sun Jun 25 00:39:21 2006 UTC (18 years, 10 months ago) by perry
Branches: MAIN
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +34 -2 lines
Add a power hook for the com device.

Revision 1.234.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:53 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +71 -30 lines
sync with head.

Revision 1.243.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:58:13 2006 UTC (18 years, 10 months ago) by chap
Branches: chap-midi
Diff to: previous 1.243: preferred, colored; next MAIN 1.244: preferred, colored
Changes since revision 1.243: +47 -2 lines
Sync with head.

Revision 1.244.2.5: download - view: text, markup, annotated - select for diffs
Sat Jun 17 03:36:12 2006 UTC (18 years, 10 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.244.2.4: preferred, colored; branchpoint 1.244: preferred, colored
Changes since revision 1.244.2.4: +0 -12 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 17 00:30:24 2006 UTC (18 years, 10 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.244.2.3: preferred, colored; branchpoint 1.244: preferred, colored
Changes since revision 1.244.2.3: +14 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 16 03:32:02 2006 UTC (18 years, 10 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.244.2.2: preferred, colored; branchpoint 1.244: preferred, colored
Changes since revision 1.244.2.2: +131 -112 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 15 22:24:15 2006 UTC (18 years, 10 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.244.2.1: preferred, colored; branchpoint 1.244: preferred, colored
Changes since revision 1.244.2.1: +3 -3 lines
Fix a type where comconsregs was defined twice, and comkgdregs was missing.
Thanks to simonb@ Doh!

Revision 1.244.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 15 16:30:26 2006 UTC (18 years, 10 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +215 -238 lines
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 - view: text, markup, annotated - select for diffs
Wed Jun 7 22:33:34 2006 UTC (18 years, 10 months ago) by kardel
Branches: MAIN
CVS tags: gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +47 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:24 2006 UTC (18 years, 10 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.240.4.2: preferred, colored; next MAIN 1.241: preferred, colored
Changes since revision 1.240.4.2: +9 -4 lines
Sync with head.

Revision 1.241.6.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:25 2006 UTC (18 years, 11 months ago) by tron
Branches: peter-altq
Diff to: previous 1.241.6.1: preferred, colored; branchpoint 1.241: preferred, colored; next MAIN 1.242: preferred, colored
Changes since revision 1.241.6.1: +7 -2 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.241.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:41 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.241.2.1: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.2.1: +9 -4 lines
sync with head.

Revision 1.243: download - view: text, markup, annotated - select for diffs
Sun May 14 21:42:27 2006 UTC (18 years, 11 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +9 -4 lines
integrate kauth.

Revision 1.240.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:55 2006 UTC (19 years ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.240.4.1: preferred, colored
Changes since revision 1.240.4.1: +7 -6 lines
Sync with head.

Revision 1.241.4.3: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:38 2006 UTC (19 years ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.241.4.2: preferred, colored; branchpoint 1.241: preferred, colored; next MAIN 1.242: preferred, colored
Changes since revision 1.241.4.2: +5 -4 lines
sync with head.

Revision 1.241.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:06:57 2006 UTC (19 years ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +5 -4 lines
sync with head.

Revision 1.241.6.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:19 2006 UTC (19 years ago) by tron
Branches: peter-altq
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +5 -4 lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.242: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:30 2006 UTC (19 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +5 -4 lines
Use device_unit().

Revision 1.241.4.2: download - view: text, markup, annotated - select for diffs
Fri Mar 10 14:39:01 2006 UTC (19 years, 1 month ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.241.4.1: preferred, colored; branchpoint 1.241: preferred, colored
Changes since revision 1.241.4.1: +4 -4 lines
generic_authorize() -> kauth_authorize_generic().

Revision 1.241.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:44:48 2006 UTC (19 years, 1 month ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +9 -4 lines
Adapt to kernel authorization KPI.

Revision 1.239.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:12 2006 UTC (19 years, 1 month ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.239.2.1: preferred, colored; next MAIN 1.240: preferred, colored
Changes since revision 1.239.2.1: +4 -4 lines
sync with head.

Revision 1.241: download - view: text, markup, annotated - select for diffs
Mon Feb 20 16:50:37 2006 UTC (19 years, 2 months ago) by thorpej
Branches: 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
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +4 -4 lines
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.

Revision 1.240.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 4 14:00:40 2006 UTC (19 years, 2 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +47 -2 lines
Adapt for timecounters and newer PPS API.

Revision 1.239.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:02:48 2006 UTC (19 years, 3 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +3 -3 lines
sync with head.

Revision 1.240: download - view: text, markup, annotated - select for diffs
Sun Jan 8 22:19:59 2006 UTC (19 years, 3 months ago) by dsl
Branches: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Dec 27 00:46:38 2005 UTC (19 years, 4 months ago) by chs
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +2 -13 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:26 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +11 -10 lines
merge ktrace-lwp.

Revision 1.216.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:14 2005 UTC (19 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.216.2.6: preferred, colored; next MAIN 1.217: preferred, colored
Changes since revision 1.216.2.6: +9 -9 lines
Sync with HEAD. Here we go again...

Revision 1.237: download - view: text, markup, annotated - select for diffs
Sun Nov 6 21:34:37 2005 UTC (19 years, 5 months ago) by dsl
Branches: MAIN
CVS tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 6 21:40:39 2005 UTC (19 years, 7 months ago) by kleink
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, thorpej-vnode-attr-base, thorpej-vnode-attr
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 4 09:48:53 2005 UTC (19 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +4 -4 lines
Make COM_DEBUG compile again in the wake of -Wwrite-strings;
from Nicolas Joly in PR kern/31141.

Revision 1.234: download - view: text, markup, annotated - select for diffs
Tue Jun 21 14:01:11 2005 UTC (19 years, 10 months ago) by ws
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +4 -3 lines
PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.

Revision 1.233: download - view: text, markup, annotated - select for diffs
Sun Jun 12 21:10:47 2005 UTC (19 years, 10 months ago) by tls
Branches: MAIN
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:49 2005 UTC (20 years ago) by kent
Branches: kent-audio2
Diff to: previous 1.231: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231: +36 -36 lines
sync with -current

Revision 1.231.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:02 2005 UTC (20 years, 1 month ago) by yamt
Branches: yamt-km
Diff to: previous 1.231: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231: +36 -36 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.216.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:27 2005 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.216.2.5: preferred, colored
Changes since revision 1.216.2.5: +37 -37 lines
Sync with HEAD.

Hi Perry!

Revision 1.232: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:01 2005 UTC (20 years, 2 months ago) by perry
Branches: 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
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +36 -36 lines
nuke trailing whitespace

Revision 1.216.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:27:54 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.216.2.4: preferred, colored
Changes since revision 1.216.2.4: +11 -10 lines
Fix the sync with head I botched.

Revision 1.216.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:45:57 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.216.2.3: preferred, colored
Changes since revision 1.216.2.3: +10 -11 lines
Sync with HEAD.

Revision 1.216.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 12 11:41:23 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.216.2.2: preferred, colored
Changes since revision 1.216.2.2: +3 -2 lines
Sync with HEAD.

Revision 1.231: download - view: text, markup, annotated - select for diffs
Mon Aug 9 16:57:14 2004 UTC (20 years, 8 months ago) by mycroft
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +3 -2 lines
Do an extra read of the IIR during initialization, just to ack any pending
interrupt.

Revision 1.216.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:12 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.216.2.1: preferred, colored
Changes since revision 1.216.2.1: +91 -83 lines
Sync with HEAD

Revision 1.224.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 5 21:57:45 2004 UTC (20 years, 9 months ago) by he
Branches: 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
Diff to: previous 1.224.2.1: preferred, colored; branchpoint 1.224: preferred, colored; next MAIN 1.225: preferred, colored
Changes since revision 1.224.2.1: +15 -37 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 4 09:46:44 2004 UTC (20 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +3 -4 lines
Back off the trigger level a little.  Testing shows that it's not terribly
reliable at 14.

Revision 1.229: download - view: text, markup, annotated - select for diffs
Sun Jul 4 09:28:05 2004 UTC (20 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +8 -12 lines
Minor simplification.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Sun Jul 4 08:09:03 2004 UTC (20 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +9 -26 lines
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 - view: text, markup, annotated - select for diffs
Sat May 1 19:03:59 2004 UTC (20 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +10 -5 lines
Rename the COM16650 option to COM_16650, for consistency with other
com variant options.

Revision 1.226: download - view: text, markup, annotated - select for diffs
Sat May 1 06:12:18 2004 UTC (20 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +3 -3 lines
Wait just a little longer for console output to finish when we're
attaching the console uart.

Revision 1.196.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 6 07:59:18 2004 UTC (21 years ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196: +18 -6 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 6 04:01:40 2004 UTC (21 years ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +18 -6 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 5 22:33:08 2004 UTC (21 years ago) by enami
Branches: MAIN
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +18 -6 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 23 05:01:19 2004 UTC (21 years, 3 months ago) by simonb
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +35 -17 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 12 06:27:59 2003 UTC (21 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +3 -3 lines
Use just "type" and not "sc->sc_type" in cominit().

Pointed out by Shoichi Miyake in private mail.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Sat Nov 8 02:54:47 2003 UTC (21 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +3 -3 lines
Make comsoft_callout static; it's not referenced outside this file.

Revision 1.221: download - view: text, markup, annotated - select for diffs
Thu Nov 6 23:02:27 2003 UTC (21 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +6 -6 lines
Be consistent with other COM_TYPE_PXA2x0 checks.

Revision 1.220: download - view: text, markup, annotated - select for diffs
Thu Nov 6 22:30:09 2003 UTC (21 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +2 -3 lines
White space nit.

Revision 1.219: download - view: text, markup, annotated - select for diffs
Wed Sep 3 13:05:50 2003 UTC (21 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +3 -3 lines
Add missing semicolon.

Revision 1.218: download - view: text, markup, annotated - select for diffs
Mon Sep 1 16:44:03 2003 UTC (21 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +13 -13 lines
fix debugging printfs

Revision 1.217: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:31:00 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +3 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:04 2003 UTC (21 years, 9 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +11 -10 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:10 2003 UTC (21 years, 10 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +10 -11 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 14:09:21 2003 UTC (21 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +3 -3 lines
Restore parentheses around return value that were removed with the
previous commit.

Revision 1.214: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:34 2003 UTC (21 years, 10 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +11 -10 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 23 11:01:57 2003 UTC (21 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +4 -2 lines
Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.212: download - view: text, markup, annotated - select for diffs
Wed Jun 18 04:35:23 2003 UTC (21 years, 10 months ago) by bsh
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +7 -2 lines
in cominit(), turn on UUE bit in IER register if it is PXA2x0's
built-in UART.

Revision 1.211: download - view: text, markup, annotated - select for diffs
Sun Jun 15 01:34:34 2003 UTC (21 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +6 -4 lines
Wrap some long lines.

Revision 1.210: download - view: text, markup, annotated - select for diffs
Sat Jun 14 17:01:06 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +15 -13 lines
Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Sat Jun 14 16:25:52 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +19 -19 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 5 13:40:38 2003 UTC (21 years, 10 months ago) by scw
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +76 -14 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 15:10:08 2003 UTC (21 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 28 02:46:09 2003 UTC (22 years ago) by briggs
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +27 -16 lines
Allow the console to be used for kgdb if both DDB and KGDB are defined.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Mon Apr 21 03:43:18 2003 UTC (22 years ago) by gson
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +9 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 14 02:21:01 2003 UTC (22 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +5 -6 lines
Fix some white-space niggles.

Revision 1.203: download - view: text, markup, annotated - select for diffs
Thu Mar 6 00:38:27 2003 UTC (22 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +3 -3 lines
Add cn_halt and cn_flush entries to consdevs.  (needed for dma-only console
devices).

Revision 1.202: download - view: text, markup, annotated - select for diffs
Fri Jan 31 00:26:28 2003 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +11 -11 lines
Use aprint_*().

Revision 1.183.2.11: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:09:20 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.183.2.10: preferred, colored; branchpoint 1.183: preferred, colored; next MAIN 1.184: preferred, colored
Changes since revision 1.183.2.10: +3 -3 lines
Catch up to -current

Revision 1.201: download - view: text, markup, annotated - select for diffs
Thu Nov 7 08:07:26 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +4 -4 lines
Fix signed/unsigned comparison warnings.

Revision 1.200: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:13:15 2002 UTC (22 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 10 18:38:53 2002 UTC (22 years, 6 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.186.2.5: preferred, colored; next MAIN 1.187: preferred, colored
Changes since revision 1.186.2.5: +18 -11 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 17 21:19:43 2002 UTC (22 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.9: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.9: +16 -9 lines
Catch up to -current.

Revision 1.199: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 7 months ago) by gehenna
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +18 -11 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 6 08:44:13 2002 UTC (22 years, 7 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.186.2.4: preferred, colored
Changes since revision 1.186.2.4: +94 -184 lines
sync kqueue branch with HEAD

Revision 1.196.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:26 2002 UTC (22 years, 8 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.196.2.1: preferred, colored; branchpoint 1.196: preferred, colored; next MAIN 1.197: preferred, colored
Changes since revision 1.196.2.1: +97 -187 lines
catch up with -current.

Revision 1.183.2.9: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:44:40 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.8: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.8: +92 -182 lines
Catch up to -current.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Mon Jul 29 05:57:16 2002 UTC (22 years, 9 months ago) by simonb
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +3 -3 lines
Don't name parameters in a function declaration.

Revision 1.197: download - view: text, markup, annotated - select for diffs
Mon Jul 29 05:54:09 2002 UTC (22 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +94 -184 lines
ANSIfy, KNF.

Revision 1.186.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:46:16 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.186.2.3: preferred, colored
Changes since revision 1.186.2.3: +15 -6 lines
catch up with -current on kqueue branch

Revision 1.196.2.1: download - view: text, markup, annotated - select for diffs
Thu May 16 12:18:37 2002 UTC (22 years, 11 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +18 -11 lines
Add the character device switch.
Replace the access to devsw table with calling devsw API.

Revision 1.183.2.8: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:05:34 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.7: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.7: +10 -3 lines
Catch up to -current.

Revision 1.196: download - view: text, markup, annotated - select for diffs
Sat Apr 13 17:05:16 2002 UTC (23 years ago) by christos
Branches: 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
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +11 -2 lines
PR/16058: Tero Kivinen: Don't free rbuf or detach tty if rbuf allocation
failed during attach phase.

Revision 1.195: download - view: text, markup, annotated - select for diffs
Fri Apr 12 19:32:30 2002 UTC (23 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +3 -3 lines
* 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 - view: text, markup, annotated - select for diffs
Mon Apr 1 07:45:19 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.6: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.6: +5 -5 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.194: download - view: text, markup, annotated - select for diffs
Sun Mar 17 19:40:57 2002 UTC (23 years, 1 month ago) by atatat
Branches: MAIN
CVS tags: eeh-devprop-base, eeh-devprop
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 10 19:54:19 2002 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.186.2.2: preferred, colored
Changes since revision 1.186.2.2: +18 -6 lines
Sync kqueue branch with -current.

Revision 1.183.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:29:38 2002 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.5: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.5: +2 -4 lines
Catch up to -current.

Revision 1.193: download - view: text, markup, annotated - select for diffs
Tue Nov 20 08:43:45 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +2 -3 lines
- 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 - view: text, markup, annotated - select for diffs
Thu Nov 15 09:48:06 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +2 -3 lines
don't need <sys/types.h> when including <sys/param.h>

Revision 1.183.2.5: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:14:19 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.4: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.4: +11 -1 lines
Catch up to -current.

Revision 1.191: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:14:36 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +4 -1 lines
add/cleanup RCSID

Revision 1.189.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:18:00 2001 UTC (23 years, 5 months ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.189: preferred, colored; next MAIN 1.190: preferred, colored
Changes since revision 1.189: +8 -1 lines
Sync the thorpej-mips-cache branch with -current.

Revision 1.190: download - view: text, markup, annotated - select for diffs
Mon Nov 5 21:39:24 2001 UTC (23 years, 5 months ago) by fvdl
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +8 -1 lines
Initialize the cn_magic goo for kgdb (bah, that should really not
be necessary).

Revision 1.188.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 13 17:42:46 2001 UTC (23 years, 6 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.188.2.4: preferred, colored; branchpoint 1.188: preferred, colored; next MAIN 1.189: preferred, colored
Changes since revision 1.188.2.4: +11 -15 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 1 12:45:31 2001 UTC (23 years, 6 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.188.2.3: preferred, colored; branchpoint 1.188: preferred, colored
Changes since revision 1.188.2.3: +8 -4 lines
Catch up with -current.

Revision 1.188.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:11 2001 UTC (23 years, 7 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.188.2.2: preferred, colored; branchpoint 1.188: preferred, colored
Changes since revision 1.188.2.2: +57 -26 lines
* 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 - view: text, markup, annotated - select for diffs
Fri Sep 21 22:35:35 2001 UTC (23 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.3: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.3: +43 -10 lines
Catch up to -current.

Revision 1.188.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 18 19:13:50 2001 UTC (23 years, 7 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.188.2.1: preferred, colored; branchpoint 1.188: preferred, colored
Changes since revision 1.188.2.1: +8 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 17 02:47:13 2001 UTC (23 years, 7 months ago) by briggs
Branches: MAIN
CVS tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +8 -4 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 13 01:15:37 2001 UTC (23 years, 7 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.186.2.1: preferred, colored
Changes since revision 1.186.2.1: +32 -2 lines
Update the kqueue branch to HEAD.

Revision 1.188.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:25 2001 UTC (23 years, 7 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +35 -31 lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 27 14:27:01 2001 UTC (23 years, 8 months ago) by enami
Branches: MAIN
CVS tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +32 -2 lines
For hayes esp card, set prescaler if specified rate is grater than 115200.

Revision 1.186.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 25 06:16:14 2001 UTC (23 years, 8 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +5 -6 lines
Merge Aug 24 -current into the kqueue branch.

Revision 1.183.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:19 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.2: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.2: +59 -77 lines
Catch up with -current.

Revision 1.187: download - view: text, markup, annotated - select for diffs
Wed Aug 22 12:44:10 2001 UTC (23 years, 8 months ago) by simonb
Branches: MAIN
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +5 -6 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 21 20:02:20 2001 UTC (23 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183.2.1: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.1: +18 -2 lines
Catch up to -current.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Wed Jun 20 03:07:25 2001 UTC (23 years, 10 months ago) by uwe
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +59 -77 lines
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 - view: text, markup, annotated - select for diffs
Wed May 30 15:24:23 2001 UTC (23 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +3 -2 lines
add missing   #include "opt_kgdb.h"

Revision 1.184: download - view: text, markup, annotated - select for diffs
Wed May 2 10:32:09 2001 UTC (23 years, 11 months ago) by scw
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +16 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 5 22:49:34 2001 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +3 -1 lines
Initial commit of scheduler activations and lightweight process support.

Revision 1.162.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:17 2001 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.162.2.2: preferred, colored; branchpoint 1.162: preferred, colored; next MAIN 1.163: preferred, colored
Changes since revision 1.162.2.2: +8 -8 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.183: download - view: text, markup, annotated - select for diffs
Sun Jan 14 23:50:28 2001 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +9 -9 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 22 16:03:15 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.162.2.1: preferred, colored; branchpoint 1.162: preferred, colored
Changes since revision 1.162.2.1: +13 -11 lines
Sync with HEAD.

Revision 1.162.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:40:26 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +213 -92 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 18 15:46:23 2000 UTC (24 years, 5 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +3 -1 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 1 23:54:57 2000 UTC (24 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +11 -11 lines
Adapt to the new line discipline scheme.

Revision 1.180: download - view: text, markup, annotated - select for diffs
Tue Sep 26 14:12:42 2000 UTC (24 years, 7 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +2 -2 lines
Add missing '&& defined(COM_MPLOCK)'

Revision 1.179: download - view: text, markup, annotated - select for diffs
Sat Sep 23 17:17:12 2000 UTC (24 years, 7 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +54 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 22 14:46:38 2000 UTC (24 years, 7 months ago) by eeh
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +11 -13 lines
paddr_t -> bus_addr_t.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Thu Sep 21 23:27:32 2000 UTC (24 years, 7 months ago) by eeh
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +26 -19 lines
Support for SPARC machines with `su' devices.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Sun Sep 17 22:07:39 2000 UTC (24 years, 7 months ago) by toshii
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +3 -2 lines
Change tiocm_to_{com,zs}'s second argument to u_long to match with
the type in their caller.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Fri Aug 18 13:22:39 2000 UTC (24 years, 8 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +5 -1 lines
Avoid calling tsleep when running above splhigh()

Revision 1.174: download - view: text, markup, annotated - select for diffs
Thu Aug 3 00:30:47 2000 UTC (24 years, 8 months ago) by jeffs
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +59 -1 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 6 01:47:36 2000 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +14 -17 lines
Use device_lookup().

Revision 1.172: download - view: text, markup, annotated - select for diffs
Wed May 3 19:19:04 2000 UTC (24 years, 11 months ago) by thorpej
Branches: 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
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +2 -2 lines
Remove unnecessary junk on #undef line that some C preprocessors
get cranky about.

Revision 1.171: download - view: text, markup, annotated - select for diffs
Thu Mar 30 02:04:30 2000 UTC (25 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +1 -2 lines
Delete redundant decl of com_attach_subr(), it's in comvar.h.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Thu Mar 23 07:01:29 2000 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +10 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 6 21:36:12 2000 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Tue Feb 8 22:14:27 2000 UTC (25 years, 2 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.159.2.3: preferred, colored; branchpoint 1.159: preferred, colored; next MAIN 1.160: preferred, colored
Changes since revision 1.159.2.3: +41 -41 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 7 02:17:18 2000 UTC (25 years, 2 months ago) by jonathan
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 6 23:23:37 2000 UTC (25 years, 2 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +42 -42 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 23 21:06:01 2000 UTC (25 years, 3 months ago) by soda
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +5 -1 lines
kluge to make this work with NEC M403 (arc/magnum).

Revision 1.159.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 20 23:24:39 2000 UTC (25 years, 3 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.159.2.2: preferred, colored; branchpoint 1.159: preferred, colored
Changes since revision 1.159.2.2: +7 -14 lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 5 23:44:41 2000 UTC (25 years, 3 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.159.2.1: preferred, colored; branchpoint 1.159: preferred, colored
Changes since revision 1.159.2.1: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:45 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.161: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161: +10 -16 lines
Pull up to last week's -current.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Tue Dec 21 11:04:36 1999 UTC (25 years, 4 months ago) by drochner
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +3 -3 lines
set carrier early if used as console or kgdb line, fixes PR kern/6547
by Andreas Gustafsson, gson@iengines.com

Revision 1.164: download - view: text, markup, annotated - select for diffs
Mon Nov 22 03:53:38 1999 UTC (25 years, 5 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +2 -1 lines
defopt COM_DEBUG, COM_HAYESP, and COM16650

Revision 1.162.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:40:28 1999 UTC (25 years, 5 months ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.162: preferred, colored; next MAIN 1.163: preferred, colored
Changes since revision 1.162: +7 -12 lines
Sync with -current

Revision 1.163: download - view: text, markup, annotated - select for diffs
Thu Nov 4 05:33:58 1999 UTC (25 years, 5 months ago) by jonathan
Branches: MAIN
CVS tags: fvdl-softdep-base
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +7 -12 lines
Update user-level PPS-API to match -05 draft.
Change PPS_<xxx> ioctls to PPS_IOC_<xxx>.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Fri Oct 15 06:16:15 1999 UTC (25 years, 6 months ago) by jonathan
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +1 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 21 01:17:42 1999 UTC (25 years, 10 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.159.2.1: preferred, colored; next MAIN 1.159.2.2: preferred, colored
Changes since revision 1.159.2.1: +0 -0 lines
Sync w/ -current.

Revision 1.159.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 19 20:37:57 1999 UTC (26 years ago) by perry
Branches: 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
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +12 -11 lines
pullup 1.159->1.161 -- requested by ross. apparently fixes critical bugs on
a number of ports.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Mon Apr 19 19:27:31 1999 UTC (26 years ago) by ross
Branches: MAIN
CVS tags: chs-ubc2-base
Branch point for: wrstuden-devbsize
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun Apr 18 22:02:47 1999 UTC (26 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +13 -12 lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 31 12:44:04 1999 UTC (26 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +12 -13 lines
back date this file to version 1.155 which works on the shark.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Mon Mar 29 13:40:41 1999 UTC (26 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -6 lines
Nuke bogus extra variable, too.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Mon Mar 29 13:21:15 1999 UTC (26 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +4 -11 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 29 10:01:39 1999 UTC (26 years, 1 month ago) by ross
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +19 -8 lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 28 17:10:52 1999 UTC (26 years, 2 months ago) by explorer
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +2 -2 lines
Update to slightly altered rnd_attach_source() api

Revision 1.154: download - view: text, markup, annotated - select for diffs
Fri Feb 12 12:45:48 1999 UTC (26 years, 2 months ago) by drochner
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 3 23:57:27 1999 UTC (26 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +77 -48 lines
Separate the tiocm code into functions, like the z8530 code, and fix the same
DTR bug.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Wed Feb 3 23:22:11 1999 UTC (26 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +2 -1 lines
Fix an inconsistency: PPS was turned off on first open, but the mode may have
still claimed it was enabled.

Revision 1.151: download - view: text, markup, annotated - select for diffs
Wed Feb 3 23:20:33 1999 UTC (26 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +21 -37 lines
Slight redux in PPS code.

Revision 1.150: download - view: text, markup, annotated - select for diffs
Tue Jan 26 17:08:37 1999 UTC (26 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +2 -2 lines
Debugger() -> console_debugger() to honour the ddb_fromconsole sysctl

Revision 1.149: download - view: text, markup, annotated - select for diffs
Wed Nov 18 23:58:52 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +107 -6 lines
Add support for detaching "com" instances.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Wed Sep 16 21:30:58 1998 UTC (26 years, 7 months ago) by is
Branches: MAIN
CVS tags: chs-ubc-base, chs-ubc
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +2 -3 lines
Garbage collect unused 3rd parameter to comprobe1().

Revision 1.147: download - view: text, markup, annotated - select for diffs
Wed Sep 9 05:17:53 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +12 -5 lines
Don't use M_WAITOK to allocate the ring buffer; we could be in interrupt
context.  Reported by Lennart Augustsson.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Sat Aug 15 17:47:16 1998 UTC (26 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +21 -18 lines
Assign my copyrights to TNF.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Sat Jul 4 22:18:50 1998 UTC (26 years, 9 months ago) by jonathan
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +3 -1 lines
defopt DDB.

Revision 1.144: download - view: text, markup, annotated - select for diffs
Wed Jun 10 12:06:23 1998 UTC (26 years, 10 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +186 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue May 5 08:33:30 1998 UTC (26 years, 11 months ago) by mycroft
Branches: 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
Diff to: previous 1.118.2.4: preferred, colored; branchpoint 1.118: preferred, colored; next MAIN 1.119: preferred, colored
Changes since revision 1.118.2.4: +20 -16 lines
Pull up 1.136-1.138, per request of scottr.

Revision 1.143: download - view: text, markup, annotated - select for diffs
Sun Mar 22 00:55:37 1998 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +16 -19 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 21 04:27:58 1998 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3 lines
Remove a bogus initializer.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Sat Mar 21 04:05:49 1998 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +73 -74 lines
Replace TS_WOPEN with t_wopen, per mail on tech-kern.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Wed Feb 25 08:32:35 1998 UTC (27 years, 2 months ago) by ross
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +6 -1 lines
Add dummy }} after comsoft() to keep ctags(1) bashing on.

Revision 1.139: download - view: text, markup, annotated - select for diffs
Sun Feb 22 05:09:58 1998 UTC (27 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +31 -18 lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 22 03:24:58 1998 UTC (27 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -1 lines
Fix bonehead error in previous change.

Revision 1.137: download - view: text, markup, annotated - select for diffs
Thu Feb 19 09:33:33 1998 UTC (27 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +1 -2 lines
Remove stray label from last change.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Thu Feb 19 09:23:38 1998 UTC (27 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +19 -16 lines
Arrange to call com_break() and com_modem() at splserial().
It's simpler this way.  Really.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Mon Feb 9 10:22:45 1998 UTC (27 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +6 -17 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 6 03:25:34 1998 UTC (27 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -1 lines
Restore system priority level before return from comopen().

Revision 1.133: download - view: text, markup, annotated - select for diffs
Mon Feb 2 23:01:02 1998 UTC (27 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +8 -8 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 2 22:54:55 1998 UTC (27 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 1 23:33:01 1998 UTC (27 years, 2 months ago) by marc
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +135 -32 lines
 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 - view: text, markup, annotated - select for diffs
Mon Jan 12 09:23:19 1998 UTC (27 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +2 -5 lines
Adjust for config changes.

Revision 1.118.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 17 15:37:16 1997 UTC (27 years, 4 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Diff to: previous 1.118.2.3: preferred, colored; branchpoint 1.118: preferred, colored
Changes since revision 1.118.2.3: +12 -1 lines
Pull rev 1.129 up from trunk (mycroft)

Revision 1.129: download - view: text, markup, annotated - select for diffs
Tue Dec 16 22:52:37 1997 UTC (27 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +12 -1 lines
Don't do anything in comparam() if the line speed and flags are the same.

Revision 1.118.2.3: download - view: text, markup, annotated - select for diffs
Tue Nov 4 23:18:31 1997 UTC (27 years, 5 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-BETA
Diff to: previous 1.118.2.2: preferred, colored; branchpoint 1.118: preferred, colored
Changes since revision 1.118.2.2: +183 -149 lines
Pull up rev 1.120 through 1.128 (mycroft)

Revision 1.128: download - view: text, markup, annotated - select for diffs
Mon Nov 3 08:20:35 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +8 -8 lines
Slight optimization in soft input routine.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Mon Nov 3 06:12:02 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +133 -109 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 2 09:31:49 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +7 -7 lines
Slight code rearrangement.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Sun Nov 2 09:24:51 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +7 -7 lines
Slight code rearrangement.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Nov 2 09:15:41 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +14 -18 lines
Rearrange *param() slightly to eliminate a spl.
Also fix another comment regarding DTR.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun Nov 2 08:55:52 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +3 -1 lines
Add another splserial()/splzs().

Revision 1.122: download - view: text, markup, annotated - select for diffs
Sun Nov 2 08:50:33 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +7 -6 lines
Minimize some spl regions slightly.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Sat Nov 1 20:40:38 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +4 -3 lines
Correct a comment regarding our behaviour with DTR.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Sat Nov 1 20:31:57 1997 UTC (27 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +23 -13 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 30 23:22:55 1997 UTC (27 years, 6 months ago) by mellon
Branches: netbsd-1-3
Diff to: previous 1.118.2.1: preferred, colored; branchpoint 1.118: preferred, colored
Changes since revision 1.118.2.1: +1887 -0 lines
Pull rev 1.119 up from trunk (drochner)

Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Oct 29 18:28:07 1997 UTC (27 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +8 -7 lines
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 (27 years, 6 months ago) by mellon
Branches: netbsd-1-3
FILE REMOVED
Changes since revision 1.118: +0 -1886 lines
file com.c was added on branch netbsd-1-3 on 1997-10-30 23:22:55 +0000

Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue Oct 21 01:25:41 1997 UTC (27 years, 6 months ago) by fvdl
Branches: MAIN
CVS tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +9 -2 lines
Make 16650 probe optional on COM16650 define. It breaks on some
multiport Startech chips.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sun Oct 19 20:01:08 1997 UTC (27 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +5 -1 lines
Initialize the IER to 0 in com_attach_subr().

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sun Oct 19 14:26:16 1997 UTC (27 years, 6 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +46 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 19 11:45:33 1997 UTC (27 years, 6 months ago) by explorer
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +17 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 18 23:11:45 1997 UTC (27 years, 6 months ago) by is
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -2 lines
Use long long in bitrate tolerance computation, else we'll overflow for
higher than standard-pc chip clocks.

Revision 1.113.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 16 00:04:07 1997 UTC (27 years, 6 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.113.2.1: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.2.1: +1817 -0 lines
Sync w/ trunk.

Revision 1.113.2.1
Thu Oct 16 00:01:00 1997 UTC (27 years, 6 months ago) by thorpej
Branches: marc-pcmcia
FILE REMOVED
Changes since revision 1.113: +0 -1817 lines
file com.c was added on branch marc-pcmcia on 1997-10-16 00:04:07 +0000

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Oct 16 00:01:00 1997 UTC (27 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: marc-pcmcia-base
Branch point for: marc-pcmcia
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3 lines
"com" driver files copied by repository copy magick to sys/dev/ic, and
adjusted for their new home.

Revision 1.102.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:23:19 1997 UTC (27 years, 6 months ago) by thorpej
Diff to: previous 1.102.2.3: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.2.3: +51 -3 lines
Update marc-pcmcia branch from trunk.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Fri Oct 3 06:11:35 1997 UTC (27 years, 6 months ago) by mikel
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +2 -2 lines
fix missing com_kgdb_attached() argdecl, from Michael C. Richardson in PR 4196

Revision 1.111: download - view: text, markup, annotated - select for diffs
Tue Sep 30 21:51:43 1997 UTC (27 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +50 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 22 06:33:09 1997 UTC (27 years, 7 months ago) by thorpej
Diff to: previous 1.102.2.2: preferred, colored
Changes since revision 1.102.2.2: +37 -34 lines
Update marc-pcmcia branch from trunk.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Fri Sep 19 01:17:37 1997 UTC (27 years, 7 months ago) by enami
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +23 -20 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 16 20:34:23 1997 UTC (27 years, 7 months ago) by is
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +15 -15 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 27 23:31:26 1997 UTC (27 years, 8 months ago) by thorpej
Diff to: previous 1.102.2.1: preferred, colored
Changes since revision 1.102.2.1: +163 -143 lines
Update marc-pcmcia branch from trunk.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Wed Aug 27 18:00:13 1997 UTC (27 years, 8 months ago) by is
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -2 lines
Make this work with __GENERIC_SOFT_INTERRUPTS.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Sun Aug 24 09:40:16 1997 UTC (27 years, 8 months ago) by drochner
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +4 -1 lines
Check for KGDB port == console port in a consistent way.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Sat Aug 23 14:01:32 1997 UTC (27 years, 8 months ago) by drochner
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +158 -142 lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 23 07:13:13 1997 UTC (27 years, 8 months ago) by thorpej
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +53 -61 lines
Update marc-pcmcia branch from trunk.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Sat Aug 16 08:33:10 1997 UTC (27 years, 8 months ago) by drochner
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -1 lines
Bring back the "comconsattached" flag. It is necessary for starred
com devices (on non "__BROKEN_INDIRECT_CONFIG" ISA).

Revision 1.104: download - view: text, markup, annotated - select for diffs
Thu Aug 14 16:15:15 1997 UTC (27 years, 8 months ago) by drochner
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +33 -29 lines
-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 - view: text, markup, annotated - select for diffs
Tue Aug 12 17:25:43 1997 UTC (27 years, 8 months ago) by drochner
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +31 -46 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 5 20:52:40 1997 UTC (27 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +137 -53 lines
Add support for remote serial KGDB.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Sun Jun 15 11:18:59 1997 UTC (27 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +124 -57 lines
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 - view: text, markup, annotated - select for diffs
Mon May 26 14:54:46 1997 UTC (27 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +1 -2 lines
Remove unneeded call to comstop() in commsrint().  This fixes a problem
where the driver would sometimes retransmit bytes.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Apr 4 20:56:34 1997 UTC (28 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +890 -751 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 4 20:49:49 1997 UTC (28 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +16 -14 lines
comdefaultrate -> comconsrate
comconsbah -> comconsioh
Only use comconsrate on the console.

Revision 1.82.4.3: download - view: text, markup, annotated - select for diffs
Sun Feb 16 04:52:10 1997 UTC (28 years, 2 months ago) by rat
Diff to: previous 1.82.4.2: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.4.2: +2 -2 lines
Patch supplied by Charles Hannmum.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Jan 30 19:42:33 1997 UTC (28 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +1 -2 lines
don't clobber IER in cominit().  (suggested by mycroft.)

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Dec 14 10:46:38 1996 UTC (28 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +7 -19 lines
If attaching the console, reinitialize it immediately.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Dec 14 08:56:23 1996 UTC (28 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +2 -2 lines
Turn off the baud rate changing optimization.

Revision 1.82.4.2: download - view: text, markup, annotated - select for diffs
Tue Dec 10 06:30:03 1996 UTC (28 years, 4 months ago) by mycroft
Diff to: previous 1.82.4.1: preferred, colored
Changes since revision 1.82.4.1: +5 -2 lines
From trunk:
Set serial port parameters sanely for a serial console.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Dec 5 01:25:38 1996 UTC (28 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +11 -2 lines
update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Nov 13 19:41:35 1996 UTC (28 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +1 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 22 00:45:25 1996 UTC (28 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +2 -2 lines
add missing argument to bus_space_map in ESP code

Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Oct 21 22:40:30 1996 UTC (28 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +149 -147 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 13 01:37:38 1996 UTC (28 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +19 -19 lines
backout kprintf changes

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Oct 10 22:04:53 1996 UTC (28 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +19 -19 lines
printf -> kprintf, sprintf -> ksprintf

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Oct 6 01:52:26 1996 UTC (28 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +36 -20 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 6 01:46:04 1996 UTC (28 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +5 -2 lines
Serial console changes:
* Enable FIFO with trigger level 1.
* Set DTR and RTS so terminals are happy.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Sep 5 16:42:32 1996 UTC (28 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -6 lines
compoll() -> comsoft()

Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Sep 2 06:44:47 1996 UTC (28 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -3 lines
tty stop functions really should return void, not int, and certainly not both.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Jul 10 18:14:04 1996 UTC (28 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -1 lines
move DDB-only label inside an #ifdef, so that -Wall works

Revision 1.82.4.1: download - view: text, markup, annotated - select for diffs
Sun Jun 2 09:08:00 1996 UTC (28 years, 10 months ago) by mrg
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -3 lines
pull up tty stats "bug fix".

Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu May 30 18:24:09 1996 UTC (28 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -3 lines
add tty_attach() where appropriate.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun May 12 23:52:00 1996 UTC (28 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -6 lines
Use intr.h.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun May 5 19:50:44 1996 UTC (28 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +1 -2 lines
Move comintr() prototype to comvar.h; needed by the multi-port cards.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon Apr 29 20:03:00 1996 UTC (29 years ago) by christos
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +32 -20 lines
- prototype fixes

Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Apr 15 18:54:31 1996 UTC (29 years ago) by cgd
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 11 22:28:31 1996 UTC (29 years ago) by cgd
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +17 -5 lines
update for addition of a machine-dependent cookie as the first argument
to isa_intr_{,dis}establish().

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Mar 17 13:38:14 1996 UTC (29 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +29 -8 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 17 00:53:10 1996 UTC (29 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +37 -15 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 10 09:01:24 1996 UTC (29 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +268 -141 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 9 01:02:08 1996 UTC (29 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -1 lines
include comvar.h for comprobe1() prototype

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Feb 26 22:48:32 1996 UTC (29 years, 2 months ago) by scottr
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -2 lines
Fix typo (PR 2123, from Michael VanLoon)

Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Feb 20 12:13:09 1996 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +21 -8 lines
Add more debugging code.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Feb 19 15:23:25 1996 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -2 lines
Update copyright notice.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Feb 19 15:09:25 1996 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +7 -7 lines
Set IER_ETXRDY before outputting any bytes, to prevent race condition.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Feb 19 14:53:03 1996 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +64 -19 lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 18 09:10:15 1996 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -5 lines
Fix a race condition where we might stop outputting if a write follows a
flush too closely.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Feb 17 04:51:41 1996 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +6 -2 lines
Add some text describing the UART lossage worked around in the previous.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Feb 17 04:04:28 1996 UTC (29 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +47 -14 lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 10 20:23:18 1996 UTC (29 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +81 -68 lines
Hayes ESP patches [from PR database]

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Jan 14 23:44:34 1996 UTC (29 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +125 -6 lines
Hayes ESP support from Michael Van Loon, with minor cleanups. Tested on
a single port ESP card; works great!

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Dec 24 02:31:15 1995 UTC (29 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 15 19:43:04 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +189 -159 lines
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 - view: text, markup, annotated - select for diffs
Tue Jul 4 06:47:18 1995 UTC (29 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +15 -10 lines
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 - view: text, markup, annotated - select for diffs
Wed Jun 28 04:31:28 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -2 lines
note that most of dev/ic's contents have changed names

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Jun 5 19:08:09 1995 UTC (29 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +14 -16 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 4 20:50:14 1995 UTC (29 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +9 -7 lines
Handle BREAK correctly when not entering DDB.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Jun 4 20:39:22 1995 UTC (29 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +182 -129 lines
Add an input FIFO, and fix several flow control problems.  Based on code from
Felix A. Croes.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Jun 1 21:26:51 1995 UTC (29 years, 11 months ago) by jtc
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
Changed ns82450 to ns8250 and dropped ns82550 from probe console messages.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun May 28 03:26:37 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +47 -56 lines
Only use the `no pending interrupt' bit in the IIR; the other bits
are too unreliable on clone chips.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri May 12 17:54:41 1995 UTC (29 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +8 -6 lines
(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 - view: text, markup, annotated - select for diffs
Fri Apr 28 00:34:08 1995 UTC (30 years ago) by hpeyerl
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +5 -1 lines
<break> --> ddb if defined(comconsole).
(if you have a serial console and you hit break, you get ddb).

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Apr 19 22:04:33 1995 UTC (30 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +8 -4 lines
Fix thinko in previous change.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Apr 19 19:12:53 1995 UTC (30 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -3 lines
Garbage collect #includes.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Apr 19 18:59:27 1995 UTC (30 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +23 -17 lines
Implement comtty().

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Apr 17 12:08:44 1995 UTC (30 years ago) by cgd
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +10 -12 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 10 01:05:55 1995 UTC (30 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -3 lines
Most of the console functions return void.  Also change interrupt logic
slightly.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Jan 29 07:36:54 1995 UTC (30 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 29 02:58:20 1995 UTC (30 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
use chip headers in /dev/ic

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Jan 11 09:56:40 1995 UTC (30 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
Explicitly test the RXRDY status bit on incoming characters.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Jan 4 00:47:56 1995 UTC (30 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -2 lines
Fix oversight in previous.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Jan 3 01:30:28 1995 UTC (30 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
Add interrupt sharing types.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Nov 25 08:17:21 1994 UTC (30 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2 lines
Minor update for new autoconfig.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Nov 18 22:03:02 1994 UTC (30 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +18 -18 lines
Convert port, IRQ, and DRQ numbers to ints.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Nov 3 23:26:03 1994 UTC (30 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +7 -7 lines
Update to match autoconfig code.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:43:28 1994 UTC (30 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
be more careful with types, also pull in headers where necessary.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Oct 27 04:17:01 1994 UTC (30 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -2 lines
new RCS ID format.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Oct 26 18:06:30 1994 UTC (30 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +9 -1 lines
Implement *cnpollc().

Revision 1.31.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 16 17:31:02 1994 UTC (30 years, 7 months ago) by cgd
Diff to: previous 1.31.2.4: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.4: +24 -9 lines
from trunk.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Sep 16 02:50:39 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +24 -9 lines
Only reset FIFO if changing baud rate.  From John Kohl (slightly edited).

Revision 1.31.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 24 07:29:42 1994 UTC (30 years, 8 months ago) by mycroft
Diff to: previous 1.31.2.3: preferred, colored
Changes since revision 1.31.2.3: +7 -5 lines
update from trunk

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 24 07:25:18 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -4 lines
Set the FIFO threshold based on the receive speed, per Mark Weaver.

Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 21 15:04:59 1994 UTC (30 years, 8 months ago) by mycroft
Diff to: previous 1.31.2.2: preferred, colored
Changes since revision 1.31.2.2: +2 -2 lines
update from trunk

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Aug 21 15:04:37 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2 lines
Look for MDMBUF in cflag, not lflag.

Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 7 11:28:12 1994 UTC (30 years, 8 months ago) by mycroft
Diff to: previous 1.31.2.1: preferred, colored
Changes since revision 1.31.2.1: +25 -3 lines
update from trunk

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Aug 7 11:27:51 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +25 -3 lines
Count up the silo overflows and only log a warning at most once per minute.

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 1 17:13:41 1994 UTC (30 years, 9 months ago) by cgd
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +9 -9 lines
From trunk.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Jul 31 11:34:38 1994 UTC (30 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +9 -9 lines
Bug fixes from Mark Weaver.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Apr 10 10:29:06 1994 UTC (31 years ago) by cgd
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -1 lines
allow MDMBUF flags to be set (oops)

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Apr 7 06:50:28 1994 UTC (31 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -5 lines
Implement dynamic IRQ configuration and IRQ sharing.  Inline spl*() calls.
Reorganize and clean up the relevant code.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Mar 29 04:35:44 1994 UTC (31 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +53 -84 lines
Updates for new autoconfig.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Mar 25 04:38:01 1994 UTC (31 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2 lines
Fix off-by-one error in comopen() unit number sanity check.  From Brian de
Alwis.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Mar 23 03:01:53 1994 UTC (31 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +18 -21 lines
Some stylistic cleanup, and a very minor speedup.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Mar 23 01:28:23 1994 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +36 -5 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 18 05:13:26 1994 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +26 -3 lines
add reasonable support for MDMBUF output flow control.  input to be done later

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Mar 12 08:04:19 1994 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
copy appropriate hardware config bits from config's flags

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Mar 12 07:43:03 1994 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -6 lines
fix some of the last; thanks to charles for looking it over...

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Mar 12 07:25:16 1994 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +63 -19 lines
support new ioctls.  fix the way CRTSCTS is used, etc.  Seperate 'hardware'
and 'software' flags.  beginnings of multiport support.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Mar 8 08:12:56 1994 UTC (31 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +491 -397 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 6 17:18:50 1994 UTC (31 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
DELAY() --> delay().  This is not a macro.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Feb 9 21:13:41 1994 UTC (31 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -4 lines
All ioctl routines take a struct proc * now.

Revision 1.12.2.17: download - view: text, markup, annotated - select for diffs
Tue Feb 1 05:57:44 1994 UTC (31 years, 2 months ago) by mycroft
Diff to: previous 1.12.2.16: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.16: +7 -15 lines
Updates from main branch.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Feb 1 04:38:03 1994 UTC (31 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
oops

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Feb 1 03:42:08 1994 UTC (31 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -11 lines
new cons.h location, etc.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jan 30 16:41:27 1994 UTC (31 years, 3 months ago) by ws
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -9 lines
Traditional behaviour is to reset all modes if device isn't open already

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jan 13 14:58:12 1994 UTC (31 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -35 lines
Junk comselect(); it's the same at ttselect().

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Dec 20 09:05:33 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +23 -20 lines
Canonicalize all #includes, and add pio.h where appropriate.

Revision 1.12.2.16: download - view: text, markup, annotated - select for diffs
Fri Oct 29 19:59:09 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.15: preferred, colored
Changes since revision 1.12.2.15: +8 -9 lines
Minor cleanup.

Revision 1.12.2.15: download - view: text, markup, annotated - select for diffs
Fri Oct 29 17:57:05 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.14: preferred, colored
Changes since revision 1.12.2.14: +5 -3 lines
c_cflag is a tcflag_t, not a u_char.  (Duh.)

Revision 1.12.2.14: download - view: text, markup, annotated - select for diffs
Mon Oct 18 07:38:32 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.13: preferred, colored
Changes since revision 1.12.2.13: +2 -2 lines
Fix a small typo.

Revision 1.12.2.13: download - view: text, markup, annotated - select for diffs
Mon Oct 18 07:35:26 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.12: preferred, colored
Changes since revision 1.12.2.12: +20 -17 lines
Check bits in the fifo reg during probe to make sure they are on.

Revision 1.12.2.12: download - view: text, markup, annotated - select for diffs
Sun Oct 17 05:34:20 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.11: preferred, colored
Changes since revision 1.12.2.11: +20 -21 lines
Minor cleanup.

Revision 1.12.2.11: download - view: text, markup, annotated - select for diffs
Sat Oct 16 06:39:45 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.10: preferred, colored
Changes since revision 1.12.2.10: +5 -5 lines
Add missing dv_class entry to cfdrivers, and use dv_xname where appropriate.

Revision 1.12.2.10: download - view: text, markup, annotated - select for diffs
Fri Oct 15 09:57:45 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.9: preferred, colored
Changes since revision 1.12.2.9: +3 -5 lines
Nuke a wakeup() I left in accidentally.

Revision 1.12.2.9: download - view: text, markup, annotated - select for diffs
Fri Oct 15 09:51:56 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.8: preferred, colored
Changes since revision 1.12.2.8: +47 -29 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 13 01:26:43 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.7: preferred, colored
Changes since revision 1.12.2.7: +4 -3 lines
Use stupid indirection to avoid a compiler warning.

Revision 1.12.2.7: download - view: text, markup, annotated - select for diffs
Tue Oct 12 23:30:58 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.6: preferred, colored
Changes since revision 1.12.2.6: +12 -14 lines
Minor cleanup.

Revision 1.12.2.6: download - view: text, markup, annotated - select for diffs
Mon Oct 11 01:51:19 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.5: preferred, colored
Changes since revision 1.12.2.5: +2 -1 lines
#include pio.h where needed, and remove cpufunc.h.

Revision 1.12.2.5: download - view: text, markup, annotated - select for diffs
Thu Oct 7 14:48:45 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.4: preferred, colored
Changes since revision 1.12.2.4: +1 -2 lines
Don't #include isa.h.

Revision 1.12.2.4: download - view: text, markup, annotated - select for diffs
Wed Oct 6 12:08:38 1993 UTC (31 years, 6 months ago) by mycroft
Diff to: previous 1.12.2.3: preferred, colored
Changes since revision 1.12.2.3: +24 -5 lines
Change comforceintr() to not use loopback.  Change attach messages.

Revision 1.12.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 30 20:18:59 1993 UTC (31 years, 7 months ago) by mycroft
Diff to: previous 1.12.2.2: preferred, colored
Changes since revision 1.12.2.2: +17 -4 lines
Change some uses of IRQUNK to IRQNONE.  #include isa.h and icu.h.

Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 30 17:32:55 1993 UTC (31 years, 7 months ago) by mycroft
Diff to: previous 1.12.2.1: preferred, colored
Changes since revision 1.12.2.1: +475 -472 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 29 02:36:21 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -1 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 14 17:32:22 1993 UTC (31 years, 7 months ago) by mycroft
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -4 lines
New i386 code.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Aug 29 13:47:03 1993 UTC (31 years, 8 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -2 lines
tty XXstart() routines return void

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jul 12 11:37:16 1993 UTC (31 years, 9 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +11 -14 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 7 11:00:59 1993 UTC (31 years, 9 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 6 23:05:03 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
make getc() and ungetc() be rb{un,}getc(), so getc() and ungetc()
don't conflict w/ansi prototypes...

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed May 26 10:11:01 1993 UTC (31 years, 11 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +21 -13 lines
tty dynamic allocation

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 18 18:18:59 1993 UTC (31 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -25 lines
make kernel select interface be one-stop shopping & clean it all up.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Apr 10 12:05:19 1993 UTC (32 years ago) by glass
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1 lines
fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 9 16:43:56 1993 UTC (32 years ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
have probe return size of io space on successful return, rather
than simply 1.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 8 08:26:50 1993 UTC (32 years ago) by deraadt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 27 09:24:42 1993 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
moved closing #endif to include comselect

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 21 18:04:42 1993 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +65 -13 lines
after 0.2.2 "stable" patches applied

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
Branches: WJF-920714
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>