#
53c6612d |
| 12-Jul-2014 |
mpi <mpi@openbsd.org> |
Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were to set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag.
Even if the purpose of
Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were to set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag.
Even if the purpose of this flag is questionnable on OpenBSD because DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small step towards the simplification of the autoconf(9) device states.
This cleaning is now possible thanks to the work of pirofti@ to convert all the USB drivers to properly use usbd_is_dying().
Discussed many times with deraadt@
show more ...
|
#
6da4b19d |
| 19-Mar-2014 |
mpi <mpi@openbsd.org> |
Stop abusing the rcvif pointer to pass wireless nodes down to the 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@
Stop abusing the rcvif pointer to pass wireless nodes down to the 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@
show more ...
|
#
ae343004 |
| 07-Mar-2014 |
mpi <mpi@openbsd.org> |
Do not define per-driver DEBUG variable when USB_DEBUG is defined. It's really impossible to debug the USB stack when any single device you plug in your machine starts to vomit its own poetry,
|
#
5e42885f |
| 07-Aug-2013 |
bluhm <bluhm@openbsd.org> |
Most network drivers include netinet/in_var.h, but apparently they don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
|
#
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 ...
|
#
d2305912 |
| 26-Oct-2011 |
jasper <jasper@openbsd.org> |
apply a fix by Steven Chamberlain <steven@pyro.eu.org>, via freebsd:
Fix an issue with 11g beacon frames which looks to be a limitation on the largest multi-write size:
== I looked further into the
apply a fix by Steven Chamberlain <steven@pyro.eu.org>, via freebsd:
Fix an issue with 11g beacon frames which looks to be a limitation on the largest multi-write size:
== I looked further into the magic 88-byte threshold after which the bug occurs. It turns out that figure included the 24-byte tx_desc, and up to 64 bytes of beacon frame (header+data).
rum_write_multi doesn't seem happy with writing >64 bytes at a time to the MAC register. If I break it up into separate calls (e.g. bytes 0-63, then bytes 64-65, written at the appropriate offset) I see the proper beacon frames being transmitted now. ==
tweak by miod@ ok deraadt@
show more ...
|
#
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 ...
|
#
0036ea2d |
| 25-Jan-2011 |
jakemsr <jakemsr@openbsd.org> |
garbage collect "usb events". without /dev/usb there is no way to access them from userland, and nothing in the kernel uses them.
ok krw@, miod@
|
#
12136ef5 |
| 30-Dec-2010 |
jakemsr <jakemsr@openbsd.org> |
* do not add timeouts if the driver is dying * 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 b
* do not add timeouts if the driver is dying * 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@
show more ...
|
#
7d128c60 |
| 17-Dec-2010 |
jasper <jasper@openbsd.org> |
- use nitems()
ok jakemsr@
|
#
7b043b62 |
| 06-Dec-2010 |
jakemsr <jakemsr@openbsd.org> |
* replace per-driver dying and/or other state variables with use of usbd_deactivete() and usbd_is_dying() * use usbd_deactivate() in activate()/DEACTIVATE * convert a few more direct checks of the
* replace per-driver dying and/or other state variables with use of usbd_deactivete() and usbd_is_dying() * use usbd_deactivate() in activate()/DEACTIVATE * convert a few more direct checks of the associated bus' dying flag with usbd_is_dying()
show more ...
|
#
5dd621ee |
| 27-Oct-2010 |
jakemsr <jakemsr@openbsd.org> |
don't free network related resources if they were not allocated
|
#
c7438bdd |
| 23-Oct-2010 |
jakemsr <jakemsr@openbsd.org> |
check that a timeout(9) has been initialized before deleting it
ok phessler
|
#
c33449aa |
| 23-Oct-2010 |
jakemsr <jakemsr@openbsd.org> |
create another kthread to run xfer abort tasks. xfer abort tasks cannot be run from the generic task kthread, because xfers that need to be aborted block newly queued tasks from running (i.e. the xf
create another kthread to run xfer abort tasks. xfer abort tasks cannot be run from the generic task kthread, because xfers that need to be aborted block newly queued tasks from running (i.e. the xfer to be aborted blocks the abort of that task). as there are now three types of usb tasks, add an argument to usb_init_task() and another member to struct usb_task to specify the task type.
fixes boot hangs that are showing up because we now use usb tasks to attach/detach usb devices.
show more ...
|
#
f110151d |
| 27-Aug-2010 |
jsg <jsg@openbsd.org> |
remove the unused if_init callback in struct ifnet ok deraadt@ henning@ claudio@
|
#
c8fc8278 |
| 02-Jul-2010 |
tedu <tedu@openbsd.org> |
fix a variety of uninit errors. ok and one correction deraadt
|
#
9b074ffa |
| 20-Apr-2010 |
tedu <tedu@openbsd.org> |
remove proc.h include from uvm_map.h. This has far reaching effects, as sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add pro
remove proc.h include from uvm_map.h. This has far reaching effects, as sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
show more ...
|
#
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@.
|
#
981450df |
| 02-Aug-2009 |
miod <miod@openbsd.org> |
Never return nonzero in a device activate method invoked with DVACT_ACTIVATE, for this prevents it to be invoked with DVACT_DEACTIVATE later. This had been sweeped some time ago already, but bad cons
Never return nonzero in a device activate method invoked with DVACT_ACTIVATE, for this prevents it to be invoked with DVACT_DEACTIVATE later. This had been sweeped some time ago already, but bad constructs crept in again.
show more ...
|
#
0d2a4083 |
| 10-Jul-2009 |
blambert <blambert@openbsd.org> |
timeout_add -> timeout_add_msec
ok damien@
|
#
5ecd424e |
| 27-Mar-2009 |
jsg <jsg@openbsd.org> |
Match on Edimax EW-7318Ug, EW-7318USg, EW-7618Ug
|
#
7117f35a |
| 27-Mar-2009 |
jsg <jsg@openbsd.org> |
Linksys WUSB200 should work according to linux driver
|
#
503f35a5 |
| 03-Feb-2009 |
kevlo <kevlo@openbsd.org> |
add Buffalo WLI-U2-SG54HG
ok damien@
|
#
71e644e0 |
| 22-Dec-2008 |
damien <damien@openbsd.org> |
do not leak an AMRR USB xfer at each ifconfig down/up.
|
#
2a4cd6fa |
| 10-Dec-2008 |
deraadt <deraadt@openbsd.org> |
another rum; Arndt at ba-loerrach.de
|