History log of /openbsd-src/sys/dev/usb/if_cdce.c (Results 26 – 50 of 83)
Revision Date Author Comments
# bb43db31 04-Dec-2013 deraadt <deraadt@openbsd.org>

use dv_unit rather than storing (or forgetting to store...) a local
version
noted by uaa@


# 1e087f7c 15-Nov-2013 pirofti <pirofti@openbsd.org>

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@


# b28d87e1 11-Nov-2013 pirofti <pirofti@openbsd.org>

Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().

Okay mpi@


# 5e42885f 07-Aug-2013 bluhm <bluhm@openbsd.org>

Most network drivers include netinet/in_var.h, but apparently they
don't have to. Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@


# ebfe1335 26-Apr-2013 mglocker <mglocker@openbsd.org>

Rename three functions in usbdi.c to their right prefix (usb_* to usbd_*).

ok mpi@


# ab0b1be7 15-Apr-2013 mglocker <mglocker@openbsd.org>

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@

show more ...


# b047b92c 28-Mar-2013 tedu <tedu@openbsd.org>

proc.h is way too much header for usb to handle.


# c0da6b08 09-Nov-2011 sthen <sthen@openbsd.org>

Add support for UISUBCLASS_MOBILE_DIRECT_LINE_MODEL to cdce(4).
This is available with at least Ericsson-derived HSPA cards (e.g.
Dell 5530/5540) and provides a nice alternative to using them in
ppp

Add support for UISUBCLASS_MOBILE_DIRECT_LINE_MODEL to cdce(4).
This is available with at least Ericsson-derived HSPA cards (e.g.
Dell 5530/5540) and provides a nice alternative to using them in
ppp mode. From Rivo Nurges (rix at estpak ee), ok jsg@

show more ...


# 0b1c7607 03-Jul-2011 matthew <matthew@openbsd.org>

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ al

Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.

ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago

show more ...


# 0036ea2d 25-Jan-2011 jakemsr <jakemsr@openbsd.org>

garbage collect "usb events". without /dev/usb there is no way to access
them from userland, and nothing in the kernel uses them.

ok krw@, miod@


# 438d9437 16-Jan-2011 jakemsr <jakemsr@openbsd.org>

* instead of NULLing pointers to interface descriptors in the uaa, mark
interfaces as being claimed in the usbd_device's copy of the interface
descriptors
* allow ugen(4) to be attached if there

* instead of NULLing pointers to interface descriptors in the uaa, mark
interfaces as being claimed in the usbd_device's copy of the interface
descriptors
* allow ugen(4) to be attached if there are unused interfaces in a
configuration that has had drivers attached
* make ugen(4) aware that it may be sharing a device with (an)other
driver(s), and if so:
* do not let ugen(4) change the configuration
* do not let ugen(4) access the already claimed interfaces

discussed with deraadt and miod

show more ...


# 5dd621ee 27-Oct-2010 jakemsr <jakemsr@openbsd.org>

don't free network related resources if they were not allocated


# 70e15fe7 24-Sep-2010 yuo <yuo@openbsd.org>

remove dying flag in detach() function.
The dying flag will be set in activate()/DEACTIVATE.

ok deraadt@


# 36edfbaf 06-Mar-2010 mk <mk@openbsd.org>

In cdce_detach(), add usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, ...)
like other drivers do.

Tested and ok mpf.


# e78728c7 13-Oct-2009 pirofti <pirofti@openbsd.org>

Get rid of devact enum, substitute it with an int and coresponding defines.

This is needed for the addition of further suspend/resume actions.

Okay deraadt@, marco@.


# 34f0f0fd 28-Nov-2008 brad <brad@openbsd.org>

Eliminate the redundant bits of code for MTU and multicast handling
from the individual drivers now that ether_ioctl() handles this.

Shrinks the i386 kernels by..
RAMDISK - 2176 bytes
RAMDISKB - 150

Eliminate the redundant bits of code for MTU and multicast handling
from the individual drivers now that ether_ioctl() handles this.

Shrinks the i386 kernels by..
RAMDISK - 2176 bytes
RAMDISKB - 1504 bytes
RAMDISKC - 736 bytes

Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users.
Build tested on almost all archs by todd@/brad@

ok naddy@

show more ...


# 775775fe 02-Oct-2008 brad <brad@openbsd.org>

First step towards cleaning up the Ethernet driver ioctl handling.
Move calling ether_ioctl() from the top of the ioctl function, which
at the moment does absolutely nothing, to the default switch ca

First step towards cleaning up the Ethernet driver ioctl handling.
Move calling ether_ioctl() from the top of the ioctl function, which
at the moment does absolutely nothing, to the default switch case.
Thus allowing drivers to define their own ioctl handlers and then
falling back on ether_ioctl(). The only functional change this results
in at the moment is having all Ethernet drivers returning the proper
errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown
ioctl's.

Shrinks the i386 kernels by..
RAMDISK - 1024 bytes
RAMDISKB - 1120 bytes
RAMDISKC - 832 bytes

Tested by martin@/jsing@/todd@/brad@
Build tested on almost all archs by todd@/brad@

ok jsing@

show more ...


# 2fe3ac23 14-Mar-2008 mbalmer <mbalmer@openbsd.org>

Make sure the most often changing bits of tv_usec are used for lladdr
generation.

ok brad


# d247ef03 13-Mar-2008 mbalmer <mbalmer@openbsd.org>

when attaching a cdce(4) device that does not have a proper mac address,
use the tv_usec part of a getmicrotime(9) call instead of 'int ticks' to
create a mac address. as ticks is 0 during boot, thi

when attaching a cdce(4) device that does not have a proper mac address,
use the tv_usec part of a getmicrotime(9) call instead of 'int ticks' to
create a mac address. as ticks is 0 during boot, this resulted in both ends
of a USB link cable to have the same mac address.

problem found/diff tested winiger, feedback/ok deraadt

show more ...


# fc5c6ac5 11-Oct-2007 deraadt <deraadt@openbsd.org>

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 th

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

show more ...


# aca5f7a6 17-Sep-2007 fgsch <fgsch@openbsd.org>

remove unneeded malloc.h include.


# 24f30e01 11-Sep-2007 winiger <winiger@openbsd.org>

KNF. "go for it" deraadt@


# eeeba71c 25-Jul-2007 claudio <claudio@openbsd.org>

Add a missing splx() and while there update the printf() to match the format
of the other ones. From Marc Winiger mw at msys . ch


# b4004a84 25-Jul-2007 mbalmer <mbalmer@openbsd.org>

define and use CDCE_DEBUG and DPRINTF/DPRINTFN to be less noisy on the
console.

From Marc Winiger <mw@msys.ch>

ok jsg, claudio


# 94fc2a0e 23-Jul-2007 mbalmer <mbalmer@openbsd.org>

This improves cdce(4) and makes some devices work that previously did not
(like the Sony Ericsson K610 mobile phone).

- Read hardware address from ethernet descriptor makes the Sony Ericsson
K610

This improves cdce(4) and makes some devices work that previously did not
(like the Sony Ericsson K610 mobile phone).

- Read hardware address from ethernet descriptor makes the Sony Ericsson
K610 work.
- Add support for status notifications (interrupt endpoint).
- Recognize if there is a union descriptori (thus remove CDCE_NO_UNION).
- Handle wrong union descriptors (master/slave values are swapped)
(Ambit NTL 250)

Diff done by Marc Winiger <mw@msys.ch>, tested by many on different
platforms and with various devices: cable modems, mobile phones, and,
zaurus as USB function.

ok jsg, claudio, kili

show more ...


1234