summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
AgeCommit message (Collapse)Author
2011-09-16Fix a bunch of typos: manaul, monnitor, machiune, autload.Miod Vallat
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
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
2011-01-25garbage collect "usb events". without /dev/usb there is no way to accessJacob Meuser
them from userland, and nothing in the kernel uses them. ok krw@, miod@
2010-12-06* replace per-driver dying and/or other state variables with use ofJacob Meuser
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()
2010-11-14Cleanup dmesg a bit, do not print the device name twice when attachingPaul de Weerd
axe(4).
2010-10-27don't free network related resources if they were not allocatedJacob Meuser
2010-10-23check that a timeout(9) has been initialized before deleting itJacob Meuser
ok phessler
2010-10-23create another kthread to run xfer abort tasks. xfer abort tasks cannotJacob Meuser
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.
2010-09-24try to print the attach dmesg line in one unit, rather than intermixingTheo de Raadt
it with slow operations. ok jsg yuo
2010-09-23remove dying flag in the detach() function.Yojiro Uo
the device driver which has DEACTIVATE processing seems to no need to set dying flag in the detach() function because the flag will be set in the DEACTIVATE process before detach(). ok jsg@, ok for experiment deraadt@
2010-09-21Better PHY probing adapted from FreeBSD by Laurent GhigonisJonathan Gray
fixes problems seen with Linksys USB300M.
2010-01-09Explicitly turn on mii/gmii/rgmii for the 178/gigabit devicesJonathan Gray
from FreeBSD and confirmed with the datasheet.
2009-11-22add a bunch of devices found in linux driversJonathan Gray
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@.
2009-09-20Support the AX88772A model (found while shopping today); tested by mtuTheo de Raadt
2009-05-13Support setting a different MAC address from the one in EEPROMJonathan Gray
on newer chips now the hardware can apparently cope with it. Tested by Walter Haidinger. ok deraadt@
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-11-06Set the IFCAP_VLAN_MTU capabilities flag so these interfaces are allowedBrad Smith
to transmit full sized VLAN tagged frames.
2008-11-02Remove duplicate call to ether_ifdetach() in axe_detach()Jonathan Gray
which has been there since rev 1.1. Spotted by Johann Christian Rode <jcrode@gmx.net>
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@
2008-09-21Add missing splnet to the ioctl handler.Brad Smith
ok jsg@
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
2008-05-14Remove the duplicate Billionton id.Brad Smith
2008-05-11Add the Buffalo (MELCO) LUA-U2-GT id.Brad Smith
ok jsg@
2008-05-06Add support for the Apple USB Ethernet adapter.Marco Pfatschbacher
Work around the "latch in at the first working PHY address hack", that fails for this adapter because it returns 0xffff when reading from lower PHY addresses. Also add more debugging printfs. Testing and OK jsg@
2008-02-22Simon Dick in FreeBSD PR 96714Jonathan Gray
* Fossil Abacus Wrist PDA Thorsten Trampisch in FreeBSD PR 113384 * Expert ISDN Control * RS232 OptoBridge Jonathan Charest in FreeBSD PR 110992 * Several Tactrix OpenPort (ECU) devices. Y.Okabe in FreeBSD PR 119981 * Logitec LAN-GTJ/U2 Ethernet HAGIMORI 'buggy' Masashige in FreeBSD PR 115933 * RATOC REX-USB60F serial
2007-11-23Sanitize the use of timeouts:Marc Balmer
Instead of calling timeout_set(..., NULL, NULL) in attach routines and later timeout_del(...) timeout_set(..., func, arg) timeout_add(..., time) set the function and argument in the initial timeout_set() call and only use timeout_add(..., time) later. ok dlg, fgsch, krw, winiger
2007-10-27Deal with usb string printing changes.Jonathan Gray
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-11Remove the definition and usage of the USBGETSOFTC macro, which was reallyMarc Balmer
only a cast to (void *). ok jsg.
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-10Remove definitions and usage of usb_callout and related macros. These macrosMarc Balmer
were used as a layer of confusion^Wabstraction around the timeout(9) API. No binary change. ok jsg.
2007-06-09Remove the definition and use of if_deactivate(). It was defined empty andMarc Balmer
thus produced no code at all. No binary change. 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-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-05-14Convert from lockmgr to rwlock.Jonathan Gray
Initial diff from krw@, uneeded lock_mii()/unlock_mii() on all commands in existing code removed by me so it doesn't try to recurse. ok krw@
2007-05-05Remove axe_rxstart() which is an uneeded leftover from the FreeBSD version.Jonathan Gray
2007-04-26USB device lists do not need a terminating sentinel, so don't provide any;Miod Vallat
this should prevent phantom devices from attaching axe or uberry on some machines. ok deraadt@
2007-04-09Assert my copyright for the AX88178/AX88772 bits over the last few years.Jonathan Gray
2007-04-09Remove any possibility of of an underflow happening whenJonathan Gray
pulling packets out of the usb buffer in rxeof. Potential issue pointed out by Hans Petter Selasky <hselasky@c2i.net>
2007-04-09Add missing letoh16() for eeprom value.Jonathan Gray
Pointed out by Hans Petter Selasky <hselasky@c2i.net>
2007-02-17Add some additional device ids found in Linux driver.Jonathan Gray
2007-01-18Add a bunch of as yet untested AX88178 devices.Jonathan Gray
2007-01-18Add support for AX88772 devices with external PHY.Jonathan Gray
Thanks to Marco S Hyman for sending me hardware to play with. Committed over DUB-E100 rev B1 with external IC Plus PHY.