summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_txp.c
AgeCommit message (Collapse)Author
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
2001-09-21Correct some pryntf() usage: get the correct number of arguments in theMiod Vallat
correct order.
2001-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
2001-08-27get direction of read/write correct in calls to bus_dmamap_sync()Jason Wright
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-24missing bus_dmamap_sync() calls on descriptors... also deal with 5 argument ↵Jason Wright
form of bus_dmamap_sync()
2001-08-17Oops, maxseglen and maxlen were backwards in call to bus_dmamap_create().Jason Wright
2001-08-12remove redundant vm includesMichael Shalayeff
2001-08-10allocate tx dma maps in attach instead of creating/destroying them for each txJason Wright
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-24- vlan_input_tag() takes 2 args now.Federico G. Schwindt
- use ether_input_mbuf().
2001-06-23ether_input_mbuf()Jason Wright
2001-06-23Go ahead and add the output checksum handling for tcp/udp (commented out)Jason Wright
2001-06-23IPv4 transmit checksum offload handlingJason Wright
2001-06-23- Add IPv4, UDP, and TCP RX checksum offloading supportJason Wright
- Do not enable IPSEC offloading (don't know how that got there =)
2001-06-22KNFTheo de Raadt
2001-06-12Make pci_mapreg_map take an extra argument where we canNiklas Hallqvist
put a size limitation of the PCI region to map. That makes the PERC 3/Di raid controller usable, as it publishes too much PCI memory for us to map in the kernel virtual memory. As we only access the first 256 byte it is of no use to map 128MB of kvm.
2001-06-05updated firmware from 3com (Thanks!); contains support for 3cr990B cards.Jason Wright
2001-05-30- gather statistics (ipackets, ierrors, collisions, etc) from txp itselfJason Wright
- better spl handling
2001-05-30define txp_command() in terms of txp_command2().Jason Wright
2001-05-30expand txp_command2 to handle extension desciptors for long commandsJason Wright
2001-05-30- better handling for capabilities: check the card to make sure it supportsJason Wright
IPsec offloading before claiming to have that capability. - also add cksum offload capabilities (commented out for now)
2001-05-29Set, don't OR the capabilities.Angelos D. Keromytis
2001-05-28Set the IFCAP_IPSEC capability.Angelos D. Keromytis
2001-05-25we just *love it* when official people at major vendors send usTheo de Raadt
accurate information about upcoming models of their cards
2001-05-16Use dm_mapsize instead of homegrown one; jason@ ok.Federico G. Schwindt
2001-05-16update copyrightJason Wright
use bcmp not strncmp for verifying the magic number in the firmware
2001-05-16If we run out of transmit slots, try to copy the next mbuf into a singleJason Wright
fragment and try again. Failing that, operate as normal.
2001-05-15- correct some bus_dmamap_sync() usageJason Wright
- redo dma_alloc(), dma_free() a bit (I had them right to begin with) - add an alignment shim on rx buffers on strict alignment arch's (this is hideous, but hopefully temporary) Upshot: works on alpha now
2001-05-15- bus-dmaify txpJason Wright
- use symbolic name instead of value for maximum packet length - make this compile on alpha (be careful with pointers stored in device descriptors) - fix a mbuf leak in the tx full case
2001-05-10in txp_intr() only refill the rx buffer ring if it is empty; based onJason Wright
suggestion from Pankaj Chhabra.