The NetBSD Project

CVS log for src/sys/dev/ic/comvar.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.98 / (download) - annotate - [select for diffs], Sat Oct 8 07:27:03 2022 UTC (16 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.97: +1 -4 lines
Diff to previous 1.97 (colored)

com(4): Omit never-used sc_vendor_workaround member.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Oct 6 19:59:55 2022 UTC (16 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.96: +6 -1 lines
Diff to previous 1.96 (colored)

com(4): Add include guards.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Nov 12 21:57:13 2021 UTC (2 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.95: +9 -1 lines
Diff to previous 1.95 (colored)

com: Add support for 32-bit IO accesses.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Oct 12 00:21:34 2021 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.94: +2 -1 lines
Diff to previous 1.94 (colored)

Fix the build by adding 'sc_hup_pending' member to com_softc that
was apparently forgotten.

Revision 1.92.12.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:44 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.92: +4 -3 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

Sync with HEAD.

Revision 1.92.14.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:44:51 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.92: +4 -3 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Mar 25 05:34:49 2021 UTC (2 years, 11 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

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

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

Revision 1.93 / (download) - annotate - [select for diffs], Thu Mar 25 05:33:59 2021 UTC (2 years, 11 months ago) by rin
Branch: MAIN
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored)

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

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

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:10 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.87: +22 -63 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Sync with HEAD

Revision 1.86.2.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:26 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.86.2.2: +16 -14 lines
Diff to previous 1.86.2.2 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored)

Synch with HEAD

Revision 1.92 / (download) - annotate - [select for diffs], Fri Jan 11 23:10:41 2019 UTC (5 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex, thorpej-cfargs
Changes since 1.91: +16 -14 lines
Diff to previous 1.91 (colored)

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

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:48 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.86.2.1: +9 -52 lines
Diff to previous 1.86.2.1 (colored) to branchpoint 1.86 (colored)

Sync with HEAD, resolve a few conflicts

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

Add a convenience function, com_init_regs_stride(), that shifts the register
offsets and size by the specified amount.  Use in front-ends as appropriate.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Dec 8 21:14:37 2018 UTC (5 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.89: +1 -31 lines
Diff to previous 1.89 (colored)

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

Revision 1.89 / (download) - annotate - [select for diffs], Sat Dec 8 17:46:13 2018 UTC (5 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.88: +6 -23 lines
Diff to previous 1.88 (colored)

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

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

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

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:50 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.86: +10 -10 lines
Diff to previous 1.86 (colored)

Sync with HEAD

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

Rename COM_TYPE_SUNXI -> COM_TYPE_DW_APB

Revision 1.86 / (download) - annotate - [select for diffs], Mon Dec 4 09:55:37 2017 UTC (6 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored)

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

Revision 1.85 / (download) - annotate - [select for diffs], Mon Dec 4 09:14:23 2017 UTC (6 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.84: +4 -4 lines
Diff to previous 1.84 (colored)

Make it clear that SUNXI registers are not defined/supported in the
COM_REGMAP case

Revision 1.73.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:03 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.73.6.2: +16 -19 lines
Diff to previous 1.73.6.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

update from HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Sun Oct 29 14:06:08 2017 UTC (6 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.83: +13 -30 lines
Diff to previous 1.83 (colored)

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

Revision 1.79.2.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:03 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.79.2.2: +2 -1 lines
Diff to previous 1.79.2.2 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

Sync with HEAD

Revision 1.83 / (download) - annotate - [select for diffs], Mon Jul 31 09:25:14 2017 UTC (6 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored)

Add COM_TYPE_BCMAUXUART type for BCM2835 AUX UART.

Revision 1.78.4.1 / (download) - annotate - [select for diffs], Wed Jun 22 08:26:05 2016 UTC (7 years, 8 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.78: +13 -1 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

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

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Sun May 29 08:44:21 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.79.2.1: +13 -1 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored)

Sync with HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Fri May 27 20:01:49 2016 UTC (7 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.81: +13 -1 lines
Diff to previous 1.81 (colored)

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

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:07 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Sync with HEAD

Revision 1.81 / (download) - annotate - [select for diffs], Sun May 3 17:22:54 2015 UTC (8 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

add COM_TYPE_TEGRA

Revision 1.80 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:24 2015 UTC (8 years, 10 months ago) by riastradh
Branch: MAIN
Changes since 1.79: +2 -3 lines
Diff to previous 1.79 (colored)

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

Revision 1.79 / (download) - annotate - [select for diffs], Sat Nov 22 15:14:35 2014 UTC (9 years, 3 months ago) by macallan
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

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

Revision 1.73.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:38 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.73.6.1: +8 -1 lines
Diff to previous 1.73.6.1 (colored) to branchpoint 1.73 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.71.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:22 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.71.8.1: +19 -1 lines
Diff to previous 1.71.8.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.74.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:37 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.74.4.1: +5 -1 lines
Diff to previous 1.74.4.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

sync with head

Revision 1.78 / (download) - annotate - [select for diffs], Thu Oct 3 13:23:03 2013 UTC (10 years, 5 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7
Changes since 1.77: +18 -2 lines
Diff to previous 1.77 (colored)

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

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

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

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

Move the Marvell extension to com_mv.c.

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:25 2013 UTC (10 years, 6 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.74: +5 -2 lines
Diff to previous 1.74 (colored)

sync with head

Revision 1.74.6.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:35 2013 UTC (10 years, 7 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.74: +5 -2 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jul 17 19:51:56 2013 UTC (10 years, 7 months ago) by soren
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.74: +5 -2 lines
Diff to previous 1.74 (colored)

Fix COM_16750 build for non-COM_REGMAP platforms.

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:17 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.73: +12 -1 lines
Diff to previous 1.73 (colored)

resync from head

Revision 1.74 / (download) - annotate - [select for diffs], Sat Apr 20 11:52:41 2013 UTC (10 years, 10 months ago) by rkujawa
Branch: MAIN
CVS Tags: riastradh-drm2-base, khorben-n900
Branch point for: rmind-smpnet, riastradh-drm2
Changes since 1.73: +12 -1 lines
Diff to previous 1.73 (colored)

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

Obtained from Marvell, Semihalf.

Revision 1.71.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:32 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

sync with head

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:15 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

merge to -current.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:03 2012 UTC (12 years, 1 month ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, 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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Entropy-pool implementation move and cleanup.

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

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

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

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

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

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

Revision 1.72 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:22 2011 UTC (12 years, 3 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:14 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Sat Nov 13 15:35:50 2010 UTC (13 years, 3 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

Some missing sys/device.h dependencies.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:14 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync with HEAD.

Revision 1.61.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:29 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.4.4: +11 -4 lines
Diff to previous 1.61.4.4 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Wed Feb 24 22:37:58 2010 UTC (14 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

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

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jan 8 20:02:39 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Expand PMF_FN_* macros.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Nov 12 20:37:44 2009 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.67: +1 -2 lines
Diff to previous 1.67 (colored)

Delete definition of com_activate(), it's been removed.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Nov 12 20:37:09 2009 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.66: +9 -1 lines
Diff to previous 1.66 (colored)

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

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

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

Revision 1.63.8.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:47 2009 UTC (14 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.63.8.1: +1 -1 lines
Diff to previous 1.63.8.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

Sync with HEAD.

Revision 1.61.4.4 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:22 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.4.3: +1 -1 lines
Diff to previous 1.61.4.3 (colored) to branchpoint 1.61 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Wed May 27 23:01:07 2009 UTC (14 years, 9 months ago) by rjs
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.65: +1 -1 lines
Diff to previous 1.65 (colored)

Put back CVS header.

Revision 1.61.4.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:23 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.4.2: +2 -2 lines
Diff to previous 1.61.4.2 (colored) to branchpoint 1.61 (colored)

sync with head

Revision 1.63.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:22 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.63: +4 -2 lines
Diff to previous 1.63 (colored)

Sync with HEAD.

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

Revision 1.65 / (download) - annotate - [select for diffs], Tue May 12 14:25:17 2009 UTC (14 years, 9 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.61.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:41 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.4.1: +3 -0 lines
Diff to previous 1.61.4.1 (colored) to branchpoint 1.61 (colored)

sync with head.

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 3 13:52:36 2009 UTC (14 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3
Changes since 1.63: +2 -0 lines
Diff to previous 1.63 (colored)

Make COM_RING_SIZE configurable by kernel config(5).

Revision 1.59.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:55 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.59.6.2: +1 -0 lines
Diff to previous 1.59.6.2 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Sync with HEAD.

Revision 1.62.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:14 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.62: +1 -0 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

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

Revision 1.63 / (download) - annotate - [select for diffs], Fri Oct 24 04:43:08 2008 UTC (15 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.62: +1 -0 lines
Diff to previous 1.62 (colored)

Add support for 16550 chips without an Enhanced Register Set.

Revision 1.59.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:20 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.59.6.1: +8 -1 lines
Diff to previous 1.59.6.1 (colored) to branchpoint 1.59 (colored)

Sync with HEAD.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:42 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.61: +8 -1 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head.

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:03 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61: +8 -1 lines
Diff to previous 1.61 (colored)

sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Apr 28 22:00:01 2008 UTC (15 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: haad-dm
Changes since 1.61: +8 -1 lines
Diff to previous 1.61 (colored)

More forgotten changes from matt-armv6.

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

Sync with HEAD.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:16 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.59: +5 -5 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

sync with head.

Revision 1.55.8.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:37 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.55.8.3: +5 -14 lines
Diff to previous 1.55.8.3 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

sync with HEAD

Revision 1.48.6.6 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:42 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.6.5: +5 -5 lines
Diff to previous 1.48.6.5 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Mar 14 15:09:11 2008 UTC (15 years, 11 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Feb 29 07:02:05 2008 UTC (16 years ago) by dyoung
Branch: MAIN
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (colored)

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

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

Protect against dereferencing a NULL softc in comioctl().

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

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

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:40 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.57: +1 -10 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.57.10.2 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:34 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.57.10.1: +0 -9 lines
Diff to previous 1.57.10.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.48.6.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:57 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.6.4: +2 -10 lines
Diff to previous 1.48.6.4 (colored) to branchpoint 1.48 (colored)

sync with head

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jan 20 18:09:11 2008 UTC (16 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.58: +1 -10 lines
Diff to previous 1.58 (colored)

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

Revision 1.55.8.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:50 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.55.8.2: +2 -1 lines
Diff to previous 1.55.8.2 (colored) to branchpoint 1.55 (colored)

sync with HEAD

Revision 1.57.10.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:10 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

Sync with HEAD

Revision 1.57.6.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:19 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync with head.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Dec 14 03:36:55 2007 UTC (16 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-base
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

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

Revision 1.55.8.2 / (download) - annotate - [select for diffs], Tue Nov 6 23:26:30 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.55.8.1: +8 -3 lines
Diff to previous 1.55.8.1 (colored) to branchpoint 1.55 (colored)

sync with HEAD

Revision 1.55.8.1 / (download) - annotate - [select for diffs], Mon Oct 29 02:12:52 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.55: +8 -1 lines
Diff to previous 1.55 (colored)

Add support for OMAP specific com type.

Revision 1.48.6.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:30:35 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.6.3: +8 -3 lines
Diff to previous 1.48.6.3 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.55.6.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:41 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.55: +8 -3 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Sync with HEAD.

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

Revision 1.54.14.2 / (download) - annotate - [select for diffs], Tue Oct 23 20:07:18 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.54.14.1: +2 -4 lines
Diff to previous 1.54.14.1 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Sync with head.

Revision 1.55.10.2 / (download) - annotate - [select for diffs], Thu Oct 18 08:33:07 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.55.10.1: +2 -4 lines
Diff to previous 1.55.10.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

sync with head.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Oct 17 17:44:19 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.56: +2 -4 lines
Diff to previous 1.56 (colored)

Make it build without IPL_SERIAL.

Revision 1.55.10.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:08 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.55: +10 -3 lines
Diff to previous 1.55 (colored)

sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Oct 8 16:50:45 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, vmlocking-base
Changes since 1.55: +10 -3 lines
Diff to previous 1.55 (colored)

Merge from vmlocking: use mutexes and the softint API.

Revision 1.48.6.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:34:27 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.6.2: +1 -10 lines
Diff to previous 1.48.6.2 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Jul 14 21:02:37 2007 UTC (16 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.54: +1 -10 lines
Diff to previous 1.54 (colored)

Generic soft interrupts are mandatory.

Revision 1.54.14.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:38:33 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.54: +3 -5 lines
Diff to previous 1.54 (colored)

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

Revision 1.48.6.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:02 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48.6.1: +76 -4 lines
Diff to previous 1.48.6.1 (colored) to branchpoint 1.48 (colored)

sync with head.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:50:01 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.50: +80 -9 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

sync with head

Revision 1.50.8.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:44:11 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.50.8.2: +75 -4 lines
Diff to previous 1.50.8.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with head

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jul 13 22:56:02 2006 UTC (17 years, 7 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, 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, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: vmlocking
Changes since 1.53: +75 -4 lines
Diff to previous 1.53 (colored)

Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.

Revision 1.52.2.6 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:22 2006 UTC (17 years, 7 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.52.2.5: +2 -1 lines
Diff to previous 1.52.2.5 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Merge from HEAD.

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:01 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.50.8.1: +6 -1 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jun 25 00:39:21 2006 UTC (17 years, 8 months ago) by perry
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

Add a power hook for the com device.

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:54 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.48: +5 -10 lines
Diff to previous 1.48 (colored)

sync with head.

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Mon Jun 19 03:58:13 2006 UTC (17 years, 8 months ago) by chap
Branch: chap-midi
Changes since 1.51: +5 -1 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with head.

Revision 1.52.2.5 / (download) - annotate - [select for diffs], Sat Jun 17 03:36:12 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.52.2.4: +18 -5 lines
Diff to previous 1.52.2.4 (colored) to branchpoint 1.52 (colored)

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

Revision 1.52.2.4 / (download) - annotate - [select for diffs], Sat Jun 17 00:30:24 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.52.2.3: +6 -19 lines
Diff to previous 1.52.2.3 (colored) to branchpoint 1.52 (colored)

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

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Fri Jun 16 04:03:24 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.52.2.2: +14 -14 lines
Diff to previous 1.52.2.2 (colored) to branchpoint 1.52 (colored)

"make the \'s pretty".  hi simon.

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Fri Jun 16 03:32:03 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.52.2.1: +24 -20 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored)

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

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Thu Jun 15 16:30:26 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.52: +71 -4 lines
Diff to previous 1.52 (colored)

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

Revision 1.52 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:35 2006 UTC (17 years, 8 months ago) by kardel
Branch: MAIN
CVS Tags: gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.51: +5 -1 lines
Diff to previous 1.51 (colored)

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

Revision 1.50.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:55 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.50.6.1: +1 -6 lines
Diff to previous 1.50.6.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Sync with head.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:20 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.50: +1 -6 lines
Diff to previous 1.50 (colored)

sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 5 17:33:33 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, simonb-timecounters-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: chap-midi
Changes since 1.50: +1 -6 lines
Diff to previous 1.50 (colored)

cleanup more SET/CLR/ISSET lossage

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

Adapt for timecounters and newer PPS API.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 27 00:46:38 2005 UTC (18 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.49: +1 -5 lines
Diff to previous 1.49 (colored)

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

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

Revision 1.49 / (download) - annotate - [select for diffs], Sun Dec 11 12:21:26 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.48: +1 -1 lines
Diff to previous 1.48 (colored)

merge ktrace-lwp.

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

sync with -current

Revision 1.47.10.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:43 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.47: +11 -11 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with head.

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Fri Feb 4 11:45:24 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.46.2.3: +11 -11 lines
Diff to previous 1.46.2.3 (colored) next main 1.47 (colored)

Sync with HEAD.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Feb 4 02:10:36 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, thorpej-vnode-attr-base, thorpej-vnode-attr, 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, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.47: +11 -11 lines
Diff to previous 1.47 (colored)

de-__P

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:27:54 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.46.2.2: +1 -1 lines
Diff to previous 1.46.2.2 (colored)

Fix the sync with head I botched.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:45:57 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.46.2.1: +0 -0 lines
Diff to previous 1.46.2.1 (colored)

Sync with HEAD.

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

Sync with HEAD

Revision 1.47 / (download) - annotate - [select for diffs], Sat Nov 8 01:59:38 2003 UTC (20 years, 3 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-km-base, 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-base, 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, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

Add (as yet unused) COM_TYPE_AU1x00.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 14 17:01:06 2003 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jun 14 16:25:53 2003 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +12 -3 lines
Diff to previous 1.44 (colored)

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

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jun 5 13:40:38 2003 UTC (20 years, 9 months ago) by scw
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

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

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

Revision 1.40.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:46:17 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.40.2.2: +2 -1 lines
Diff to previous 1.40.2.2 (colored) next main 1.41 (colored)

catch up with -current on kqueue branch

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Wed Apr 17 00:05:35 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.39.2.2: +2 -1 lines
Diff to previous 1.39.2.2 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Catch up to -current.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Apr 12 19:32:30 2002 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

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

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

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

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

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:35 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.1: +5 -3 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored)

Catch up to -current.

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:38 2001 UTC (22 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.40.2.1: +5 -1 lines
Diff to previous 1.40.2.1 (colored)

Update the kqueue branch to HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Aug 27 14:27:01 2001 UTC (22 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.41: +5 -1 lines
Diff to previous 1.41 (colored)

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

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:15 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.40: +1 -3 lines
Diff to previous 1.40 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Aug 22 12:44:10 2001 UTC (22 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.40: +1 -3 lines
Diff to previous 1.40 (colored)

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

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:02:22 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

Catch up to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Wed May 30 15:24:23 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Branch point for: kqueue
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

add missing   #include "opt_kgdb.h"

Revision 1.30.8.2 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:17 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.30.8.1: +6 -2 lines
Diff to previous 1.30.8.1 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

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

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

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

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jan 7 18:09:26 2001 UTC (23 years, 1 month ago) by sommerfeld
Branch: MAIN
Changes since 1.37: +5 -1 lines
Diff to previous 1.37 (colored)

Make certain we see COM_MPLOCK, MULTIPROCESSOR, and LOCKDEBUG
to avoid any confusion about whether or not we have a lock in the softc.

Revision 1.30.8.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:40:27 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.30: +16 -9 lines
Diff to previous 1.30 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Oct 6 21:12:01 2000 UTC (23 years, 5 months ago) by nathanw
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Change int->bus_addr_t in com_kgdb_attach() prototype.
Compiles again with KGDB enabled.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Sep 23 17:17:12 2000 UTC (23 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.35: +7 -1 lines
Diff to previous 1.35 (colored)

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

Revision 1.35 / (download) - annotate - [select for diffs], Sat Sep 23 12:08:16 2000 UTC (23 years, 5 months ago) by bjh21
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

paddr_t -> bus_addr_t in prototypes too.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Sep 22 14:46:38 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

paddr_t -> bus_addr_t.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Sep 21 23:27:32 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Support for SPARC machines with `su' devices.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:30 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.31: +4 -1 lines
Diff to previous 1.31 (colored)

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

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

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jan 23 21:06:01 2000 UTC (24 years, 1 month ago) by soda
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.30: +2 -4 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Wed Feb 3 23:20:33 1999 UTC (25 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2
Branch point for: thorpej_scsipi
Changes since 1.29: +4 -5 lines
Diff to previous 1.29 (colored)

Slight redux in PPS code.

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

Add support for detaching "com" instances.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 21 00:33:17 1998 UTC (25 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Add softserial to the alpha port.  This significantly improved PPP
throughput on com ports.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Sep 16 21:30:58 1998 UTC (25 years, 5 months ago) by is
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Garbage collect unused 3rd parameter to comprobe1().

Revision 1.26 / (download) - annotate - [select for diffs], Fri Sep 11 19:39:28 1998 UTC (25 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Add arc as a target platform.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Sep 5 04:25:35 1998 UTC (25 years, 6 months ago) by mark
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

arm32 now supports soft serial interrupts.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 11 02:01:58 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

Pull in <sys/timepps.h> here so that other things that include comvar.h
will compile.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 10 12:06:24 1998 UTC (25 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.22: +9 -1 lines
Diff to previous 1.22 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 2 23:01:05 1998 UTC (26 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.21: +5 -2 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Mon Feb 2 22:55:00 1998 UTC (26 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 1 23:30:49 1998 UTC (26 years, 1 month ago) by marc
Branch: MAIN
Changes since 1.19: +6 -1 lines
Diff to previous 1.19 (colored)

add power management hooks to softc

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Tue Nov 4 23:19:55 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.18: +23 -26 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Pull rev 1.19 up from trunk (mycroft)

Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 3 06:55:54 1997 UTC (26 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +23 -26 lines
Diff to previous 1.18 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 19 14:26:23 1997 UTC (26 years, 4 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

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

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

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 19 11:45:45 1997 UTC (26 years, 4 months ago) by explorer
Branch: MAIN
Changes since 1.16: +9 -1 lines
Diff to previous 1.16 (colored)

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

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Thu Oct 16 00:04:18 1997 UTC (26 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.16.2.1: +123 -0 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync w/ trunk.

Revision 1.16.2.1, Wed Oct 15 22:00:17 1997 UTC (26 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.16: +0 -123 lines
FILE REMOVED

file comvar.h was added on branch marc-pcmcia on 1997-10-16 00:04:18 +0000

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 15 22:00:17 1997 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: marc-pcmcia-base
Branch point for: marc-pcmcia
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored)

Pulldown from marc-pcmcia branch.

Revision 1.11.2.5 / (download) - annotate - [select for diffs], Wed Oct 15 21:53:03 1997 UTC (26 years, 4 months ago) by thorpej
Changes since 1.11.2.4: +2 -5 lines
Diff to previous 1.11.2.4 (colored) next main 1.12 (colored)

Move a few bus-specific things into bus-specific softc structures and
nesting a com_softc within them.

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Mon Sep 22 06:33:13 1997 UTC (26 years, 5 months ago) by thorpej
Changes since 1.11.2.3: +6 -4 lines
Diff to previous 1.11.2.3 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 16 20:34:29 1997 UTC (26 years, 5 months ago) by is
Branch: MAIN
Changes since 1.14: +6 -4 lines
Diff to previous 1.14 (colored)

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

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Wed Aug 27 23:31:33 1997 UTC (26 years, 6 months ago) by thorpej
Changes since 1.11.2.2: +6 -16 lines
Diff to previous 1.11.2.2 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 23 14:01:34 1997 UTC (26 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.13: +6 -16 lines
Diff to previous 1.13 (colored)

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

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Sat Aug 23 07:13:16 1997 UTC (26 years, 6 months ago) by thorpej
Changes since 1.11.2.1: +14 -2 lines
Diff to previous 1.11.2.1 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 14 16:15:16 1997 UTC (26 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Tue Aug 12 17:25:45 1997 UTC (26 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.11: +9 -1 lines
Diff to previous 1.11 (colored)

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

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Wed Jul 30 07:05:27 1997 UTC (26 years, 7 months ago) by marc
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

added pcmcia infrastructure and a few devices

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jul 5 20:52:41 1997 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Add support for remote serial KGDB.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 15 11:19:02 1997 UTC (26 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +12 -5 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 24 03:45:40 1997 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +1 -5 lines
Diff to previous 1.8 (colored)

Where _is_ that brick when you need it?!

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 4 20:56:40 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +78 -13 lines
Diff to previous 1.7 (colored)

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

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

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

Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 21 22:40:34 1996 UTC (27 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)

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

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

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

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 15 18:54:35 1996 UTC (27 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 10 09:01:26 1996 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +12 -2 lines
Diff to previous 1.2 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 9 23:37:14 1996 UTC (27 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix copyright year

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 9 01:01:33 1996 UTC (28 years ago) by cgd
Branch: MAIN

define the common structure used to attach 'com' units as slaves to
multiport cards.  prototype comprobe1(), which is used by multiport card
drivers.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>