summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vr.c
AgeCommit message (Collapse)Author
2005-07-06- Rewritten TX to use only two pointers to track producer/consumer.Brad Smith
- Bugfix: don't forget to set IFF_OACTIVE when TX list is full. From FreeBSD - clear IFF_RUNNING & IFF_OACTIVE in vr_stop() before de-allocating resources. Thanks to cloder@, millert@ and pedro@ for testing.
2005-01-15make sure interface is in RUNNING state before touching the multicast filtersBrad Smith
From NetBSD NetBSD PR 27678 for details ok mcbride@
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-06-06Multicast cleanupsRyan Thomas McBride
- make multicast ranges work - replace handrolled crc code with ether_crc32_{be,le}() - add missing calls to ether_{add,del}multi() ok deraadt@
2004-04-14new vr; loki@animata.netTheo de Raadt
2003-12-29no vtophys(), don't need uvm_extern.h anymore.Brad Smith
tested on alpha, i386, macppc and sparc64. ok millert@ mickey@
2003-10-14Add htole and bus_dmamap_sync code. These allow if_vr to work on powerpc.Dale Rahn
Code is a collaboration of jason@ and myself. Ok jason@
2003-10-13last vtophys (tx data) is now dead. Needs dma sync's and probably moreJason Wright
htole32 now.
2003-10-12only one vtophys left (tx data)... both the rx and tx descriptors areJason Wright
fully handled by bus_dma now.
2003-10-12rework rx to use bus_dma and sprinkle with a small amount of htole32.Jason Wright
2003-10-10unsmoke drugs in vr_encap() (simplify it quite alot)Jason Wright
prepare for bus_dma of tx data
2003-10-10lightly season with a touch of htole32()... a pinch will do.Jason Wright
2003-10-10another easy vtophys removal (tx descriptor setup)... 6 to go.Jason Wright
2003-10-10don't use vtophys on rx lists any moreJason Wright
2003-10-07Do not forget to initialise the version member of the softc, and bringMiod Vallat
yet another set of reliability fixes from FreeBSD; PR #3461
2003-02-19Sync if_vr code with FreeBSD. This makes the driver much better when it comesMiod Vallat
to trying to recover the hardware going nuts under the load. Reported to work by various people including krw@and I.
2003-02-09Must set BCR0/BCR1 since they can override the RXCFG/TXCFG registers; from ↵Jason Wright
freebsd via openbsd pr 3086 (thom at press dot alt-f4 dot org)
2003-01-12add support for via rhine III; Jonathon Fletcher, jonathon.fletcher at pobox ↵Jason Wright
dot com
2003-01-12pad tx buffer with zero's; John L. Scarfone, j0 at cox.netJason Wright
2002-11-19Add a simplistic table driven lookup routine and use it where appropriate.Jason Wright
2002-05-14Fixed ALTQ support.Todd C. Miller
Patch from ftp://ftp.csl.sony.co.jp/pub/kjc/altq-3.1.errata.txt (kjc)
2002-04-03back out ALTQ diff which breaks it; see PR 2517Theo de Raadt
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-12sync with KAMEKenjiro Cho
ALTQify more drivers. ok millert@
2002-02-15Don't cast nonexistent return value from splx to (void). ok art@Thomas Nordin
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-08-25Change pci_intr_map to take pci_attach_args as an argument.Artur Grabowski
All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
2001-08-12remove redundant vm includesMichael Shalayeff
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-06-24Program the address filter in vr_init(). Apparently the rhine cards are smartAaron Campbell
enough to read their own Ethernet address from the EEPROM and program their unicast filters automatically, but to support setting the Ethernet address with ifconfig on vr(4) cards we need to do this. From FreeBSD.
2001-06-24more ether_input_mbuf() conversion.Federico G. Schwindt
2001-05-16Bring chip out of suspend mode in case we're booting after a shutdown fromAaron Campbell
Windows. Needed for the VT6102, but doesn't hurt older chips; from FreeBSD.
2001-03-25Missing splx(s). Thanks to dawson and team for finding this oneConstantine Sapuntzakis
2001-02-20for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ okMichael Shalayeff
2001-02-20add mii support to if_vr (mostly from FreeBSD)Jason Wright
also sync with other FreeBSD changes
2001-02-17no need for seperate variable to hold ethernet address... that's whatJason Wright
ac_enaddr is for
2001-02-17sync with freebsd up to switch to miiJason Wright
also increase the delay for accessing the eeprom (seems it needs a bit longer to get ether address settled).
2001-02-09Handle vr_encap() failure. From FreeBSD.Aaron Campbell
2000-07-02add via vt6102 id; freebsd-gnatsJason Wright
2000-02-15make sure to call ether_{add,del}multi() as appropriate in xxx_ioctl()Jason Wright
1999-09-13Remove staticsNiklas Hallqvist
1999-08-05remove some debugging stuffJason Wright
1999-02-26compensate for the fact that the check for ownership of a unicast packetJason Wright
has moved to ether_input()
1999-02-24why do new manufacturers make identical products, but change the vendor field?Theo de Raadt
1999-01-30update to latest freebsd code, fixes stalls during heavy trafficNiklas Hallqvist
1999-01-10VIA Rhine driver, ported from FreeBSD; written by wpaul@ctr.columbia.edu.Jason Downs