summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2008-12-29properly update RT2860_TX_RTS_CFGDamien Bergamini
2008-12-29move the 802.11 header out of the TXWI structure.Damien Bergamini
add some definitions for RT2870/RT3070.
2008-12-22I swapped MGETHDR arguments in my m_defrag removal commit.Damien Bergamini
2008-12-21Undo m_defrag().Damien Bergamini
m_defrag() does not work. It seems to assume that if the length of the mbuf passed as parameter is less than MHLEN, then it is an mbuf header and not a cluster (or something like that.) It thus fails miserably in the bcopy path. I don't have the time to investigate further into this. Thanks to Okan Demirmen for reporting the issue on a ral(4) RT2560. The RT2560 chipset does not support TX scatter and thus m_defrag() was called much more often than in other drivers using m_defrag() where it was less noticeable.
2008-12-15in rt2860_rx_intr(), rely on RT2860_FS_DRX_IDX instead of the RX_DMA DDONEDamien Bergamini
bit to know when to stop.
2008-12-14Switch gem(4) over to using MCLGETI when allocating mbufs for the rx ring.Mark Kettenis
help from dlg@, tested by a few, ok dlg@
2008-12-14Disable TX_DMA writing back DDONE into TXD.Damien Bergamini
Some micro-optimizations while I'm here.
2008-12-14- properly handle RT2860_TX_RX_COHERENT interrupts.Damien Bergamini
- update ic_dtim_count and make use of the new ieee80211_notify_dtim function. - add explicit barriers. - cleanup as usual.
2008-12-13use the hardware general-purpose timer interrupt instead of timeout(9).Damien Bergamini
clean up the ctl_ridx mess.
2008-12-13clear the WCID, pairwise keys, shared keys, IV/EIV tables in NIC memoryDamien Bergamini
*after* resetting the hardware. otherwise the tables contain garbage. should fix most of the weird issues people were facing. scary.
2008-12-12fix a bug that slipped through my last commit.Damien Bergamini
2008-12-12- fix HW crypto using group keys (this should fix the "ExtIV bit not set"Damien Bergamini
logged by some WPA supplicants when connecting to a ral(4) WPA AP.) - get rid of the ugly ack_rate, rate2mcs functions (pre-compute ACKs duration for all rates at node association time.) - lot of clean up, prepare for future enhancements
2008-12-10Replace m_free() with m_freem() in foo_start() to ensure that upon errorBrad Smith
the full mbuf chain is freed. ok claudio@ kettenis@
2008-11-30Add initial 8168D/8111D support.Brad Smith
2008-11-29Iain Hibbert (plunky@netbsd) removed clauses 3 and 4 from hisRay Lai
licenses as well. Thanks! "Groovy" 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-26Stop maintaining internal queues of received scsi_xfer structures.Kenneth R Westerback
We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers. "Please do so" deraadt@
2008-11-26Use m_defrag instead of collapsing mbufs ourselves.Mark Kettenis
ok dlg@
2008-11-26dont have bpf.h expose the kernel ticks variable wherever it is includeing.David Gwynne
it is very confusing like this. ok deraadt@ canacar@
2008-11-26Stop maintaining internal queues of received scsi_xfer structures.Kenneth R Westerback
We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers.
2008-11-26Stop maintaining internal queues of received scsi_xfer structures.Kenneth R Westerback
We can now just push unwanted ones back up into the SCSI layer with NO_CCB like other drivers.
2008-11-26Use bus_dmamap_load_mbuf instead of loading mbuf fragments ourselves, andMark Kettenis
use m_defrag to linearize packets that don't fit in 16 segments. ok claudio@
2008-11-25use shiny new m_defrag() and nitems() instead of rolling our own.Damien Bergamini
2008-11-25dontqueue is set but never used. garbage collect it.Kenneth R Westerback
2008-11-24die die dieTheo de Raadt
2008-11-24Return NO_CCB instead of TRY_AGAIN_LATER when ccb's run out.Kenneth R Westerback
"I'm all for it." marco@ "Yeah" deraadt@
2008-11-23pccom can finally die; ok kettenis dlg drahn, tested by okanTheo de Raadt
2008-11-23enable bioMarco Peereboom
ok dlg
2008-11-23sizeofa -> nitemsDavid Gwynne
2008-11-23sizeofa is now nitems in param.h, so dont declare my own in mpi.c it wasDavid Gwynne
unused there anyway. use nitems in mpi_pci_match.
2008-11-23Don't use ifp->if_xname if you can use the sc_dev.dv_xname instead.Claudio Jeker
Removes some unneeded ifp pointers from the stack and don't assign ifp->if_softc twice in the same function.
2008-11-19Make sure to check that the TX queue is empty before clearing theBrad Smith
watchdog timer. From FreeBSD Tested on quite a few 3c905/B/C/575 adapters.
2008-11-19Do not reset TX threshold value whenever xl_init() is called. InsteadBrad Smith
the initial threshould is initialized at device attach. Later the threshold could be increased if encountering a TX underrun error and the new threshold should be used in xl_init(). From FreeBSD Tested on quite a few 3c905/B/C/575 adapters.
2008-11-18Remove dup proto from <alexey.suslikov@gmail.com>Marco Peereboom
2008-11-17Sprinkle a few more tabs.Brad Smith
2008-11-17NETBSD -> OPENBSD in #endif comment.Kenneth R Westerback
2008-11-17Use new isp_library.c rather than isp_inline.h. No functional change.Kenneth R Westerback
Tested by naddy@. 'go for it' marco@
2008-11-16Add new style replacement for isp_inline.h.Kenneth R Westerback
2008-11-14Revert the reduction in the delays in the miibus read/write routines,Christian Weisgerber
which broke on-board RTL8111C adapters.
2008-11-10remove unused variable 'error' from two functions; llvm/clang; ok dlgConstantine A. Murenin
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-11-08Reduce the delay's a bit in the miibus read/write routines.Brad Smith
Based on the Linux r8169 driver. Tested on PCI/CardBus and PCIe adapters.
2008-11-08Reduce the number of TX descriptors to 512, such a large number is notBrad Smith
necessary without TSO.
2008-11-07Try recollecting RX/TX descriptors if we are going to switch back to TX/RXBrad Smith
interrupts. There seems to be a race between turning on TX/RX interrupt and asserting TX/RX interrupt by the hardware. From Sephe@DragonFly
2008-11-07Simplify the interface flag handling in the ioctl handler.Brad Smith
2008-11-07Remove storing the Ethernet header in the receve interrupt handler, theBrad Smith
disabled code that used to use this was removed 7 years ago.
2008-11-07Add more initialisation steps (read reset register; pause; set burst sizeBrad Smith
in config register). From NetBSD
2008-11-07- According to the Apple GMAC driver, the GEM ASIC specification andBrad Smith
the OpenSolaris eri(7D) the TX FIFO threshold has to be set to 0x4ff for the Gigabit variants and 0x100 for the ERI in order to avoid TX underruns. - Turn on workarounds for silicon bugs in the Apple GMAC variants. This was based on information obtained from the Darwin GMAC and Linux GEM drivers. - Turn on "infinite" (i.e. maximum 31 * 64 bytes in length) DMA bursts. From FreeBSD Tested by a few users with Apple GMAC's and Sun ERI.
2008-11-03Don't attach bio unless we do RAID.Marco Peereboom
2008-11-02Start updating isp. Just new defines, comments, whitespace, anything thatKenneth R Westerback
doesn't change the .o. Use isp_stds.h.