Age | Commit message (Collapse) | Author |
|
grab the console.
This makes ddb(4) usable with any simple wired USB keyboard on G3/G4
machines that do not have adb(4) input devices, on G5s and certainly on
some MacBooks too.
ok andre@, miod@
|
|
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@
|
|
|
|
|
|
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@
|
|
|
|
- Allocate/enable sensors wich match both: the static usage table of supported
usage IDs and the usages supported by the device;
- Do not attach when no sensors can be allocated;
- Makes device querying smarter: query the device just once for values stored
in the same reportid reply payload.
- Use sensor_status.
ok mpi@
|
|
call tsleep(9) on resume. deraadt@ pointed that this not needed
for powerdown since `cold' is set.
Another approach would be to call delay() directly in the reset
functions, but let stay coherent with the other HC drivers.
|
|
|
|
|
|
|
|
before suspending the machine.
Prior to this commit, devices were logically disconnected after
resuming the machine leading to funny races since the controller
was reset in between.
ok deraadt@
|
|
ok dlg@ mpi@ deraadt@
|
|
reported by brad@.
|
|
obviously time out. That is what happen when pipes are closed after
unplugging an xhci(4) express card for example. In such case, make
sure the command TRB is reset.
|
|
because USB_START_ADDR is defined to 0 and the softc is M_ZERO'd,
assume that root hubs are the only devices with a depth of 0.
Root hubs can now happily be detached and reattached.
|
|
rings, and rewrite all the addresses in the registers.
While here don't keep a copy of our usb(4) child device, autoconf(9)
knows how to reach our children.
|
|
ucom but doesn't set any custom callbacks.
John Long has a HPx9G+ device that requires this.
|
|
|
|
|
|
report IDs, on those cases some positions on sc_subdevs[] can be null.
Initial analysis by guenther@.
ok mpi@
|
|
|
|
interrupt transfers
OK sthen@
|
|
|
|
OK sthen@
|
|
UPSes.
(forced commit due to previous empty commit message)
ok mpi@ sthen@
|
|
|
|
suggested by deraadt@
ok mpi@
|
|
|
|
ok mpi@
|
|
driver start routines. Instead add & use a pointer in the pkthdr
since we don't want the overhead of using a mbuf_tags(9).
claudio@ pointed out that other subsystems might want to use this
pointer too, so here's a new cookie!
ok claudio@, mikeb@, deraadt@
|
|
a device. This should be removed once all the drivers attaching to
uhidev(4) are converted.
ok andre@, sthen@
|
|
forget to update the Endpoint Context with the last valid endpoint
and free the device resources, including its slot, when the default
pipe is closed.
Device addresses can now be reused and I should be done with
descriptor leaks.
|
|
At this moment upd(4) exposes data from usb-based uninterruptable power systems
(or just USB Power Devices), sysctl(8) sensors (read snmpd(8) friendly), it is
also an "in-base" alternative to other 3rdparty UPS-monitoring software, we
have plans to bring more features.
This is my first "something" into the tree. Lots of thanks:
sthen@ and blambert@ are the ones to blame for the idea/challenge.
mpi@ is the one whom pushed me to get it correct (from uhub -> uhidev).
reyk@ mentored me on OpenBSD-way with previous iked/relayd experiences.
ok mpi@, deraadt@ "get it in".
|
|
own function and don't leave the driver half-configured if a children
doesn't set the interrupt function.
tested by jeremy@, ok andre@
|
|
functionnal change.
ok andre@
|
|
Xorg driver do the translation and handle them as regular keys. Fixes
confusion caused by the volume being changed twice in contradictory
ways: once by X programs and once by the ukbd(4) driver.
ok ratchov@
|
|
While here add a few other AX88179 devices as well.
|
|
|
|
While here add a few other AX88179 devices as well.
|
|
|
|
|
|
|
|
ok mpi@
|
|
Peter J. Philipp.
|
|
|
|
Peter J. Philipp.
|
|
Okay mpi@
|
|
before telling the stack/driver that the responsible transfer is
done.
Since the request sequence requires, in the present form, to submit
two commands from the interrupt handler, modify the command routine
to be able to submit asynchronous commands.
I can now use my crappy urtwn(4) over xhci(4).
While here convert some #if -> #ifdef, pointed out by brad@.
|
|
|