#
1.43 |
|
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.42 |
|
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@
|
#
1.41 |
|
09-Apr-2022 |
naddy |
constify method tables in USB serial drivers
ok miod@
|
Revision tags: OPENBSD_7_1_BASE
|
#
1.40 |
|
09-Jan-2022 |
jsg |
spelling feedback and ok tb@ jmc@ ok ratchov@
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.39 |
|
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_7_BASE
|
#
1.38 |
|
12-Nov-2019 |
mpi |
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).
ok cheloha@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.37 |
|
27-Apr-2018 |
guenther |
Delete superfluous includes of <sys/file.>
ok krw@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
#
1.42 |
|
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@
|
#
1.41 |
|
09-Apr-2022 |
naddy |
constify method tables in USB serial drivers
ok miod@
|
Revision tags: OPENBSD_7_1_BASE
|
#
1.40 |
|
09-Jan-2022 |
jsg |
spelling feedback and ok tb@ jmc@ ok ratchov@
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.39 |
|
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_7_BASE
|
#
1.38 |
|
12-Nov-2019 |
mpi |
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).
ok cheloha@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.37 |
|
27-Apr-2018 |
guenther |
Delete superfluous includes of <sys/file.>
ok krw@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
#
1.41 |
|
09-Apr-2022 |
naddy |
constify method tables in USB serial drivers
ok miod@
|
Revision tags: OPENBSD_7_1_BASE
|
#
1.40 |
|
09-Jan-2022 |
jsg |
spelling feedback and ok tb@ jmc@ ok ratchov@
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.39 |
|
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_7_BASE
|
#
1.38 |
|
12-Nov-2019 |
mpi |
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).
ok cheloha@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.37 |
|
27-Apr-2018 |
guenther |
Delete superfluous includes of <sys/file.>
ok krw@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
#
1.40 |
|
09-Jan-2022 |
jsg |
spelling feedback and ok tb@ jmc@ ok ratchov@
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.39 |
|
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_7_BASE
|
#
1.38 |
|
12-Nov-2019 |
mpi |
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).
ok cheloha@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.37 |
|
27-Apr-2018 |
guenther |
Delete superfluous includes of <sys/file.>
ok krw@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
#
1.39 |
|
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_7_BASE
|
#
1.38 |
|
12-Nov-2019 |
mpi |
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).
ok cheloha@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.37 |
|
27-Apr-2018 |
guenther |
Delete superfluous includes of <sys/file.>
ok krw@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
#
1.38 |
|
12-Nov-2019 |
mpi |
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).
ok cheloha@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
|
#
1.37 |
|
27-Apr-2018 |
guenther |
Delete superfluous includes of <sys/file.>
ok krw@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
#
1.37 |
|
27-Apr-2018 |
guenther |
Delete superfluous includes of <sys/file.>
ok krw@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.36 |
|
15-Mar-2018 |
kevlo |
Remove unused struct member.
ok deraadt@
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.35 |
|
08-Apr-2017 |
deraadt |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.34 |
|
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_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.33 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.32 |
|
12-Jul-2014 |
mpi |
Kill the last dumb DVACT_DEACTIVATE handlers.
|
#
1.31 |
|
12-Jul-2014 |
tedu |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.30 |
|
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@
|
#
1.29 |
|
15-Nov-2013 |
pirofti |
Sort-out activate functionality for ucom(4) and it's parents.
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it.
Also remove sc_dying in ucom(4) and use usbd_is_dying() instead.
Okay mpi@.
|
#
1.28 |
|
07-Nov-2013 |
pirofti |
Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().
Okay mpi@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
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.26 |
|
28-Mar-2013 |
tedu |
proc.h is way too much header for usb to handle.
|
#
1.25 |
|
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.24 |
|
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.23 |
|
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.22 |
|
17-Dec-2010 |
jasper |
- use usb_lookup() instead of handrolled macro
ok jakemsr@
|
#
1.21 |
|
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.20 |
|
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_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.19 |
|
11-Oct-2007 |
deraadt |
treat usb vendor/product names as a locator, and have usbd_print handle it, so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
Revision tags: OPENBSD_4_2_BASE
|
#
1.18 |
|
14-Jun-2007 |
mbalmer |
Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS and USB_DECLARE_DRIVER macros.
No binary change.
ok dlg.
|
#
1.17 |
|
13-Jun-2007 |
mbalmer |
Apply some KNF after the recent removal of macros and type definitions.
No binary change.
ok ray.
|
#
1.16 |
|
12-Jun-2007 |
mbalmer |
Remove the definition and use of the device_ptr_t which was a struct device *.
No binary change.
ok mk.
|
#
1.15 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEVNAME macro.
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
#
1.14 |
|
10-Jun-2007 |
mbalmer |
Remove the definition and use of the USBDEV macro. It only created confusion and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
|
#
1.13 |
|
06-Jun-2007 |
mk |
Mechanical removal of USBBASEDEVICE. No binary change.
Tested by thib and myself.
ok mbalmer jsg
|
#
1.12 |
|
05-Jun-2007 |
mbalmer |
Remove the "Static" declaration of many functions. It was defined to be empty and it was not consistently used. It was confusing as it suggested these functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
#
1.11 |
|
31-May-2007 |
mbalmer |
Remove more #ifdef/#endif's that checked for other bsds. No binary change, no functionality change.
ok jsg
|
#
1.10 |
|
27-May-2007 |
jsg |
Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed. ok deraadt@ krw@ mbalmer@
|
#
1.9 |
|
21-May-2007 |
jsg |
Remove logprintf macro
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
|
#
1.8 |
|
23-Jun-2006 |
miod |
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.7 |
|
01-Aug-2005 |
brad |
spaces vs tab
|
#
1.6 |
|
01-Aug-2005 |
brad |
Don't keep the devinfo string on the stack, instead use malloc/free. This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.5 |
|
11-Jul-2004 |
deraadt |
support two more suntac products; from freebsd
|
#
1.4 |
|
08-Jul-2004 |
deraadt |
put "do { } while (0)" wrappers on all the debug maroc functions
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.3 |
|
17-May-2003 |
nate |
more devices from NetBSD
|
Revision tags: UBC_SYNC_A
|
#
1.2 |
|
07-May-2003 |
deraadt |
string cleanup; nate ok
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.1 |
|
30-Nov-2002 |
nate |
branches: 1.1.4; Add driver for SUNTAC Slipper VS-10U communications device
|