summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_mos.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Increment if_ipackets in if_input().mpi2015-06-241-2/+1
| | | | | | | Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
* add missing splx callsjsg2015-05-021-1/+2
|
* Convert remaining USB Ethernet adapter to if_input().mpi2015-04-101-10/+5
| | | | ok dlg@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* unifdef INETtedu2014-12-221-3/+1
|
* No need for <netinet/in_systm.h> here.mpi2014-07-131-5/+1
|
* Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were tompi2014-07-121-23/+2
| | | | | | | | | | | | | | set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag. Even if the purpose of this flag is questionnable on OpenBSD because DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small step towards the simplification of the autoconf(9) device states. This cleaning is now possible thanks to the work of pirofti@ to convert all the USB drivers to properly use usbd_is_dying(). Discussed many times with deraadt@
* Always fill in the broadcast address so as to handle broadcast packets ifbrad2014-01-211-8/+9
| | | | | | the interface is put into all multicast mode. ok stsp@
* Make mos(4) pass received broadcast frames explicitly if not in promiscuousstsp2014-01-181-1/+8
| | | | | | mode. Fixes a problem with initiating connections to a mos(4) interface. Reported by Petr Hoffmann on bugs@. ok sthen
* Clean-up usbd_abort_pipe() usage.pirofti2013-11-151-16/+4
| | | | | | | 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@
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-071-2/+1
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-6/+6
| | | | | | | | | 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@
* proc.h is way too much header for usb to handle.tedu2013-03-281-2/+1
|
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-3/+1
| | | | ok guenther millert kettenis
* Rewrite the receive filter handling code and cleanup the ioctl bits.brad2012-10-221-80/+36
| | | | Tested by and ok stsp@
* add support for the MCS7832 which is apparently a low pin countjsg2012-02-281-5/+7
| | | | | | | version of the MCS7830 with no software visible changes besides a new product id. from brad
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-4/+1
| | | | | | | | 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
* Make mos(4) set IFF_BROADCAST in if_flags.stsp2011-02-211-2/+2
| | | | ok jsg kevlo claudio; committing with miod's permission (src is soft-locked)
* garbage collect "usb events". without /dev/usb there is no way to accessjakemsr2011-01-251-7/+1
| | | | | | them from userland, and nothing in the kernel uses them. ok krw@, miod@
* * replace per-driver dying and/or other state variables with use ofjakemsr2010-12-061-25/+19
| | | | | | | usbd_deactivete() and usbd_is_dying() * use usbd_deactivate() in activate()/DEACTIVATE * convert a few more direct checks of the associated bus' dying flag with usbd_is_dying()
* don't free network related resources if they were not allocatedjakemsr2010-10-271-3/+5
|
* check that a timeout(9) has been initialized before deleting itjakemsr2010-10-231-2/+3
| | | | ok phessler
* create another kthread to run xfer abort tasks. xfer abort tasks cannotjakemsr2010-10-231-3/+5
| | | | | | | | | | | be run from the generic task kthread, because xfers that need to be aborted block newly queued tasks from running (i.e. the xfer to be aborted blocks the abort of that task). as there are now three types of usb tasks, add an argument to usb_init_task() and another member to struct usb_task to specify the task type. fixes boot hangs that are showing up because we now use usb tasks to attach/detach usb devices.
* remove dying flag in detach() function.yuo2010-09-241-3/+1
| | | | | | The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-3/+3
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* some cosmetics and changes based on reading newer docs, from the originalderaadt2008-11-221-23/+53
| | | | author Johann Christian Rode
* KNF (whitespace fixes). ok brad@.sthen2008-11-121-4/+3
|
* Set the IFCAP_VLAN_MTU capabilities flag so these interfaces are allowedbrad2008-11-061-1/+3
| | | | to transmit full sized VLAN tagged frames.
* rcs tagsjsg2008-11-021-0/+2
|
* Remove second commented out call to ether_ifdetach() injsg2008-11-021-2/+0
| | | | mos_detach().
* Driver for MOSCHIP MCS7x30 usb ethernet chips by Johann Christian Rodederaadt2008-10-231-0/+1475