#
1.29 |
|
23-May-2024 |
jsg |
remove unneeded includes; ok mpi@
|
Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
|
#
1.28 |
|
02-Jul-2022 |
visa |
Remove unused device poll functions.
Also remove unneeded includes of <sys/poll.h> and <sys/select.h>.
Some addenda from jsg@.
OK miod@ mpi@
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
|
#
1.27 |
|
31-Jul-2020 |
mglocker |
Nuke all occurrences of usbd_abort_pipe() if it gets called right before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes.
As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe() to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards.
ok gerhard@
|
Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.26 |
|
22-Mar-2019 |
sthen |
support Meinberg DCF600USB, from weerd@, ok phessler
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.25 |
|
30-Dec-2017 |
guenther |
Delete unnecessary <sys/file.h> includes
ok millert@ krw@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
02-Sep-2016 |
mpi |
Avoid calling usbd_set_config_index() in *_attach() and let the stack do it instead.
If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.23 |
|
12-Jul-2014 |
mpi |
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set the 'dying' flag.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.22 |
|
15-Nov-2013 |
pirofti |
Clean-up usbd_abort_pipe() usage.
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return.
"If it compiles, ok" mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.21 |
|
15-Apr-2013 |
mglocker |
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@
|
#
1.20 |
|
12-Apr-2013 |
mpi |
Instead of using a wrapper around usbd_transfer() when submitting a transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer.
ok sthen@, mglocker@
|
#
1.19 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.18 |
|
28-Mar-2013 |
tedu |
you probably don't need to include vnode.h or reboot.h. you most definitely absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.17 |
|
03-Jul-2011 |
matthew |
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
|
Revision tags: OPENBSD_4_9_BASE
|
#
1.16 |
|
25-Jan-2011 |
jakemsr |
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@
|
#
1.15 |
|
06-Dec-2010 |
jakemsr |
* 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()
|
#
1.14 |
|
23-Oct-2010 |
jakemsr |
check that a timeout(9) has been initialized before deleting it
ok phessler
|
#
1.13 |
|
23-Oct-2010 |
jakemsr |
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.
|
#
1.12 |
|
24-Sep-2010 |
yuo |
remove dying flag in detach() function. The dying flag will be set in activate()/DEACTIVATE.
ok deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.11 |
|
21-Nov-2009 |
deraadt |
in the detach function remove our usb task before calling any other teardown functions which could potentially sleep (and then, the usb task would get called for a half-torn down device)
|
#
1.10 |
|
13-Oct-2009 |
pirofti |
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@.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.9 |
|
26-Apr-2009 |
cnst |
in ca_attach() there is no need to set .value and .flags of sensors to 0, since autoconf(9) allocates softc with M_ZERO; ok deraadt
|
Revision tags: OPENBSD_4_5_BASE
|
#
1.8 |
|
21-Nov-2008 |
mbalmer |
Kill whitespace, remove unneeded ,
|
#
1.7 |
|
10-Sep-2008 |
blambert |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions.
ok art@, krw@
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.6 |
|
23-Nov-2007 |
mbalmer |
Don't use uninitialized variables in umbg_detach.
|
#
1.5 |
|
23-Nov-2007 |
mbalmer |
Degrade sensor status in an interrupt context.
|
#
1.4 |
|
12-Nov-2007 |
mbalmer |
Don't use utc_off, time is always reported in UTC.
|
#
1.3 |
|
10-Nov-2007 |
mbalmer |
Clean up some debugging left-overs.
|
#
1.2 |
|
10-Nov-2007 |
mbalmer |
knf.
|
#
1.1 |
|
10-Nov-2007 |
mbalmer |
umbg(4) is a driver to support the USB attached Meinberg USB5131 DCF77 radio clock. umbg(4) implements a timedelta sensor and reports the signal quality in the Signal sensor as percentage. The signal sensor status further indicates if the clock is free running (WARN).
ok dlg, jsg
|
#
1.28 |
|
02-Jul-2022 |
visa |
Remove unused device poll functions.
Also remove unneeded includes of <sys/poll.h> and <sys/select.h>.
Some addenda from jsg@.
OK miod@ mpi@
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
|
#
1.27 |
|
31-Jul-2020 |
mglocker |
Nuke all occurrences of usbd_abort_pipe() if it gets called right before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes.
As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe() to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards.
ok gerhard@
|
Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.26 |
|
22-Mar-2019 |
sthen |
support Meinberg DCF600USB, from weerd@, ok phessler
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.25 |
|
30-Dec-2017 |
guenther |
Delete unnecessary <sys/file.h> includes
ok millert@ krw@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
02-Sep-2016 |
mpi |
Avoid calling usbd_set_config_index() in *_attach() and let the stack do it instead.
If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.23 |
|
12-Jul-2014 |
mpi |
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set the 'dying' flag.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.22 |
|
15-Nov-2013 |
pirofti |
Clean-up usbd_abort_pipe() usage.
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return.
"If it compiles, ok" mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.21 |
|
15-Apr-2013 |
mglocker |
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@
|
#
1.20 |
|
12-Apr-2013 |
mpi |
Instead of using a wrapper around usbd_transfer() when submitting a transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer.
ok sthen@, mglocker@
|
#
1.19 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.18 |
|
28-Mar-2013 |
tedu |
you probably don't need to include vnode.h or reboot.h. you most definitely absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.17 |
|
03-Jul-2011 |
matthew |
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
|
Revision tags: OPENBSD_4_9_BASE
|
#
1.16 |
|
25-Jan-2011 |
jakemsr |
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@
|
#
1.15 |
|
06-Dec-2010 |
jakemsr |
* 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()
|
#
1.14 |
|
23-Oct-2010 |
jakemsr |
check that a timeout(9) has been initialized before deleting it
ok phessler
|
#
1.13 |
|
23-Oct-2010 |
jakemsr |
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.
|
#
1.12 |
|
24-Sep-2010 |
yuo |
remove dying flag in detach() function. The dying flag will be set in activate()/DEACTIVATE.
ok deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.11 |
|
21-Nov-2009 |
deraadt |
in the detach function remove our usb task before calling any other teardown functions which could potentially sleep (and then, the usb task would get called for a half-torn down device)
|
#
1.10 |
|
13-Oct-2009 |
pirofti |
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@.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.9 |
|
26-Apr-2009 |
cnst |
in ca_attach() there is no need to set .value and .flags of sensors to 0, since autoconf(9) allocates softc with M_ZERO; ok deraadt
|
Revision tags: OPENBSD_4_5_BASE
|
#
1.8 |
|
21-Nov-2008 |
mbalmer |
Kill whitespace, remove unneeded ,
|
#
1.7 |
|
10-Sep-2008 |
blambert |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions.
ok art@, krw@
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.6 |
|
23-Nov-2007 |
mbalmer |
Don't use uninitialized variables in umbg_detach.
|
#
1.5 |
|
23-Nov-2007 |
mbalmer |
Degrade sensor status in an interrupt context.
|
#
1.4 |
|
12-Nov-2007 |
mbalmer |
Don't use utc_off, time is always reported in UTC.
|
#
1.3 |
|
10-Nov-2007 |
mbalmer |
Clean up some debugging left-overs.
|
#
1.2 |
|
10-Nov-2007 |
mbalmer |
knf.
|
#
1.1 |
|
10-Nov-2007 |
mbalmer |
umbg(4) is a driver to support the USB attached Meinberg USB5131 DCF77 radio clock. umbg(4) implements a timedelta sensor and reports the signal quality in the Signal sensor as percentage. The signal sensor status further indicates if the clock is free running (WARN).
ok dlg, jsg
|
#
1.27 |
|
31-Jul-2020 |
mglocker |
Nuke all occurrences of usbd_abort_pipe() if it gets called right before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes.
As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe() to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards.
ok gerhard@
|
Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.26 |
|
22-Mar-2019 |
sthen |
support Meinberg DCF600USB, from weerd@, ok phessler
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.25 |
|
30-Dec-2017 |
guenther |
Delete unnecessary <sys/file.h> includes
ok millert@ krw@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
02-Sep-2016 |
mpi |
Avoid calling usbd_set_config_index() in *_attach() and let the stack do it instead.
If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.23 |
|
12-Jul-2014 |
mpi |
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set the 'dying' flag.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.22 |
|
15-Nov-2013 |
pirofti |
Clean-up usbd_abort_pipe() usage.
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return.
"If it compiles, ok" mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.21 |
|
15-Apr-2013 |
mglocker |
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@
|
#
1.20 |
|
12-Apr-2013 |
mpi |
Instead of using a wrapper around usbd_transfer() when submitting a transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer.
ok sthen@, mglocker@
|
#
1.19 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.18 |
|
28-Mar-2013 |
tedu |
you probably don't need to include vnode.h or reboot.h. you most definitely absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.17 |
|
03-Jul-2011 |
matthew |
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
|
Revision tags: OPENBSD_4_9_BASE
|
#
1.16 |
|
25-Jan-2011 |
jakemsr |
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@
|
#
1.15 |
|
06-Dec-2010 |
jakemsr |
* 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()
|
#
1.14 |
|
23-Oct-2010 |
jakemsr |
check that a timeout(9) has been initialized before deleting it
ok phessler
|
#
1.13 |
|
23-Oct-2010 |
jakemsr |
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.
|
#
1.12 |
|
24-Sep-2010 |
yuo |
remove dying flag in detach() function. The dying flag will be set in activate()/DEACTIVATE.
ok deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.11 |
|
21-Nov-2009 |
deraadt |
in the detach function remove our usb task before calling any other teardown functions which could potentially sleep (and then, the usb task would get called for a half-torn down device)
|
#
1.10 |
|
13-Oct-2009 |
pirofti |
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@.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.9 |
|
26-Apr-2009 |
cnst |
in ca_attach() there is no need to set .value and .flags of sensors to 0, since autoconf(9) allocates softc with M_ZERO; ok deraadt
|
Revision tags: OPENBSD_4_5_BASE
|
#
1.8 |
|
21-Nov-2008 |
mbalmer |
Kill whitespace, remove unneeded ,
|
#
1.7 |
|
10-Sep-2008 |
blambert |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions.
ok art@, krw@
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.6 |
|
23-Nov-2007 |
mbalmer |
Don't use uninitialized variables in umbg_detach.
|
#
1.5 |
|
23-Nov-2007 |
mbalmer |
Degrade sensor status in an interrupt context.
|
#
1.4 |
|
12-Nov-2007 |
mbalmer |
Don't use utc_off, time is always reported in UTC.
|
#
1.3 |
|
10-Nov-2007 |
mbalmer |
Clean up some debugging left-overs.
|
#
1.2 |
|
10-Nov-2007 |
mbalmer |
knf.
|
#
1.1 |
|
10-Nov-2007 |
mbalmer |
umbg(4) is a driver to support the USB attached Meinberg USB5131 DCF77 radio clock. umbg(4) implements a timedelta sensor and reports the signal quality in the Signal sensor as percentage. The signal sensor status further indicates if the clock is free running (WARN).
ok dlg, jsg
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.26 |
|
22-Mar-2019 |
sthen |
support Meinberg DCF600USB, from weerd@, ok phessler
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.25 |
|
30-Dec-2017 |
guenther |
Delete unnecessary <sys/file.h> includes
ok millert@ krw@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
02-Sep-2016 |
mpi |
Avoid calling usbd_set_config_index() in *_attach() and let the stack do it instead.
If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.23 |
|
12-Jul-2014 |
mpi |
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set the 'dying' flag.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.22 |
|
15-Nov-2013 |
pirofti |
Clean-up usbd_abort_pipe() usage.
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return.
"If it compiles, ok" mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.21 |
|
15-Apr-2013 |
mglocker |
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@
|
#
1.20 |
|
12-Apr-2013 |
mpi |
Instead of using a wrapper around usbd_transfer() when submitting a transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer.
ok sthen@, mglocker@
|
#
1.19 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.18 |
|
28-Mar-2013 |
tedu |
you probably don't need to include vnode.h or reboot.h. you most definitely absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.17 |
|
03-Jul-2011 |
matthew |
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
|
Revision tags: OPENBSD_4_9_BASE
|
#
1.16 |
|
25-Jan-2011 |
jakemsr |
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@
|
#
1.15 |
|
06-Dec-2010 |
jakemsr |
* 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()
|
#
1.14 |
|
23-Oct-2010 |
jakemsr |
check that a timeout(9) has been initialized before deleting it
ok phessler
|
#
1.13 |
|
23-Oct-2010 |
jakemsr |
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.
|
#
1.12 |
|
24-Sep-2010 |
yuo |
remove dying flag in detach() function. The dying flag will be set in activate()/DEACTIVATE.
ok deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.11 |
|
21-Nov-2009 |
deraadt |
in the detach function remove our usb task before calling any other teardown functions which could potentially sleep (and then, the usb task would get called for a half-torn down device)
|
#
1.10 |
|
13-Oct-2009 |
pirofti |
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@.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.9 |
|
26-Apr-2009 |
cnst |
in ca_attach() there is no need to set .value and .flags of sensors to 0, since autoconf(9) allocates softc with M_ZERO; ok deraadt
|
Revision tags: OPENBSD_4_5_BASE
|
#
1.8 |
|
21-Nov-2008 |
mbalmer |
Kill whitespace, remove unneeded ,
|
#
1.7 |
|
10-Sep-2008 |
blambert |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions.
ok art@, krw@
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.6 |
|
23-Nov-2007 |
mbalmer |
Don't use uninitialized variables in umbg_detach.
|
#
1.5 |
|
23-Nov-2007 |
mbalmer |
Degrade sensor status in an interrupt context.
|
#
1.4 |
|
12-Nov-2007 |
mbalmer |
Don't use utc_off, time is always reported in UTC.
|
#
1.3 |
|
10-Nov-2007 |
mbalmer |
Clean up some debugging left-overs.
|
#
1.2 |
|
10-Nov-2007 |
mbalmer |
knf.
|
#
1.1 |
|
10-Nov-2007 |
mbalmer |
umbg(4) is a driver to support the USB attached Meinberg USB5131 DCF77 radio clock. umbg(4) implements a timedelta sensor and reports the signal quality in the Signal sensor as percentage. The signal sensor status further indicates if the clock is free running (WARN).
ok dlg, jsg
|
#
1.25 |
|
30-Dec-2017 |
guenther |
Delete unnecessary <sys/file.h> includes
ok millert@ krw@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
02-Sep-2016 |
mpi |
Avoid calling usbd_set_config_index() in *_attach() and let the stack do it instead.
If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.23 |
|
12-Jul-2014 |
mpi |
tedu another bunch of DVACT_DEACTIVATE handlers that do nothing but set the 'dying' flag.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.22 |
|
15-Nov-2013 |
pirofti |
Clean-up usbd_abort_pipe() usage.
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return.
"If it compiles, ok" mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.21 |
|
15-Apr-2013 |
mglocker |
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@
|
#
1.20 |
|
12-Apr-2013 |
mpi |
Instead of using a wrapper around usbd_transfer() when submitting a transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer.
ok sthen@, mglocker@
|
#
1.19 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.18 |
|
28-Mar-2013 |
tedu |
you probably don't need to include vnode.h or reboot.h. you most definitely absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.17 |
|
03-Jul-2011 |
matthew |
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
|
Revision tags: OPENBSD_4_9_BASE
|
#
1.16 |
|
25-Jan-2011 |
jakemsr |
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@
|
#
1.15 |
|
06-Dec-2010 |
jakemsr |
* 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()
|
#
1.14 |
|
23-Oct-2010 |
jakemsr |
check that a timeout(9) has been initialized before deleting it
ok phessler
|
#
1.13 |
|
23-Oct-2010 |
jakemsr |
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.
|
#
1.12 |
|
24-Sep-2010 |
yuo |
remove dying flag in detach() function. The dying flag will be set in activate()/DEACTIVATE.
ok deraadt@
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.11 |
|
21-Nov-2009 |
deraadt |
in the detach function remove our usb task before calling any other teardown functions which could potentially sleep (and then, the usb task would get called for a half-torn down device)
|
#
1.10 |
|
13-Oct-2009 |
pirofti |
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@.
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.9 |
|
26-Apr-2009 |
cnst |
in ca_attach() there is no need to set .value and .flags of sensors to 0, since autoconf(9) allocates softc with M_ZERO; ok deraadt
|
Revision tags: OPENBSD_4_5_BASE
|
#
1.8 |
|
21-Nov-2008 |
mbalmer |
Kill whitespace, remove unneeded ,
|
#
1.7 |
|
10-Sep-2008 |
blambert |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions.
ok art@, krw@
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.6 |
|
23-Nov-2007 |
mbalmer |
Don't use uninitialized variables in umbg_detach.
|
#
1.5 |
|
23-Nov-2007 |
mbalmer |
Degrade sensor status in an interrupt context.
|
#
1.4 |
|
12-Nov-2007 |
mbalmer |
Don't use utc_off, time is always reported in UTC.
|
#
1.3 |
|
10-Nov-2007 |
mbalmer |
Clean up some debugging left-overs.
|
#
1.2 |
|
10-Nov-2007 |
mbalmer |
knf.
|
#
1.1 |
|
10-Nov-2007 |
mbalmer |
umbg(4) is a driver to support the USB attached Meinberg USB5131 DCF77 radio clock. umbg(4) implements a timedelta sensor and reports the signal quality in the Signal sensor as percentage. The signal sensor status further indicates if the clock is free running (WARN).
ok dlg, jsg
|