summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_cue.c
Commit message (Collapse)AuthorAgeFilesLines
* Note the Belkin F5U111 Adapter is covered by NETMATE entry.Warner Losh2007-06-231-0/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=171004
* Use device_foo_t to declare kobj methodsWarner Losh2007-06-181-6/+6
| | | | | | | Fix shutdown type to return int rather than void. Notes: svn path=/head/; revision=170935
* Remove USBGETSOFTC, USB_ATTACH_START, USB_DETACH_START andWarner Losh2007-06-171-1/+2
| | | | | | | 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-2/+4
| | | | | | | change, and MD5's appear to be the same. Notes: svn path=/head/; revision=170655
* Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate fromWarner Losh2007-06-121-4/+4
| | | | | | | 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 to printf where sane.Warner Losh2007-06-111-32/+29
| | | | | | | Elimiante cue_unit from softc. Notes: svn path=/head/; revision=170539
* The devinfo stuff has been moved up into the parent bus. There's noWarner Losh2007-06-091-6/+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
* Remove compat ifdefs for FreeBSD versions < 500014, makes the codeChristian Brueffer2007-05-121-25/+0
| | | | | | | | | | quite a bit easier to read. Approved by: rwatson (mentor) MFC after: 1 weeks Notes: svn path=/head/; revision=169489
* More removing compatibility macros.Warner Losh2006-09-071-2/+2
| | | | | | | | | 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-53/+53
| | | | | | | | | | | | | 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
* - Store pointer to the link-level address right in "struct ifnet"Ruslan Ermilov2005-11-111-1/+1
| | | | | | | | | | | | | rather than in ifindex_table[]; all (except one) accesses are through ifp anyway. IF_LLADDR() works faster, and all (except one) ifaddr_byindex() users were converted to use ifp->if_addr. - Stop storing a (pointer to) Ethernet address in "struct arpcom", and drop the IFP2ENADDR() macro; all users have been converted to use IF_LLADDR() instead. Notes: svn path=/head/; revision=152315
* Add missing mtx_destroy() when if_alloc() fails.Ruslan Ermilov2005-09-161-1/+5
| | | | | | | | 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-13/+13
| | | | | | | | | | | | | | | | | 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
* Modify device drivers supporting multicast addresses to lock if_addr_mtxRobert Watson2005-08-031-0/+2
| | | | | | | | | | | over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> MFC after: 1 week Notes: svn path=/head/; revision=148654
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-12/+16
| | | | | | | | | | | | | | | | | | | | | | | 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 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-124/+48
| | | | Notes: svn path=/head/; revision=144104
* Move xxx_newbuf() function, which was the same in all drivers into centralMaxim Sobolev2005-03-251-39/+5
| | | | | | | location. Notes: svn path=/head/; revision=144086
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Mark USB ethernet devices as IFF_NEEDSGIANT, since the USB frameworkRobert Watson2004-08-111-1/+2
| | | | | | | | | | | | if_start routines cannot currently be entered without Giant. When the kernel is running with debug.mpsafenet != 0, this will defer if_start execution to a task queue thread holding Giant, which may introduce additional latency, but avoid incorrect execution. Suggested by: dfr Notes: svn path=/head/; revision=133466
* MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.Warner Losh2004-06-271-1/+1
| | | | Notes: svn path=/head/; revision=131187
* Replace handrolled CRC calculation with ether_crc32_[lb]e().Christian Weisgerber2004-06-091-9/+1
| | | | Notes: svn path=/head/; revision=130270
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* We don't need to initialize if_output, ether_ifattach() does itMaxime Henrion2004-05-231-1/+0
| | | | | | | for us. Notes: svn path=/head/; revision=129616
* Replace the static "qdat" structure with a per-instance softc fieldIan Dowse2004-05-231-5/+3
| | | | | | | | | | | | | | | | in all USB ethernet drivers. The qdat structure contains a pointer to the interface's struct ifnet and is used to process incoming packets, so simultaneous use of two similar devices caused crashes and confusion. The if_udav driver appeared in the tree since Daan's PR, so I made similar changes to that driver too. PR: kern/59290 Submitted by: Daan Vreeken <Danovitsch@Vitsch.net> Notes: svn path=/head/; revision=129607
* Announce ethernet MAC addresss in ether_ifattach().Matthew N. Dodd2004-03-141-5/+0
| | | | Notes: svn path=/head/; revision=126966
* Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones.David E. O'Brien2003-12-081-3/+3
| | | | | | | Requested by: bde,imp Notes: svn path=/head/; revision=123289
* Remove duplicateJohan Karlsson2003-11-141-3/+0
| | | | | | | | | | #include <sys/cdefs.h> __FBSDID(...); Leave the one matching the other files in this directory. Notes: svn path=/head/; revision=122655
* Despam the const poisoningWarner Losh2003-11-141-5/+5
| | | | | | | Despam the u_->u change Notes: svn path=/head/; revision=122644
* Try to create some sort of consistency in how the routings to find theDavid E. O'Brien2003-11-131-6/+8
| | | | | | | | | | multicast hash are written. There are still two distinct algorithms used, and there actually isn't any reason each driver should have its own copy of this function as they could all share one copy of it (if it grew an additional argument). Notes: svn path=/head/; revision=122625
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-2/+1
| | | | | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname) Notes: svn path=/head/; revision=121816
* Const poison the crc calcuation routines so const data can be sent toWarner Losh2003-10-231-3/+3
| | | | | | | it. Notes: svn path=/head/; revision=121432
* Make it easier to run this code on RELENG_4.Josef Karthauser2003-10-041-1/+25
| | | | | | | Submitted by: luoqi Notes: svn path=/head/; revision=120765
* Use __FBSDID().David E. O'Brien2003-08-241-0/+3
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* add missing machine/bus.h headers that are now necessary because of theJohn-Mark Gurney2003-07-161-0/+1
| | | | | | | bus_dma addition. Notes: svn path=/head/; revision=117662
* WARNING: white space diffJohn-Mark Gurney2003-07-041-2/+2
| | | | | | | | | This code reduces the number of trailing white space to be more in line w/ NetBSD. I don't regenerate usbdevs, saving that for when it really changes. Notes: svn path=/head/; revision=117213
* Fix indentation.Poul-Henning Kamp2003-05-311-2/+2
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115498
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-151-2/+3
| | | | | | | | | | | network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.) Notes: svn path=/head/; revision=113506
* Use __FBSDID rather than rcsid[].David E. O'Brien2003-04-031-7/+3
| | | | Notes: svn path=/head/; revision=113038
* - Use if_broadcastaddr from struct ifnet rather than relying onMatthew N. Dodd2003-03-211-1/+1
| | | | | | | | | | extern 'etherbroadcastaddr'. - Make 'etherbroadcastaddr' static. Reviewed by: imp Notes: svn path=/head/; revision=112469
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-2/+2
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-2/+2
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* network interface driver changes:Sam Leffler2002-11-141-10/+4
| | | | | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re Notes: svn path=/head/; revision=106937
* We not long need to use USBD_NO_TSLEEP.Josef Karthauser2002-04-071-15/+7
| | | | Notes: svn path=/head/; revision=94077
* MFNetBSD: if_aue.c (1.26), if_auereg.h (1.6), if_cue.c (1.10),Josef Karthauser2002-04-071-2/+3
| | | | | | | | | | | if_cuereg.h (1.5), if_kue.c (1.11), if_kuereg.h (1.5) date: 2000/03/02 12:37:51; author: augustss; Use ratecheck() to limit error messages on disconnect. Break out some common functionality. Notes: svn path=/head/; revision=94074
* Use the UE_GET_XFERTYPE macro.Josef Karthauser2002-04-061-3/+3
| | | | Notes: svn path=/head/; revision=93999
* Rename csr_{read,write}_* to cue_csr_{read,write}_*.Josef Karthauser2002-04-061-21/+21
| | | | Notes: svn path=/head/; revision=93991
* Rename foo_gone to foo_dying, in keeping with the rest of the usb code.Josef Karthauser2002-04-061-9/+9
| | | | Notes: svn path=/head/; revision=93989
* Replace device_t with device_ptr_t.Josef Karthauser2002-04-061-6/+6
| | | | Notes: svn path=/head/; revision=93988