summaryrefslogtreecommitdiff
path: root/sys/dev/ic/gem.c
AgeCommit message (Collapse)Author
2005-11-15add IFQ_SET_MAXLEN().Brad Smith
2005-11-07splimp -> splnetBrad Smith
2005-11-02sync mbuf before unloading in gem_rxdrain().Brad Smith
From NetBSD
2005-11-02handle TX underrun and packet too long errors by resetting the chip.Brad Smith
From NetBSD ok krw@
2005-10-31- some DEBUG should be GEM_DEBUGBrad Smith
- introduce gem_bitwait() to factor out some of the register wait code From NetBSD - remove some statics - remove parameter names from prototypes ok kettenis@
2005-10-31typoBrad Smith
2005-10-17Start using the unused sc_variant to identify the GMAC vendor and chipsetBrad Smith
model to the MI part of the driver. On Apple systems only attach the PHY to location 0, unless using a K2 GMAC, then use location 1. Tested by drahn@ and kettenis@
2005-10-11have gem strip off the Ethernet FCS before passing it to bpf.Brad Smith
ok krw@, also tested by Peter Hessler on macppc
2005-09-10copy the MAC address from sc_arpcom.ac_enaddr to sc_enaddr inBrad Smith
gem_init() just before calling gem_init_regs() so the proper MAC address gets programmed into the card (if it has been changed by say ifconfig lladdr for example). Noticed and diff tested by: Troex Nevelin <troex at fury dot scancode dot ru>
2005-08-01remove whitespaceBrad Smith
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-15make sure interface is in RUNNING state before touching the multicast filtersBrad Smith
From NetBSD NetBSD PR 27678 for details ok mcbride@
2004-09-27allow for VLAN-sized frames.Brad Smith
2004-06-20take 2 times less room in dmesg, prettier tooPeter Valchev
allocate interrupts early on (before PHY attachment, etc) just like all other drivers do to allow the above; ok mcbride
2004-02-02Don't return random garbage in the default case; return the smallest ringBrad Smith
descriptor instead. From NetBSD ok deraadt@
2004-02-01remove prototypes for non-existant functions.Brad Smith
ok deraadt@
2003-12-29no vtophys(), don't need uvm_extern.h anymore.Brad Smith
tested on alpha, i386, macppc and sparc64. ok millert@ mickey@
2003-07-15correct some debugging printfsJason Wright
2003-07-09Eliminate creation/destruction of dmamap's for every xmit by reusingKenneth R Westerback
statically allocated maps. Significant performance boost on both sparc64 and macppc. Tested on macppc by drahn@. ok jason@ drahn@.
2003-04-27strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.Hakan Olsson
2003-03-02The gem driver will sometimes unmap bus_dma mappings that are stillHenric Jungheim
in use by the hardware. Since the sparc64 has IOMMUs, an access by the hardware after the unmap operation will cause a fault. This replaces "disable" calls by "reset" calls. This increases the time between the command to disable DMA and when the maps are actually unloaded.
2003-01-23- Either memset() or loop and set to zero, not bothJason Wright
- reading RX_COMPLETION is a waste of time (and a -slow- PCI read vs. an, albeit uncached, memory access to determine the same thing). - on RX_OVERFLOW, reset the board; the RX unit has probably wedged
2002-11-261000baseTX -> 1000baseTNathan Binkert
- More technically correct - Matches FreeBSD and NetBSD - Preserved #define for 1000baseTX for backwards compatibility ok jason@
2002-09-22Update ifp->if_opackets correctlyJason Wright
2002-08-28 - Fix one typo (instead of two disable_rx, one disable_rx and one disable_tx)Artur Grabowski
- Instead of setting OACTIVE on the interface when encap fails and never clearing it, set a 2 second timer instead and hope that the memory situation will improve. This stops the lockups of the interface when memory is running low. jason@ ok.
2002-07-10shorten address printoutTheo de Raadt
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-06-09make gem compile, arpcom is sc_arpcom.Dale Rahn
2002-06-09a step towards consistancy; in general:Todd T. Fries
'struct arpcom foo' -> 'struct arpcom sc_arpcom' ok itojun@
2002-06-07Multicast fixes, Gig-E support, mostly from netbsd. ok jason@Dale Rahn
2002-05-07Simplify multicast handling based on powerpc's gm.c and remove ether_cmp()Jason Wright
2002-04-03- read the rx completion register exactly once.Jason Wright
- don't complain about still owned descriptors tested by myself and Joey Coleman <joeycoleman@acm.org>
2002-03-22- Move reading collision counters out of splimp()Jason Wright
- all non-debug prints should print the interface name - quite whining about RX counter expiring, who cares.
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-22Call ether_ioctl() the way [insert favorite diety] intended.Jason Wright
2002-02-22Revert to previous (non hacked =) version now that the iommu is handledJason Wright
correctly and it doesn't crash
2002-01-28Re-port the NetBSD driver, but rewrite tx logic to use static buffers (andJason Wright
copies). This makes the Blade100 gem stable for me.
2002-01-25In encap, sync mbuf before writing descriptorsJason Wright
2001-12-13changes to work with 32bit platforms and get ethernet address on powerpc.Dale Rahn
Inspired by NetBSD.
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-10-03Rewrite transmit handling (looks something more like hme), also takes advantageJason Wright
of some register shadowing provided by the asic. [This still isn't optimal, but it's getting closer...] Move all of the stat stuff out of the interrupt context and into the timeout.
2001-10-02increase rx descriptors, remove some debugging code, deal with different ↵Jason Wright
endian; NetBSD general cleanup; me.
2001-09-29Some KNF.Artur Grabowski
2001-09-28Fix a DIAGNOSTIC check.Artur Grabowski
2001-09-24Use splimp instead of splnet in some places.Artur Grabowski
I don't understand why, but it helps stability a lot.
2001-09-23solve mtu problem a little more elegantly (ramdisk works on blade100 andJason Wright
u5 now).
2001-09-21configured mtu in BOTH places (grumble)Jason Wright
Also, make it a bit higher than normal (this is an ugly hack and will be removed when I figure out what this thing wants).
2001-09-21openbsd style %b handlingJason Wright
2001-09-21another ETHERMTU + sizeof(struct ether_header) problemJason Wright