summaryrefslogtreecommitdiff
path: root/sys/dev/usb
AgeCommit message (Collapse)Author
2014-04-27Do not let the bluetooth HID device, present in Apple machines with USB,Martin Pieuchot
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@
2014-04-24Change the usbd_*_report() family of functions to take a usbd_deviceMartin Pieuchot
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@
2014-04-20regenStefan Sperling
2014-04-20Add device ID for Ralink (now branded Mediatek) MT7601 USB wifi deviceStefan Sperling
2014-04-15Modify the uhidev_*_report() methods to always take a report ID argumentMartin Pieuchot
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@
2014-04-12simplify flag testsJonathan Gray
2014-04-07- Remove a enumerator for supported sensors, makes better usage of our usb api;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@
2014-04-07Use the `use_polling' hack to make sure usb_delay_ms() will notMartin Pieuchot
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.
2014-04-03regenMiod Vallat
2014-04-03XIRING Ximax CDC adapterMiod Vallat
2014-04-03XHCI -> xHCI to be consistent with device names.Martin Pieuchot
2014-03-31Force the detach of all USB devices by disconnecting the root hubsMartin Pieuchot
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@
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-28Do not declare a struct as const if we write to it, fix build on sparc64Martin Pieuchot
reported by brad@.
2014-03-28If a command is submitted when the hardware is already gone, it willMartin Pieuchot
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.
2014-03-25Instead of matching root hubs with a custom address, that only worksMartin Pieuchot
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.
2014-03-25Upon resume do a full reset of the HC, including the command and eventMartin Pieuchot
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.
2014-03-25Add a driver for simple usb serial devices, it attachesJonathan Gray
ucom but doesn't set any custom callbacks. John Long has a HPx9G+ device that requires this.
2014-03-25regenJonathan Gray
2014-03-25add HP-x9G+Jonathan Gray
2014-03-23Fix uhidev_detach() when detaching a device which did not claimed for allandre
report IDs, on those cases some positions on sc_subdevs[] can be null. Initial analysis by guenther@. ok mpi@
2014-03-23Revert audio key handling, requested by ratchov@Martin Pieuchot
2014-03-20add USB_PRODUCT_ITUNER_USBLCD256x64 as UQ_BAD_HID so libusb can talk viaAaron Bieber
interrupt transfers OK sthen@
2014-03-20syncAaron Bieber
2014-03-20Add ITUNER USBLCD256x64Aaron Bieber
OK sthen@
2014-03-20Add several devices we already have defined in usbdevs and are also known to beandre
UPSes. (forced commit due to previous empty commit message) ok mpi@ sthen@
2014-03-20*** empty log message ***andre
2014-03-19When BatteryPresent flag is not set, invalidate battery-dependent sensors.andre
suggested by deraadt@ ok mpi@
2014-03-19spacingTheo de Raadt
2014-03-19Removing devices supported by upd(4) from quirks.andre
ok mpi@
2014-03-19Stop abusing the rcvif pointer to pass wireless nodes down to theMartin Pieuchot
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@
2014-03-19Add a temporary hack to let a subdriver claim all the reportIDs ofMartin Pieuchot
a device. This should be removed once all the drivers attaching to uhidev(4) are converted. ok andre@, sthen@
2014-03-18Properly clear and free the endpoint associated to a pipe. Do notMartin Pieuchot
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.
2014-03-17Add upd(4) to the tree, disabled. Please do not enable it yet.andre
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".
2014-03-16Move the logic to deal with devices with broken descriptors into itsMartin Pieuchot
own function and don't leave the driver half-configured if a children doesn't set the interrupt function. tested by jeremy@, ok andre@
2014-03-16Convert LED page defines to the common usage names patern, noMartin Pieuchot
functionnal change. ok andre@
2014-03-16Don't use volume keys when in raw-mode (this doesn't work), and letMartin Pieuchot
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@
2014-03-16Add Sitecom LN-032 from/tested by Fabian Raetz.Jonathan Gray
While here add a few other AX88179 devices as well.
2014-03-16regenJonathan Gray
2014-03-16Add Sitecom LN-032 from/tested by Fabian Raetz.Jonathan Gray
While here add a few other AX88179 devices as well.
2014-03-15Starting the spring cleanup.Martin Pieuchot
2014-03-15Remove debug leftover.Martin Pieuchot
2014-03-15Unify the *hci_timeout() functions, there should be no functional change.Martin Pieuchot
2014-03-15Add usage pages from usb HID Power Devices spec.andre
ok mpi@
2014-03-14Add the ISY IWL 4000 a new urtwn(4) device, from Fabian Raetz andMartin Pieuchot
Peter J. Philipp.
2014-03-14regenMartin Pieuchot
2014-03-14Add the ISY IWL 4000 a new urtwn(4) device, from Fabian Raetz andMartin Pieuchot
Peter J. Philipp.
2014-03-14Have some style.Paul Irofti
Okay mpi@
2014-03-12If a device is babbling do a full reset of the associated endpointMartin Pieuchot
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@.
2014-03-11Kill dead links.Martin Pieuchot