summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
AgeCommit message (Collapse)Author
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.
2006-12-07some cleanup for axe(4):Reyk Floeter
- remove IFF_RUNNING check from axe_init() and check for the appropriate condition before calling axe_init(). - check for MTU too small, as done everywhere else. - remove unnecessary setting of error to 0, its initialized to 0 in axe_ioctl(). - use the IFQ_IS_EMPTY macro in axe_watchdog(). ok brad@
2006-12-04avoid unnecessary copies (memcpy(x, x, n)) in the TX path.Damien Bergamini
"works fine, even under high load" reyk@
2006-10-03don't use IF_PREPEND() on altq's.Damien Bergamini
use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4). tested by jolan@ on macppc "diffs look ok" brad@
2006-07-09get rid of some ifdef __otherbsd__ goo. no binary changeDavid Gwynne
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-06-01Pass the value of IPG2 to the AX88178 in the index register.Christopher Pascoe
2006-06-01KNF.Christopher Pascoe
2006-06-01Whitespace cleanup.Christopher Pascoe
2006-04-23Remove superfluous use of usb_callout_init() (== timeout_set()).Kenneth R Westerback
Superfluous because the immediately following usb_callout() does the same timeout_set(). And superfluous because the same usb_callout_init was done during attach. ok dlg@
2006-04-13free mem if attach fails; netbsd coverity cid 2329Jolan Luff
ok dlg@
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@
2006-01-10fix axe on big endian archs. for jolanDavid Gwynne
2005-12-21Don't try to predict what different eeprom settings meanJonathan Gray
so much, makes the Level One AX88178 adapter work. Interestingly enough the Level One adapter seems to work fine without stalls. Though it uses ukphy, I think the correct phy types are supposed to be written in by the driver based on the values in the eeprom...
2005-12-09Mention which chipset devices use on attach.Jonathan Gray