summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_cdce.c
Commit message (Collapse)AuthorAgeFilesLines
* Move usb to a graveyard location under sys/legacy/dev, it is intended that theAndrew Thompson2009-02-231-771/+0
| | | | | | | | | | new USB2 stack will fully replace this for 8.0. Remove kernel modules, a subsequent commit will update conf/files. Unhook usbdevs from the build. Notes: svn path=/head/; revision=188939
* Fix two more PRs:Warner Losh2007-06-301-1/+2
| | | | | | | | | | | | | (1) Add size parameter to usbd_get_string() (2) Properly limit speed when a full speed hub is plugged into a high speed hub. Submitted by: Hans Petter Selasky PR: 80773, 79725 Approved by: re@ (kensmith) Notes: svn path=/head/; revision=171122
* Add a boatload of devices from OpenBSD and NetBSD to kue and cdce.Warner Losh2007-06-231-4/+8
| | | | | | | | Obtained From: OpenBSD/NetBSD Approved by: re (blanket) Notes: svn path=/head/; revision=171006
* Remove USBGETSOFTC, USB_ATTACH_START, USB_DETACH_START andWarner Losh2007-06-171-8/+26
| | | | | | | USB_DECLARE_DRIVER_INIT from the usb network drivers. Notes: svn path=/head/; revision=170892
* Expand USB_MATCH_STARTWarner Losh2007-06-171-1/+1
| | | | Notes: svn path=/head/; revision=170886
* Expand USB_DETACH, USB_ATTACH and USB_MATCH inline. No functionalWarner Losh2007-06-131-3/+6
| | | | | | | change, and MD5's appear to be the same. Notes: svn path=/head/; revision=170655
* Remove USBDEV() macro. We do not need a macro that is defined as itsWarner Losh2007-06-121-2/+2
| | | | | | | only argument. It was used inconsistently in the tree, so remove it. Notes: svn path=/head/; revision=170616
* Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate fromWarner Losh2007-06-121-8/+8
| | | | | | | usb_port.h. They aren't needed, and are a legacy of this code's past. Notes: svn path=/head/; revision=170612
* Prefer device_printf over printfWarner Losh2007-06-101-35/+31
| | | | | | | Eliminate cdce_unit from softc. Notes: svn path=/head/; revision=170497
* The devinfo stuff has been moved up into the parent bus. There's noWarner Losh2007-06-091-5/+0
| | | | | | | | | | need to do it at all anymore. Remove it from here. Expand USB_ATTACH_SETUP inline now that it is one line and we're moving away from the compat macros. Remove some bzero calls that turn out not be be necessary. Notes: svn path=/head/; revision=170449
* Add support for Familiar Linux powered iPaq handhelds to cdce(4).Florent Thoumie2006-10-071-0/+1
| | | | | | | | | PR: usb/103865 Submitted by: Alexey Roslyakov <internetworking@mail.ru> MFC after: 3 days Notes: svn path=/head/; revision=163091
* Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls inOlivier Houchard2006-09-221-2/+2
| | | | | | | | | | an interrupt context. Obtained from: NetBSD MFC after: 1 week Notes: svn path=/head/; revision=162548
* More removing compatibility macros.Warner Losh2006-09-071-22/+22
| | | | | | | | | md5 still the same. "Dave, stop. I feel my mind slipping away." -- hal Notes: svn path=/head/; revision=162097
* s/Static/static/gWarner Losh2006-09-061-27/+27
| | | | | | | | | | | | | s/device_ptr_t/device_t/g No md5 changes in the .o's # Note to the md5 tracking club: $FreeBSD$ changes md5 after every commit # so you need to checkout -kk to get $FreeBSD$ instead of the actual value # of the keyword. Notes: svn path=/head/; revision=162095
* Emit USB_EVENT_DRIVER_DETACH on detach.Alexander Leidinger2005-12-291-0/+3
| | | | | | | | | PR: 83247 Submitted by: Sangwoo Shim <ssw@neo.redjade.org> MFC after: 2 weeks Notes: svn path=/head/; revision=153840
* add product ID for Linux Ethernet/RNDIS gadget on pxa210/25x/26x.Hajimu UMEMOTO2005-09-281-0/+1
| | | | | | | | Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> MFC after: 2 days Notes: svn path=/head/; revision=150701
* Add dummy support for ifmedia subsystem. This allows devd to see cdce as anMaxim Sobolev2005-09-261-0/+31
| | | | | | | | | ethernet device and configure IP etc. Submitted by: Craig Boston <craig@tobuj.gank.org> Notes: svn path=/head/; revision=150557
* Add missing mtx_destroy() when if_alloc() fails.Ruslan Ermilov2005-09-161-0/+2
| | | | | | | | Add missing if_free() when mii_phy_probe() fails. Put if_free() into the correct #ifdef in detach(). Notes: svn path=/head/; revision=150211
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andRobert Watson2005-08-091-15/+15
| | | | | | | | | | | | | | | | | IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days Notes: svn path=/head/; revision=148887
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-3/+7
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* Fix identation.Maxim Sobolev2005-03-251-1/+1
| | | | Notes: svn path=/head/; revision=144108
* Fix breakage in the previous commit caused by the last-minute change.Maxim Sobolev2005-03-251-3/+2
| | | | Notes: svn path=/head/; revision=144106
* Move Rx/Tx lists management routines into central location.Maxim Sobolev2005-03-251-115/+44
| | | | Notes: svn path=/head/; revision=144104
* Move xxx_newbuf() function, which was the same in all drivers into centralMaxim Sobolev2005-03-251-28/+4
| | | | | | | location. Notes: svn path=/head/; revision=144086
* Zaurus expecrs CRC to be in little-endian order, so that convert it into LEMaxim Sobolev2005-03-221-1/+2
| | | | | | | | | on BE arches. Obtained from: OpenBSD Notes: svn path=/head/; revision=143989
* Add USB Communication Device Class Ethernet driver. Originally written forMaxim Sobolev2005-03-221-0/+807
FreeBSD based on aue(4) it was picked by OpenBSD, then from OpenBSD ported to NetBSD and finally NetBSD version merged with original one goes into FreeBSD. Obtained from: http://www.gank.org/freebsd/cdce/ NetBSD OpenBSD Notes: svn path=/head/; revision=143985