summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
AgeCommit message (Collapse)Author
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
2005-11-29Add support for ASIX AX88772 10/100 based adapters which are very similiarJonathan Gray
to the gigabit AX88178 but with a different initialisation routine because the PHY is not external. Man page changes reviewed by jmc@ and oxford commas added per his sugestion. Thanks to Bruno Scap for donating an adapter.
2005-09-27enable support for gigabit adapters; it works reliably with USB1 butJolan Luff
seems to stall under some conditions with USB2 so you may wish to disable ehci in the mean time ok dlg@ jsg@
2005-08-29Handle AX88178 on 12 Mbit USB controllers such as ohci & uhci moreJonathan Gray
gracefully. ok dlg@ permission granted by deraadt@
2005-08-28The AX88178 sends multiple frames per USB transferJonathan Gray
and has extra bytes and rules to deal with this. Initial rxeof/encap changes by me, dlg@ rewrote axe_rxeof and axe_newbuf from scratch and cleaned up encap so they can jump over buildings in a single bound and be more elegant/readable. ok deraadt@
2005-08-28We don't need to do a PHY select for AX88178 but we shouldJonathan Gray
do a generic soft reset before doing a specific one. ok dlg@ deraadt@
2005-08-28Write back IPG values in a manner more likely to work.Jonathan Gray
ok dlg@ deraadt@
2005-08-28Tell the AX88178 to give us the full transaction size.Jonathan Gray
ok dlg@ deraadt@
2005-08-28Account for larger USB transaction size of AX88178 byJonathan Gray
making the size a member of the softc. ok dlg@ deraadt@
2005-08-28We have to do some extra hand holding on link state changeJonathan Gray
on the AX88178 because of the external PHY. ok dlg@ deraadt@
2005-08-12Add some delays in the GPIO code so AX88178 phy gets powered up.Jonathan Gray
Suggested by ASIX.
2005-08-11Only match AX88178 if AXE_DEBUG is defined for the moment.Jonathan Gray
2005-08-10Some of the bits that will be required for AX88178.Jonathan Gray
PHY doesn't attach possibly due to not twiddling GPIO pins correctly, rx and tx pipes being swapped not dealt with yet.
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-18Good Way GWUSB2E Ethernet, found in Good Way USB docking stations.Jonathan Gray
ID from <david-b () pacbell ! net> via Linux driver.
2005-07-02clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.Brad Smith