summaryrefslogtreecommitdiff
path: root/sys/dev/ic/gem.c
AgeCommit message (Collapse)Author
2006-11-25ANSIBrad Smith
2006-11-25fix use of gem_bitwait().Brad Smith
2006-11-25Split the GEM registers into two halfs and provide a bus_space_handle_tBrad Smith
for each. While there, fix a typo in gem_bitwait(). From martin@NetBSD
2006-11-25Fix a copy and pasto.Brad Smith
From martin@NetBSD
2006-11-11be silentTheo de Raadt
2006-11-10Fix typo.Mark Kettenis
2006-11-10Add support for Sun 1000baseSX cards.Mark Kettenis
ok deraadt@
2006-10-17replace hand rolled code with LIST_FOREACH in gem_mediachange().Brad Smith
ok kettenis@ "Looks correct to me" krw@
2006-07-11put CRC error message under GEM_DEBUG. this just spews out like crazyBrad Smith
on a heavily loaded hub.
2006-04-15check for IFF_RUNNING being set before calling gem_init().Brad Smith
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-02-21remove some commented out and NetBSD-specific code.Brad Smith
2006-02-21add missing MTU ioctl switch case.Brad Smith
Noticed by: Ben Lovett <ben at tilderoot dot com>
2006-02-08eliminate a reset when configuring the IP address.Brad Smith
tested by kettenis@
2006-02-05call gem_setladrf() if the NIC is already running and only theBrad Smith
PROMISC or ALLMULTI flags are being adjusted or if adjusting the multicast addresses instead of doing a full re-init of the chip. ok kettenis@
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