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


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 31 19:30:17 2022 UTC (2 years ago) by pgoyette
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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
Changes since 1.13: +4 -6 lines
Diff to previous 1.13 (colored)

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) - annotate - [select for diffs], Sun Jan 3 16:35:02 2021 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.12: +2 -4 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync w/ HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 27 16:09:33 2020 UTC (3 years, 3 months ago) by tsutsui
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, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.12: +2 -4 lines
Diff to previous 1.12 (colored)

Explicitly include generated ioconf.h for struct cfdrivers.

Revision 1.9.6.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:52 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.9.6.1: +5 -5 lines
Diff to previous 1.9.6.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 22 08:03:01 2019 UTC (4 years, 9 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, 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, 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
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

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) - annotate - [select for diffs], Mon Jun 10 22:07:36 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.9: +13 -9 lines
Diff to previous 1.9 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 18 14:01:28 2019 UTC (4 years, 11 months ago) by isaki
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.10: +8 -4 lines
Diff to previous 1.10 (colored)

Fix the bell period.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 18 13:01:38 2019 UTC (4 years, 11 months ago) by isaki
Branch: MAIN
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

White space and indent fix.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:37 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.9.2.1: +520 -0 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

update from HEAD

Revision 1.9.2.1, Fri Nov 3 19:49:23 2017 UTC (6 years, 5 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.9: +0 -520 lines
FILE REMOVED

file wsbell.c was added on branch tls-maxphys on 2017-12-03 11:37:37 +0000

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 3 19:49:23 2017 UTC (6 years, 5 months ago) by maya
Branch: 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
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

Remove redundant includes of malloc.h

Revision 1.8.4.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:31 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8.4.1: +521 -0 lines
Diff to previous 1.8.4.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Sync with HEAD

Revision 1.8.4.1, Tue Jun 13 05:49:48 2017 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8: +0 -521 lines
FILE REMOVED

file wsbell.c was added on branch nick-nhusb on 2017-08-28 17:52:31 +0000

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 13 05:49:48 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: nick-nhusb
Changes since 1.7: +20 -2 lines
Diff to previous 1.7 (colored)

Implement missing ioctls for the default bell.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 13 00:54:37 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.6: +7 -6 lines
Diff to previous 1.6 (colored)

Change sc_dying from u_char to bool.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 13 00:49:05 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.5: +4 -5 lines
Diff to previous 1.5 (colored)

Remove dying ftom vb_args and use sc_dying instead.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 13 00:42:27 2017 UTC (6 years, 10 months ago) by nat
Branch: MAIN
Changes since 1.4: +2 -13 lines
Diff to previous 1.4 (colored)

Move duplicate definition of SETBELL macro into wsbelldata.h.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 12 07:12:49 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

Revert previous - it's no longer needed since data structure sizes no
longer depend on which wscons child devices exist

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 12 06:59:19 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

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) - annotate - [select for diffs], Sun Jun 11 22:14:55 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.1: +54 -3 lines
Diff to previous 1.1 (colored)

Add module infrastructure for wsbell(4)

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 11 03:55:56 2017 UTC (6 years, 10 months ago) by nat
Branch: 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@.

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>