The NetBSD Project

CVS log for src/sys/dev/wscons/wsbell.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:17 2022 UTC (2 years, 11 months ago) by pgoyette
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, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -6 lines
For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).

Revision 1.12.10.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:02 2021 UTC (4 years, 2 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -4 lines
Sync w/ HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Dec 27 16:09:33 2020 UTC (4 years, 2 months ago) by tsutsui
Branches: 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, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -4 lines
Explicitly include generated ioconf.h for struct cfdrivers.

Revision 1.9.6.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:52 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.9.6.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.6.1: +5 -5 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jun 22 08:03:01 2019 UTC (5 years, 9 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, 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, 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -5 lines
Add missing SETBELL() for WSKBDIO_COMPLEXBELL.
wskbd_bell_data structure has value fields and operation bitmask field.
"xset b * * 0" doesn't touch period field (and doesn't initialized it)
and doesn't set DOPERIOD flag (this means that period field should not
be used).  SETBELL() handles this situation appropliately.
This happened during copying wsbell.c from wskbd.c.
Fix PR xsrc/54245.

Revision 1.9.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:36 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +13 -9 lines
Sync with HEAD

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Apr 18 14:01:28 2019 UTC (5 years, 11 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -4 lines
Fix the bell period.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Apr 18 13:01:38 2019 UTC (5 years, 11 months ago) by isaki
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -7 lines
White space and indent fix.

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:37 2017 UTC (7 years, 3 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +520 -0 lines
update from HEAD

Revision 1.9.2.1
Fri Nov 3 19:49:23 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.9: +0 -520 lines
file wsbell.c was added on branch tls-maxphys on 2017-12-03 11:37:37 +0000

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Nov 3 19:49:23 2017 UTC (7 years, 4 months ago) by maya
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: tls-maxphys, phil-wifi
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -3 lines
Remove redundant includes of malloc.h

Revision 1.8.4.2: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:31 2017 UTC (7 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.8.4.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.4.1: +521 -0 lines
Sync with HEAD

Revision 1.8.4.1
Tue Jun 13 05:49:48 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.8: +0 -521 lines
file wsbell.c was added on branch nick-nhusb on 2017-08-28 17:52:31 +0000

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jun 13 05:49:48 2017 UTC (7 years, 9 months ago) by nat
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: nick-nhusb
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +20 -2 lines
Implement missing ioctls for the default bell.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jun 13 00:54:37 2017 UTC (7 years, 9 months ago) by nat
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -6 lines
Change sc_dying from u_char to bool.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jun 13 00:49:05 2017 UTC (7 years, 9 months ago) by nat
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -5 lines
Remove dying ftom vb_args and use sc_dying instead.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jun 13 00:42:27 2017 UTC (7 years, 9 months ago) by nat
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -13 lines
Move duplicate definition of SETBELL macro into wsbelldata.h.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jun 12 07:12:49 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -3 lines
Revert previous - it's no longer needed since data structure sizes no
longer depend on which wscons child devices exist

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jun 12 06:59:19 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
For now, #include wsdisplay.h to get the definition of NWSDISPLAY

The symbol is currently used to conditionally include members of a
data structure, so without this include there could be different
structure definitions, with different sizes, and data corruption is
likely.

XXX For cleaner modularization, all of the needs-flag entries in
XXX wscons should be removed.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jun 11 22:14:55 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +54 -3 lines
Add module infrastructure for wsbell(4)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jun 11 03:55:56 2017 UTC (7 years, 9 months ago) by nat
Branches: MAIN
New device wsbell - allows for a console beep for non pckbds (usb etc).
Works for platforms without pcppi - can work with spkr at audio and spkr
at pcppi.

To use add the following to your kernel config:
wsbell* at spkr? console?

Ok pgoyette@.

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>