summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_kue.c
AgeCommit message (Collapse)Author
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
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@
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
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@
2007-10-11treat usb vendor/product names as a locator, and have usbd_print handle it,Theo de Raadt
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
2007-06-14Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andMarc Balmer
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
2007-06-13Remove the definition and usage of the IF_INPUT macro which was definedMarc Balmer
as ether_input_mbuf which is itself a macro for ether_input. No binary change. ok dlg.
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-10Remove the definition and use of the USBDEVNAME macro.Marc Balmer
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
2007-06-10Remove the definition and use of the USBDEV macro. It only created confusionMarc Balmer
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
2007-06-05Remove the "Static" declaration of many functions. It was defined to be emptyMarc Balmer
and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
2007-06-04Last part of FreeBSD/NetBSD sepcific code removal.Marc Balmer
ok jsg@
2007-05-31Fix dmesg output. -mojMats O Jansson
2007-05-27Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.Jonathan Gray
ok deraadt@ krw@ mbalmer@
2007-05-21Remove logprintf macroJonathan Gray
2007-05-21Remove Ether_ifattach macroJonathan Gray
2007-02-11Remove _KERNEL_OPT leftovers.Miod Vallat
2007-01-09network byte order firmware, so that firmware files are the same onTheo de Raadt
all architectures YOU HAVE TO INSTALL NEW FIRMWARE BEFORE BOOTING A NEW KERNEL
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-07Remove last NRND NetBSDisms from tree.Kenneth R Westerback
ok deraadt@ brad@
2006-01-29Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls inBrad Smith
an interrupt context. From NetBSD ok dlg@
2005-08-01Don't keep the devinfo string on the stack, instead use malloc/free.Brad Smith
This should cure some rare stack overflows. From augustss NetBSD ok dlg@ pascoe@
2005-07-02clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.Brad Smith
2005-06-08remove netns crud.Henning Brauer
some drivers actually had hooks for SIOCSIFADDR, most just useless includes "looks good" deraadt miod brad
2005-01-15Add id for Psion Dacom Gold Port Ethernet found in Linux driver.Jonathan Gray
2005-01-03- make sure int is in running state before touching the multicast filtersBrad Smith
- call foo_setmulti only instead of init'ing the chip - don't overwrite potential error return with success when calling ether_addmulti/ether_delmulti ok dlg@
2004-12-12fix protoTheo de Raadt
2004-11-28kue(4) uses loadfirmware(9), but usb threaded probing starts beforeTheo de Raadt
root is mounted. split up kue_attach() so that if in the worst case... it knows how to defer the second part until after the filesystem is up tested by maja, idea ok from miod
2004-11-22relax warmboot detection, required for some models. ok deraadt@Daniel Hartmeier
2004-11-22firmware loading for kue(4), tested for me by dhartmeiTheo de Raadt
2004-11-10strncpy->strlcpyAlexander Yurchenko
ok henning@
2004-10-16Add Silicom U2E found in linux driver. ok dlg@Jonathan Gray
2004-09-23don't need to set ifp->if_mtu or ifp->if_output in each driver,Brad Smith
{ether,atm,fddi}_ifattach already does this. ok mcbride@ markus@ henning@
2004-07-08put "do { } while (0)" wrappers on all the debug maroc functionsTheo de Raadt
2004-06-02Add ether_{add,del}multi(), makes multicast work.Ryan Thomas McBride
Testing & ok cedric@
2003-12-15Set devclass to DV_IFNET for all USB network drivers.Cedric Berger
ok deraadt@ nate@
2003-05-07string cleanup; nate okTheo de Raadt
2002-07-29Refetch interface handle on reset. Avoids potential access to freed memory.Nathan Binkert
From FreeBSD via NetBSD
2002-07-25get rid of trailing whitespaceNathan Binkert
2002-07-10shorten address printoutTheo de Raadt
2002-07-09Sync Id string with NetBSDNathan Binkert
2002-06-26Kill __FUNCTION__.Marc Espie
2002-05-06sync with NetBSDNathan Binkert
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2001-12-17and of course, since the tree is so volatile now, i mess it upTheo de Raadt
2001-12-17move more microcode, so that it does not end up in /usr/includeTheo de Raadt
2001-10-31Synchronize usb code with NetBSD.Nathan Binkert
2001-07-08Don't set up ifq_maxlen manually for drivers that uses IFQ_MAXLENFederico G. Schwindt
(or ifqmaxlen); it's done in if_attach() now. No future drivers needs to set up this anymore unless they want to use something else.
2001-06-27ALTQ'ify network drivers.Kenjiro Cho
- use the new queue macros. - use IFQ_POLL() to peek at the next packet. - use IFQ_IS_EMPTY() for empty check. - drivers should always check if (m == NULL) after IFQ_DEQUEUE(), since it could return NULL even when IFQ_IS_EMPTY() is FALSE under rate-limiting. - drivers are supposed to call if_start from tx complete interrupts (in order to trigger the next dequeue under rate-limiting).
2001-05-03Sync with NetBSD. Tested with a USB keyboard, USB mouse, and three differentAaron Campbell
kue(4) Ethernet devices.