summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_aue.c
Commit message (Collapse)AuthorAgeFilesLines
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-101-13/+17
| | | | | | | | | | | | | | | | | | | | 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
* Fix breakage in the previous commit caused by the last-minute change.sobomax2005-03-251-3/+2
|
* Move Rx/Tx lists management routines into central location.sobomax2005-03-251-126/+50
|
* Move xxx_newbuf() function, which was the same in all drivers into centralsobomax2005-03-251-39/+5
| | | | location.
* Mark USB ethernet devices as IFF_NEEDSGIANT, since the USB frameworkrwatson2004-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
* MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.imp2004-06-271-1/+1
|
* Replace handrolled CRC calculation with ether_crc32_[lb]e().naddy2004-06-091-21/+2
|
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* We don't need to initialize if_output, ether_ifattach() does itmux2004-05-231-1/+0
| | | | for us.
* Replace the static "qdat" structure with a per-instance softc fieldiedowse2004-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>
* Add support for the ADMtek AN8513 USB Ethernet adapter.obrien2004-04-161-0/+1
| | | | Submitted by: taxman <taxman@freedombi.com>
* Announce ethernet MAC addresss in ether_ifattach().mdodd2004-03-141-5/+0
|
* Add support HP hn210e usb ethernetsanpei2003-12-171-0/+1
| | | | | PR: kern/60156 Submitted by: M. L. Dodson <bdodson@scms.utmb.edu>
* Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones.obrien2003-12-081-5/+5
| | | | Requested by: bde,imp
* Remove duplicatejohan2003-11-141-3/+0
| | | | | | | #include <sys/cdefs.h> __FBSDID(...); Leave the one matching the other files in this directory.
* Try to create some sort of consistency in how the routings to find theobrien2003-11-131-5/+7
| | | | | | | 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).
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-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)
* Make it easier to run this code on RELENG_4.joe2003-10-041-1/+23
| | | | Submitted by: luoqi
* Support the Hawking Technology's UF100 Pegasus II 10/100 USB Ethernet.obrien2003-09-181-0/+1
|
* Use __FBSDID().obrien2003-08-241-0/+3
| | | | Also some minor style cleanups.
* add missing machine/bus.h headers that are now necessary because of thejmg2003-07-161-0/+1
| | | | bus_dma addition.
* Add support for a bunch of Microsoft networking products:wpaul2003-07-101-0/+1
| | | | | | | | - MN-110 10/100 USB ethernet (ADMtek Pegasus II, if_aue) - MN-120 10/100 cardbus (ADMtek Centaur-C, if_dc) - MN-130 10/100 PCI (ADMtek Centaur-P, if_dc) Also update dc(4) man page to mention support for MN-120 and MN-130.
* - Express hard dependencies on bus (pci, isa, pccard) andmdodd2003-04-151-3/+4
| | | | | | | | 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.)
* Use __FBSDID rather than rcsid[].obrien2003-04-031-7/+3
|
* Used correct aue_flags in ELECOM LD-USB/T and ELECOM LD-USB/TX.shiba2003-03-051-2/+2
| | | | | | Submitted by: Yasushi Oshima <oshimaya@sc.starcat.ne.jp> Takeshi Shibagaki <shiba@freebsd.org> (refer to [bsd-usb:685],[bsd-usb:686])
* Back out M_* changes, per decision of the TRB.imp2003-02-191-2/+2
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* network interface driver changes:sam2002-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
* Add support for a couple of network adapters; the 3Com 3C460B andjoe2002-07-301-0/+2
| | | | | | the Belkin USB2LAN. Obtained from: NetBSD
* MFNetBSD: Add support for the SMC 2206USB/ETH EZ Connect adapter (Pegasus II)joe2002-07-091-0/+1
|
* Add a couple of new aue ethernet adapters from NetBSD:joe2002-05-271-0/+2
| | | | | ELECOM LDUSBLTX IODATA USBETTXS
* Use aue_lookup for looking up devices.joe2002-05-261-76/+68
|
* Fix a panic by allocating the iface structure locally in the attachjoe2002-05-231-3/+13
| | | | function instead of in usb_probe_and_attach.
* Revert part of revision 1.49 which was supposed to be white spacejoe2002-04-171-1/+1
| | | | | only. In the device probe we don't want to match unless there is an iface structure already set up.
* We not long need to use USBD_NO_TSLEEP.joe2002-04-071-8/+4
|
* MFNetBSD: if_aue.c (1.26), if_auereg.h (1.6), if_cue.c (1.10),joe2002-04-071-3/+7
| | | | | | | | 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.
* Use the UE_GET_XFERTYPE macro.joe2002-04-061-3/+3
|
* Another step in merging our if_aue driver with NetBSD's.joe2002-04-061-20/+9
|
* Rename foo_gone to foo_dying, in keeping with the rest of the usb code.joe2002-04-061-8/+8
|
* Replace device_t with device_ptr_t.joe2002-04-061-12/+12
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-2/+2
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Reduce differences between NetBSD's version and ours.joe2002-04-021-94/+85
| | | | | (Should be all white space related, but there's the removal of the odd 'register' directive also).
* Use ANSI prototypes and declarations.joe2002-04-021-156/+123
| | | | Rename csr_{write|read}_* to aue_csr_* in keeping with NetBSD.
* Add more usb adapters, from NetBSD.joe2002-03-311-14/+45
|
* Remove __P.alfred2002-03-201-42/+41
|
* Add a new linksys ethernet adapter: USB_PRODUCT_LINKSYS_USB10TX2.joe2002-01-031-0/+1
|
* Support MELCO LUA2-TX USB ethernet adaptor.sumikawa2001-11-191-32/+38
| | | | | | | | | Actually this porting supports Pegasus II chip so I guess some other devices supported by NetBSD also work. But the devices list are not included because I cannot confirm if they work. Obtained from: NetBSD MFC after: 3 weeks
* Do not call mii_polltick() immediately after mii_tick().jlemon2001-09-291-7/+5
| | | | Poiinted out by: wpaul
* Add support for the Accton USB320-EC Ethernet adapter.dwhite2001-09-091-0/+1
| | | | MFC after: 14
* Make these depend on the usb module so they can use its symbols if theypeter2001-08-221-1/+2
| | | | are loaded as seperate .ko files
OpenPOWER on IntegriCloud