History log of /openbsd/sys/dev/usb/ukbd.c (Results 26 – 50 of 90)
Revision Date Author Comments
# 1756c2e3 24-Apr-2014 mpi <mpi@openbsd.org>

Change the usbd_*_report() family of functions to take a usbd_device
and a infaceno argument instead of an iface pointer. While here,
remove some unused functions and inlined usbd_read_report_desc s

Change the usbd_*_report() family of functions to take a usbd_device
and a infaceno argument instead of an iface pointer. While here,
remove some unused functions and inlined usbd_read_report_desc since
it is used only once.

This is part of plumbing required to convert the various USB HID devices
to handle multiples report IDs.

ok andre@

show more ...


# 2b5428ee 15-Apr-2014 mpi <mpi@openbsd.org>

Modify the uhidev_*_report() methods to always take a report ID argument
instead of using the default, per-driver, one. This is a step to move
away from the 1 report ID <-> 1 driver design which is

Modify the uhidev_*_report() methods to always take a report ID argument
instead of using the default, per-driver, one. This is a step to move
away from the 1 report ID <-> 1 driver design which is no longer true
since the addition of upd(4).

ok andre@

show more ...


# c8b0a2fb 26-Jan-2014 miod <miod@openbsd.org>

Attempt to make user changes of keyboard layout a bit more `sticky' on wsmux
kernels:
- keyboard drivers will now tell wskbd if the keyboard layout they ask
for is a default value, or a value they

Attempt to make user changes of keyboard layout a bit more `sticky' on wsmux
kernels:
- keyboard drivers will now tell wskbd if the keyboard layout they ask
for is a default value, or a value they are 100% sure of (either
because your kernel has a XXXKBD_LAYOUT option, or because the
driver can tell the keyboard layout, e.g. by the country code on USB
keyboards which provide it, such as Sun's)
- when attaching a keyboard with a non-default layout, the layout will
become the default layout of the mux for new keyboard attachments if
the mux doesn't have a layout set already.
- when changing the keyboard layout of a particular keyboard with an
ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the
default layout of the mux for new keyboard attachments.

ok mpi@

show more ...


# 893bbb9b 15-Nov-2013 pirofti <pirofti@openbsd.org>

Clean-up the HID environment.


This set of drivers were very very dirty.

i/ Clean-up the match/attach multi-casting hackjob
- stop casting aux to every attach arg in existance
- be consistent abo

Clean-up the HID environment.


This set of drivers were very very dirty.

i/ Clean-up the match/attach multi-casting hackjob
- stop casting aux to every attach arg in existance
- be consistent about casting it only to uhidev_attach_arg
- fetch the usb_attach_arg from above where needed

ii/ Sort out the activate routines
- leave the deactivation to the parent (uhidev(4))
- ditch the sc_dying flag in favour of usbd_is_dying()

iii/ Get closer to keeping all the usb hid information in the uhidev
structure (one uhidev per reportID)
- store the usbd_device in the uhidev
- use it consistently instead of always peaking at the parent's
soft state

Okay mpi@

show more ...


# 3a51b6e8 13-Nov-2013 pirofti <pirofti@openbsd.org>

Polling is done per controller not per interface.

The controllers are linked through device->bus so the iface is redundant.

So fixing usbd_dopoll() to take the device as argument and making
usbd_in

Polling is done per controller not per interface.

The controllers are linked through device->bus so the iface is redundant.

So fixing usbd_dopoll() to take the device as argument and making
usbd_interface2device_handle() private (for now) inside usbdi_util.

Tested and okay mpi@

show more ...


# ae3d0df3 26-Jun-2013 mpi <mpi@openbsd.org>

Flash the LEDs only if the output report size is non null.

This prevent some Logitech Mice, at least G500 and G9x, that
contain various HID devices including a keyboard without LEDs
to keep disconne

Flash the LEDs only if the output report size is non null.

This prevent some Logitech Mice, at least G500 and G9x, that
contain various HID devices including a keyboard without LEDs
to keep disconnecting right after being attached.

Problem reported by abieber@ and Damien Couderc, ok miod@

show more ...


# ab0b1be7 15-Apr-2013 mglocker <mglocker@openbsd.org>

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@

show more ...


# d819f84d 13-Jul-2012 shadchin <shadchin@openbsd.org>

Add support compose LED on a usb keyboard

ok mpi@, from Alexander Polakov <polachok at gmail dot com>


# ca4c658f 29-Jan-2012 mpi <mpi@openbsd.org>

Swap the keycodes of the two swapped keys of Apple ISO keyboards.
This fix the US layout on ISO keyboards and the swapped keys issue under X11.

ok miod@, shadchin@


# ab4a9c14 04-Dec-2011 mpi <mpi@openbsd.org>

Add support for Apple fn keys

based on a diff from jcs@, ok miod@


# 0b1c7607 03-Jul-2011 matthew <matthew@openbsd.org>

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ al

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago

show more ...


# dc2e71cb 29-Aug-2010 miod <miod@openbsd.org>

Translation code for Fn-key sequences on the Gdium Liberty internal keyboard,
which reports Fn as a regular key.


# 8530dcc6 02-Aug-2010 miod <miod@openbsd.org>

Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID and
USB_SET_REPORT ioctls in ukbd and ums.
This allows usbhidctl to be used on these devices e.g. to dump the report
descriptor of troubl

Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID and
USB_SET_REPORT ioctls in ukbd and ums.
This allows usbhidctl to be used on these devices e.g. to dump the report
descriptor of troublesome models.
ok deraadt@

show more ...


# f77164e9 31-Jul-2010 miod <miod@openbsd.org>

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


# 75114251 22-Feb-2010 miod <miod@openbsd.org>

Undo 1.48 and 1.49 for now, and go back to the drawing board; PR #6320


# c2337911 25-Nov-2009 miod <miod@openbsd.org>

Simpler logic to ignore the Naturetech keyboard babbling; discard extra
data if we already have pending data to process in the timeout handler.

help kettenis@; commited from the Naturetech #$@!&! ma

Simpler logic to ignore the Naturetech keyboard babbling; discard extra
data if we already have pending data to process in the timeout handler.

help kettenis@; commited from the Naturetech #$@!&! machine.

show more ...


# 3bf5affd 25-Nov-2009 miod <miod@openbsd.org>

Ignore repeated data in ukbd_intr(), for keyboards who flood us on a regular
basis even in the absence of keyboard events; Naturetech onboard keyboard
no longer loses keystrokes.
Joint work with kett

Ignore repeated data in ukbd_intr(), for keyboards who flood us on a regular
basis even in the absence of keyboard events; Naturetech onboard keyboard
no longer loses keystrokes.
Joint work with kettenis@

show more ...


# 0e17d459 13-Oct-2009 miod <miod@openbsd.org>

Pass audio keys to the audio layer even when the keyboard is in raw mode,
to match what pckbd does; reported by mk@


# e78728c7 13-Oct-2009 pirofti <pirofti@openbsd.org>

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


# 6f5998df 31-Jul-2009 blambert <blambert@openbsd.org>

timeout_add -> timeout_add_msec

ok jsg@


# 668304ad 21-Jan-2009 grange <grange@openbsd.org>

Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).
No functional changes.

ok krw@ miod@


# 1b109c5b 21-Jan-2009 miod <miod@openbsd.org>

It turns out that Sun USB keyboards really follow the HID specification for
its country code, but I had forgotten one line in the layout table.

This now picks the correct layout for swedish and brit

It turns out that Sun USB keyboards really follow the HID specification for
its country code, but I had forgotten one line in the layout table.

This now picks the correct layout for swedish and british (uk) sun keyboards.

show more ...


# d874cce4 26-Jun-2008 ray <ray@openbsd.org>

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code t

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

show more ...


# e35b5db4 08-Jun-2008 miod <miod@openbsd.org>

Now that all ports behave, remove the safety code doing cnpollc behind
the scene around cngetc calls and whining loudly about it. This will save
room on floppies (-:


# 2fa9a9d1 19-May-2008 miod <miod@openbsd.org>

Add the Sun extended keys (L keys, volume keys) to the console mode layouts.


1234