Home | History | Annotate | Download | only in wscons
History log of /src/sys/dev/wscons/wsbell.c
RevisionDateAuthorComments
 1.14  31-Mar-2022  pgoyette 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).
 1.13  27-Dec-2020  tsutsui Explicitly include generated ioconf.h for struct cfdrivers.
 1.12  22-Jun-2019  isaki branches: 1.12.10;
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.
 1.11  18-Apr-2019  isaki Fix the bell period.
 1.10  18-Apr-2019  isaki White space and indent fix.
 1.9  03-Nov-2017  maya branches: 1.9.2; 1.9.6;
Remove redundant includes of malloc.h
 1.8  13-Jun-2017  nat branches: 1.8.4;
Implement missing ioctls for the default bell.
 1.7  13-Jun-2017  nat Change sc_dying from u_char to bool.
 1.6  13-Jun-2017  nat Remove dying ftom vb_args and use sc_dying instead.
 1.5  13-Jun-2017  nat Move duplicate definition of SETBELL macro into wsbelldata.h.
 1.4  12-Jun-2017  pgoyette Revert previous - it's no longer needed since data structure sizes no
longer depend on which wscons child devices exist
 1.3  12-Jun-2017  pgoyette 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.
 1.2  11-Jun-2017  pgoyette Add module infrastructure for wsbell(4)
 1.1  11-Jun-2017  nat 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@.
 1.8.4.2  28-Aug-2017  skrll Sync with HEAD
 1.8.4.1  13-Jun-2017  skrll file wsbell.c was added on branch nick-nhusb on 2017-08-28 17:52:31 +0000
 1.9.6.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.6.1  10-Jun-2019  christos Sync with HEAD
 1.9.2.2  03-Dec-2017  jdolecek update from HEAD
 1.9.2.1  03-Nov-2017  jdolecek file wsbell.c was added on branch tls-maxphys on 2017-12-03 11:37:37 +0000
 1.12.10.1  03-Jan-2021  thorpej Sync w/ HEAD.

RSS XML Feed