History log of /openbsd-current/sys/dev/isa/pcppi.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.19 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_7_1_BASE
# 1.18 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.17 07-Mar-2021 jsg

ansi


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.16 06-Apr-2020 cheloha

pcppi(4), spkr(4): ticks -> milliseconds

In pcppi(4), convert from ticks to milliseconds.

While we're doing this, we can also convert spkr(4), too.

The spkr(4) conversion from ticks to milliseconds is trickier because
the driver is written with musical intervals (whole notes, quarter
notes, etc.), not the typical units (seconds, milliseconds, etc.) used
in most software.

I think the conversion is correct... but the code is a challenging
read, so it might be subtly incorrect.

ratchov@ intends to move spkr(4) into the attic sometime soon so I
doubt it matters much if I got it wrong.

Input from schwarze@, jsg@, and ratchov@.

Tested by schwarze@.

ok ratchov@


# 1.15 31-Dec-2019 mpi

Convert infinite sleeps to {m,t}sleep_nsec(9).

ok kn@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.14 20-Feb-2019 anton

Reject negative input from userland in spkrioctl(). One of the arguments
are later passed to timeout_add() which panics if the given ticks are
negative. While here, clamp arguments in pcppi_bell() in order to
prevent overflow.

ok visa@

Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 21-Sep-2014 jsg

Directly include sys/timeout.h so we don't depend on
indirectly including it via dev/ic/pckbcvar.h

Fixes kernel builds without ukbd(4) and pckbd(4).

From Atticus on tech@


# 1.11 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 20-Aug-2010 deraadt

fix an annoying indentation glitch


Revision tags: OPENBSD_4_8_BASE
# 1.9 31-Jul-2010 miod

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


Revision tags: OPENBSD_4_7_BASE
# 1.8 13-Oct-2009 miod

Connect pcppi bell to ukbd, so that x86 systems with usb console keyboard
can cause beeps on console. Reported by Greg Jones on misc@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 12-Feb-2006 miod

Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)


# 1.6 02-Jan-2006 brad

remove last traces of __BROKEN_INDIRECT_CONFIG.

Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc
kernels still compile.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.3 17-Apr-2001 aaron

branches: 1.3.6;
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 art

New timeout API.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.1 02-Jan-1999 niklas

branches: 1.1.6;
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson


# 1.18 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.17 07-Mar-2021 jsg

ansi


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.16 06-Apr-2020 cheloha

pcppi(4), spkr(4): ticks -> milliseconds

In pcppi(4), convert from ticks to milliseconds.

While we're doing this, we can also convert spkr(4), too.

The spkr(4) conversion from ticks to milliseconds is trickier because
the driver is written with musical intervals (whole notes, quarter
notes, etc.), not the typical units (seconds, milliseconds, etc.) used
in most software.

I think the conversion is correct... but the code is a challenging
read, so it might be subtly incorrect.

ratchov@ intends to move spkr(4) into the attic sometime soon so I
doubt it matters much if I got it wrong.

Input from schwarze@, jsg@, and ratchov@.

Tested by schwarze@.

ok ratchov@


# 1.15 31-Dec-2019 mpi

Convert infinite sleeps to {m,t}sleep_nsec(9).

ok kn@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.14 20-Feb-2019 anton

Reject negative input from userland in spkrioctl(). One of the arguments
are later passed to timeout_add() which panics if the given ticks are
negative. While here, clamp arguments in pcppi_bell() in order to
prevent overflow.

ok visa@

Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 21-Sep-2014 jsg

Directly include sys/timeout.h so we don't depend on
indirectly including it via dev/ic/pckbcvar.h

Fixes kernel builds without ukbd(4) and pckbd(4).

From Atticus on tech@


# 1.11 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 20-Aug-2010 deraadt

fix an annoying indentation glitch


Revision tags: OPENBSD_4_8_BASE
# 1.9 31-Jul-2010 miod

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


Revision tags: OPENBSD_4_7_BASE
# 1.8 13-Oct-2009 miod

Connect pcppi bell to ukbd, so that x86 systems with usb console keyboard
can cause beeps on console. Reported by Greg Jones on misc@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 12-Feb-2006 miod

Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)


# 1.6 02-Jan-2006 brad

remove last traces of __BROKEN_INDIRECT_CONFIG.

Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc
kernels still compile.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.3 17-Apr-2001 aaron

branches: 1.3.6;
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 art

New timeout API.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.1 02-Jan-1999 niklas

branches: 1.1.6;
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson


# 1.17 07-Mar-2021 jsg

ansi


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.16 06-Apr-2020 cheloha

pcppi(4), spkr(4): ticks -> milliseconds

In pcppi(4), convert from ticks to milliseconds.

While we're doing this, we can also convert spkr(4), too.

The spkr(4) conversion from ticks to milliseconds is trickier because
the driver is written with musical intervals (whole notes, quarter
notes, etc.), not the typical units (seconds, milliseconds, etc.) used
in most software.

I think the conversion is correct... but the code is a challenging
read, so it might be subtly incorrect.

ratchov@ intends to move spkr(4) into the attic sometime soon so I
doubt it matters much if I got it wrong.

Input from schwarze@, jsg@, and ratchov@.

Tested by schwarze@.

ok ratchov@


# 1.15 31-Dec-2019 mpi

Convert infinite sleeps to {m,t}sleep_nsec(9).

ok kn@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.14 20-Feb-2019 anton

Reject negative input from userland in spkrioctl(). One of the arguments
are later passed to timeout_add() which panics if the given ticks are
negative. While here, clamp arguments in pcppi_bell() in order to
prevent overflow.

ok visa@

Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 21-Sep-2014 jsg

Directly include sys/timeout.h so we don't depend on
indirectly including it via dev/ic/pckbcvar.h

Fixes kernel builds without ukbd(4) and pckbd(4).

From Atticus on tech@


# 1.11 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 20-Aug-2010 deraadt

fix an annoying indentation glitch


Revision tags: OPENBSD_4_8_BASE
# 1.9 31-Jul-2010 miod

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


Revision tags: OPENBSD_4_7_BASE
# 1.8 13-Oct-2009 miod

Connect pcppi bell to ukbd, so that x86 systems with usb console keyboard
can cause beeps on console. Reported by Greg Jones on misc@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 12-Feb-2006 miod

Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)


# 1.6 02-Jan-2006 brad

remove last traces of __BROKEN_INDIRECT_CONFIG.

Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc
kernels still compile.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.3 17-Apr-2001 aaron

branches: 1.3.6;
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 art

New timeout API.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.1 02-Jan-1999 niklas

branches: 1.1.6;
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson


# 1.16 06-Apr-2020 cheloha

pcppi(4), spkr(4): ticks -> milliseconds

In pcppi(4), convert from ticks to milliseconds.

While we're doing this, we can also convert spkr(4), too.

The spkr(4) conversion from ticks to milliseconds is trickier because
the driver is written with musical intervals (whole notes, quarter
notes, etc.), not the typical units (seconds, milliseconds, etc.) used
in most software.

I think the conversion is correct... but the code is a challenging
read, so it might be subtly incorrect.

ratchov@ intends to move spkr(4) into the attic sometime soon so I
doubt it matters much if I got it wrong.

Input from schwarze@, jsg@, and ratchov@.

Tested by schwarze@.

ok ratchov@


# 1.15 31-Dec-2019 mpi

Convert infinite sleeps to {m,t}sleep_nsec(9).

ok kn@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.14 20-Feb-2019 anton

Reject negative input from userland in spkrioctl(). One of the arguments
are later passed to timeout_add() which panics if the given ticks are
negative. While here, clamp arguments in pcppi_bell() in order to
prevent overflow.

ok visa@

Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 21-Sep-2014 jsg

Directly include sys/timeout.h so we don't depend on
indirectly including it via dev/ic/pckbcvar.h

Fixes kernel builds without ukbd(4) and pckbd(4).

From Atticus on tech@


# 1.11 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 20-Aug-2010 deraadt

fix an annoying indentation glitch


Revision tags: OPENBSD_4_8_BASE
# 1.9 31-Jul-2010 miod

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


Revision tags: OPENBSD_4_7_BASE
# 1.8 13-Oct-2009 miod

Connect pcppi bell to ukbd, so that x86 systems with usb console keyboard
can cause beeps on console. Reported by Greg Jones on misc@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 12-Feb-2006 miod

Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)


# 1.6 02-Jan-2006 brad

remove last traces of __BROKEN_INDIRECT_CONFIG.

Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc
kernels still compile.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.3 17-Apr-2001 aaron

branches: 1.3.6;
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 art

New timeout API.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.1 02-Jan-1999 niklas

branches: 1.1.6;
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson


# 1.15 31-Dec-2019 mpi

Convert infinite sleeps to {m,t}sleep_nsec(9).

ok kn@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.14 20-Feb-2019 anton

Reject negative input from userland in spkrioctl(). One of the arguments
are later passed to timeout_add() which panics if the given ticks are
negative. While here, clamp arguments in pcppi_bell() in order to
prevent overflow.

ok visa@

Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 21-Sep-2014 jsg

Directly include sys/timeout.h so we don't depend on
indirectly including it via dev/ic/pckbcvar.h

Fixes kernel builds without ukbd(4) and pckbd(4).

From Atticus on tech@


# 1.11 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 20-Aug-2010 deraadt

fix an annoying indentation glitch


Revision tags: OPENBSD_4_8_BASE
# 1.9 31-Jul-2010 miod

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


Revision tags: OPENBSD_4_7_BASE
# 1.8 13-Oct-2009 miod

Connect pcppi bell to ukbd, so that x86 systems with usb console keyboard
can cause beeps on console. Reported by Greg Jones on misc@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 12-Feb-2006 miod

Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)


# 1.6 02-Jan-2006 brad

remove last traces of __BROKEN_INDIRECT_CONFIG.

Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc
kernels still compile.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.3 17-Apr-2001 aaron

branches: 1.3.6;
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 art

New timeout API.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.1 02-Jan-1999 niklas

branches: 1.1.6;
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson


# 1.14 20-Feb-2019 anton

Reject negative input from userland in spkrioctl(). One of the arguments
are later passed to timeout_add() which panics if the given ticks are
negative. While here, clamp arguments in pcppi_bell() in order to
prevent overflow.

ok visa@

Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 21-Sep-2014 jsg

Directly include sys/timeout.h so we don't depend on
indirectly including it via dev/ic/pckbcvar.h

Fixes kernel builds without ukbd(4) and pckbd(4).

From Atticus on tech@


# 1.11 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 20-Aug-2010 deraadt

fix an annoying indentation glitch


Revision tags: OPENBSD_4_8_BASE
# 1.9 31-Jul-2010 miod

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


Revision tags: OPENBSD_4_7_BASE
# 1.8 13-Oct-2009 miod

Connect pcppi bell to ukbd, so that x86 systems with usb console keyboard
can cause beeps on console. Reported by Greg Jones on misc@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 12-Feb-2006 miod

Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)


# 1.6 02-Jan-2006 brad

remove last traces of __BROKEN_INDIRECT_CONFIG.

Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc
kernels still compile.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.3 17-Apr-2001 aaron

branches: 1.3.6;
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 art

New timeout API.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.1 02-Jan-1999 niklas

branches: 1.1.6;
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.13 08-Jan-2016 jcs

Move HID support files out of dev/usb into new dev/hid directory

These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 21-Sep-2014 jsg

Directly include sys/timeout.h so we don't depend on
indirectly including it via dev/ic/pckbcvar.h

Fixes kernel builds without ukbd(4) and pckbd(4).

From Atticus on tech@


# 1.11 14-Sep-2014 jsg

remove uneeded proc.h includes
ok mpi@ kspillner@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.10 20-Aug-2010 deraadt

fix an annoying indentation glitch


Revision tags: OPENBSD_4_8_BASE
# 1.9 31-Jul-2010 miod

Factorization of the bluetooth and usb hid input driver logic, to reduce code
duplication and divergence.
Thanks to mlarkin@ for bluetooth devices tests.


Revision tags: OPENBSD_4_7_BASE
# 1.8 13-Oct-2009 miod

Connect pcppi bell to ukbd, so that x86 systems with usb console keyboard
can cause beeps on console. Reported by Greg Jones on misc@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 12-Feb-2006 miod

Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)


# 1.6 02-Jan-2006 brad

remove last traces of __BROKEN_INDIRECT_CONFIG.

Thanks to aanriot@ and Michael Knudsen for checking that alpha/i386/macppc
kernels still compile.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE SMP_SYNC_A SMP_SYNC_B UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

Final __P removal plus some cosmetic fixups


# 1.4 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.3 17-Apr-2001 aaron

branches: 1.3.6;
Implement cnbell(), an optional entrypoint that rings the console bell; from
NetBSD. deraadt@ ok


Revision tags: OPENBSD_2_8_BASE
# 1.2 30-Jun-2000 art

New timeout API.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.1 02-Jan-1999 niklas

branches: 1.1.6;
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson