Age | Commit message (Collapse) | Author |
|
ok jsg kevlo claudio; committing with miod's permission (src is soft-locked)
|
|
data interface. lets an "MTK GPS Receiver" work, as reported by
Daniel C. Sinclair.
ok miod@
|
|
changes:
* use usb_ref_{incr,decr,wait}() to avoid detaching the driver while a
process is still using the hardware.
* don't add timeout(9)s if the device is detached.
* add checks to see if the device has been detached before running
ioctls, timeouts, and tasks.
* use usb_wait_task() to wait for tasks to complete.
ok damien@
|
|
date: 2011/02/04 08:21:39; author: jakemsr; state: Exp; lines: +85 -34
* merge 'onqueue' and 'running' members of struct usb_task into
a new member, 'state'.
* add new function 'usb_wait_task()', which waits for queued or running
usb_tasks to complete.
* in the USB_DEVICEINFO ioctl, fill struct usb_device_info in a
usb_task, thereby avoiding races against driver attach/detach.
but this time make the state a bitmask, since it is valid to be added
to the task queue while the task is running. also be more careful
about waking up the task when state changes.
ok miod@
|
|
this is causing problems with suspend/resume for some people.
|
|
process is still using the hardware.
* don't add timeout(9)s if the device is detached.
* add checks to see if the device has been detached before running
ioctls, timeouts, and tasks.
* use usb_wait_task() to wait for tasks to complete.
ok damien@
|
|
a new member, 'state'.
* add new function 'usb_wait_task()', which waits for queued or running
usb_tasks to complete.
* in the USB_DEVICEINFO ioctl, fill struct usb_device_info in a
usb_task, thereby avoiding races against driver attach/detach.
ok miod@
|
|
Ok jsg@, sthen@, miod@
|
|
|
|
Ok jsg@, sthen@, miod@
|
|
|
|
|
|
|
|
them from userland, and nothing in the kernel uses them.
ok krw@, miod@
|
|
|
|
|
|
interfaces as being claimed in the usbd_device's copy of the interface
descriptors
* allow ugen(4) to be attached if there are unused interfaces in a
configuration that has had drivers attached
* make ugen(4) aware that it may be sharing a device with (an)other
driver(s), and if so:
* do not let ugen(4) change the configuration
* do not let ugen(4) access the already claimed interfaces
discussed with deraadt and miod
|
|
* fill 'udi_serial' with the serial number in usbd_fill_deviceinfo().
* add compatability ioctl/struct so old binaries continue to work.
discussed with deraadt and miod
|
|
since the latter is not initialized in monitor mode.
should fix a panic reported by Benjamin Nadland with kismet.
|
|
from Jordi Beltran Creix.
|
|
|
|
from Jordi Beltran Creix.
|
|
|
|
do not read back the LED GPIO pin since it is configured in output
only mode.
makes the link LED blink on the WiFiStation EXT when scanning (the
LEDs indicating the signal strength are not working yet).
|
|
Atheros have reworked their website.
|
|
|
|
remove padding after 802.11 header if any.
|
|
this dramatically reduces the number of register reads/writes and
thus the number of context switches when changing channel.
makes scanning much faster.
|
|
update Rx filter after association.
move RECV_START command outside of rx_enable since rx_enable callback
is not allowed to fail.
|
|
this adds preliminary support for the Atheros AR9271 chipset and
probably the AR9280+AR7010 and AR9287+AR7010 too though those were
not tested.
scanning still takes a very long time (~1 sec per channel) but
otherwise, operation in STA mode seems stable.
will implement fast channel change soon.
committed over the Ubiquiti WifiStation EXT (AR9271) on i386 with WPA.
requires firmware (see man page for details)
ok deraadt@ (who checked the .h files)
|
|
|
|
cleanup other AR928X+AR7010 ids while i'm here.
|
|
surrounding code.
|
|
|
|
ok robert@
|
|
* use usbd_ref_{incr,decr,wait} to not detach while another process/thread
is using the driver
* s/usb_rem_task/usb_rem_wait_task/ in detach functions because detach
doesn't always happen in the task thread; otherwise a task could be
running while the driver detaches
* in detach functions, first delete pending timeouts, then wait for
processes to be done with the driver before freeing resources
ok martynas@
|
|
* add functions to increment and decrement the reference count, and a
function to wait until the reference count is zero
ok martynas@
|
|
has no usbd_device.
found the hard way by deraadt
|
|
DVACT_DEACTIVATE case for drivers that don't have activate finctions
* fill out cfattach activate functions and call usbd_deactivate() in
the DVACT_DEACTIVATE case for drivers that don't have a dying flag
"ok with the intent" miod@
|
|
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument].
This allows MI drivers to implement mmap() routines without having to know
about the pmap_phys_address() implementation and #ifdef obfuscation.
|
|
unneeded macro around it.
- fix a reference to the previous driver name utwitch while here
ok jakemsr@
|
|
|
|
|
|
|
|
set. no other transfer methods catch signals, and it is not possible
to restart these transfers reliably.
|
|
ok jakemsr@
|
|
ok jakemsr@
|
|
from aschrijver@
ok deraadt@
|
|
|
|
from aschrijver@
|