summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_txp.c
AgeCommit message (Collapse)Author
2012-12-01Don't bother to zero initialize the if_capabilities field first andBrad Smith
then set the flags. Just set the flags as is done everywhere else. ok sthen@
2012-11-23set ifp->if_baudrate with IF_Gbps() / IF_Mbps().Gleydson Soares
OK reyk@ sthen@
2011-04-05mechanic rename M_{TCP|UDP}V4_CSUM_OUT -> M_{TCP|UDP}_CSUM_OUTHenning Brauer
ok claudio krw
2011-04-03use nitems(); no binary change for drivers that are compiled on amd64.Jasper Lievisse Adriaanse
ok claudio@
2010-09-20Stop doing shutdown hooks in network drivers where possible. We alreadyTheo de Raadt
take all interfaces down, via their xxstop routines. Claudio and I have verified that none of the shutdown hooks do much extra beyond what xxstop was already doing; it is largely a pile of junk. ok claudio, some early comments by sthen; also read by matthew, jsg
2009-08-13- consistify cfdriver for the ethernet drivers (0 -> NULL)Jasper Lievisse Adriaanse
ok dlg@
2009-03-24Upgrade to newer firmware needed by some txp(4) variants. Fixes PR 6085.Mark Kettenis
From FreeBSD. ok deraadt@
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-09Introduce bpf_mtap_ether(), which for the benefit of bpf listenersChristian Weisgerber
creates the VLAN encapsulation from the tag stored in the mbuf header. Idea from FreeBSD, input from claudio@ and canacar@. Switch all hardware VLAN enabled drivers to the new function. ok claudio@
2008-10-16Switch the existing TX VLAN hardware support over to having theChristian Weisgerber
tag in the header. Convert TX tagging in the drivers. Help and ok brad@
2008-10-16Convert RX tag stripping to storing the tag in the mbuf header andChristian Weisgerber
enable RX tag stripping for re(4). ok brad@
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-18Introduce the infrastructure required to support hardware VLAN tagChristian Weisgerber
stripping: Add a field to the mbuf pkthdr to hold the tag and an mbuf flag that tells if the tag is valid. Inspired by FreeBSD. Struct packing suggested by kettenis@. csum_flags is now 16 bits. Adapt to this in the drivers. ok reyk@, henning@
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-09-08IEEE 802.3 Annex 28B.3 explicitly specifies the following relativeBrad Smith
priorities of the technologies supported by 802.3 Selector Field value. 1000BASE-T full duplex 1000BASE-T 100BASE-T2 full duplex 100BASE-TX full duplex 100BASE-T2 100BASE-T4 100BASE-TX 10BASE-T full duplex 10BAST-T However PHY drivers did not honor the order such that 100BASE-T4 had higher priority than 100BASE-TX full duplex. Fix a long standing bug such that PHY drivers choose the highest common denominator ability. This bug is exposed by a Cisco 3550 switch which inadvertently announces 100BASE-T4 capability even though it is not capable of 100BASE-T4 operation, it is a 100BASE-TX switch. From FreeBSD Tested with dc(4), fxp(4), rl(4), sis(4).
2008-05-31Clear the IFF_RUNNING/IFF_OACTIVE flags and the watchdog timer inBrad Smith
txp_stop(). ok dlg@
2008-05-22ANSI function definitions.Brad Smith
ok dlg@
2008-05-22More timeout(9) usage cleaned up.Michael Knudsen
ok claudio
2008-05-22Remove unnecessary receive filter call from the attach hook. This isBrad Smith
already dealt with via txp_init(). ok dlg@
2008-05-22Read the MII_ANAR register and get the common denominator ability.Brad Smith
From FreeBSD ok dlg@
2008-05-22Remove the "loaded firmware" message from dmesg. Only print somethingBrad Smith
if there was an error. ok dlg@
2008-04-03Add missing half duplex flags for the media status.Brad Smith
ok kettenis@
2007-04-11Do not use m_prepend() directly, always use M_PREPEND() instead.Claudio Jeker
While changing that also change the order of the __STRICT_ALIGNMENT case and introduce a bit of headroom in the mcluster used for the RX DMA. This prevents unnecessary allocations of mbufs. Tested by camield@ OK reyk@
2006-06-29do not check for master/io/mem enablesTheo de Raadt
2006-05-28unknown ioctl is ENOTTY not EINVALJason Wright
2006-04-26coverity, covsmerity: no reason to put an overly complex fix in here inJason Wright
an error case that almost never happens.
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-16set IFCAP_VLAN_MTU unconditionally.Brad Smith
2005-06-15Disable hardware vlan decapsulation, but not really. Because of a firmwareCamiel Dobbelaar
bug the vlan tag is always stripped off, so restore the encapsulation in software. ok deraadt, "looks ok" jason brad
2005-04-25csum -> csum_flagsBrad Smith
ok krw@ canacar@
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-12-17Fix printf in loadfirmware error path.Alexander Yurchenko
2004-12-14txp(4) late firmware loading, written somewhere over the pacific, testedTheo de Raadt
by mcbride, reduces size of the kernel
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-05-31Replace local crc32 with ether_crc32_be.Ryan Thomas McBride
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-22one more 3c990 variant; tested by Niko Itajarvi <niko.itajarvi@satabaana.net>Henning Brauer
2003-06-02Remove clause 3 & 4 (with permission from aaron and deraadt)Jason Wright
2003-02-28add support for 3cr990 (not 3cr990a,b,c, etc) and 3cr990-fx; from linux driverJason Wright
2002-11-19Add a simplistic table driven lookup routine and use it where appropriate.Jason Wright
2002-07-11add rcsid to firmware, and remove defn for tc990_IMAGE_SIZE, its ugly.Jason Wright
(shoulda caught this before like I caught const'fying it, oh well)
2002-07-11Convert the cmd and response queues to be endian aware, also prepare for new ↵Jason Wright
firmware version.
2002-04-30enough letoh-foo to get through firmware upload on big endian machinesJason Wright
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
2002-02-07fix copyright; chris@Jason Wright
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-11-05Switch everything to the new bus_dmamap_sync API.Artur Grabowski
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
2001-11-02- Set valid bit in transmit descriptors and tx fragment descriptors (previousJason Wright
firmware versions didn't use it, but newer ones might... play it safe). - add a bit of debugging code to tx so I can get dumps easier to send to 3com. (ifdef'd out). - ifdef both places that require modification to enable TX cksums to avoid errors like halfway enabling them (which caused me a bit of pain the other day). - TX UDP/TCP cksums still hang the firmware