summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
AgeCommit message (Collapse)Author
2006-05-28- remove ETHER_MAX_LEN_JUMBO and ETHERMTU_JUMBO.Brad Smith
- use if_hardmtu for MTU ioctl handlers. ok reyk@
2006-05-28unknown ioctl is ENOTTY not EINVALJason Wright
2006-05-27remove IFCAP_JUMBO_MTU interface capabilities flag and set if_hardmtu in a fewBrad Smith
more drivers. ok reyk@
2006-05-20set if_jumbo_mtu and the IFCAP_JUMBO_MTU capabilities flag whereBrad Smith
appropriate. ok reyk@
2006-05-01Activate Tx descriptor poll timer in order to protect possible lossBrad Smith
of SK_TXBMU_TX_START command. Previously the driver continuously issued SK_TXBMU_TX_START when it notices pending Tx descriptors not processed yet in interrupt handler. That approach would add additional PCI write access overhead under high Tx load situations and it might fail if the first SK_TXBMU_TX_START was lost and no interrupt is generated from the first SK_TXBMU_TX_START command. From FreeBSD
2006-05-01Added Rx/Tx FIFO flush support for YukonBrad Smith
From FreeBSD
2006-05-01A new function sk_yukon_tick(), to handle auto-negotiation properly forBrad Smith
Yukon-based adapters. From FreeBSD
2006-04-30- Use SK_IS_GENESIS/SK_IS_YUKON where appropriateBrad Smith
- Remove SK_YUKON_FAMILY
2006-04-30- Interrupt handler now checks shared interrupt source and protectsBrad Smith
the interrupt handler from NULL pointer dereference which was caused by odd status word value. The status word can return 0xffffffff if the cable is unplugged while Rx/Tx/auto-negotiation is in progress. From FreeBSD
2006-04-30Update if_oerrors if we encounter watchdog error.Brad Smith
From FreeBSD
2006-04-30- Added/corrected register definitions for Yukon.Brad Smith
(Register information from Linux skge driver.) From FreeBSD
2006-04-23some more ANSI, KNF and other tidying up.Brad Smith
2006-04-20Fix various printf() issues: too many arguments, not enough arguments, argumentMiod Vallat
order reversed, wrong modifiers. ok deraadt@ marco@ mickey@
2006-04-17If there is a timeout while writing to the PHY inBrad Smith
sk_marv_miibus_writereg() then print a message indicating so, as done in the XMAC case.
2006-04-17Coviery CID 1108: Avoid NULL pointer deref.Brad Smith
Coverity CID 1105: Avoid NULL deref. From NetBSD
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-13add some ASIC revisions to the various switch cases and identifyBrad Smith
some newer revs.
2006-02-09sync PCI id.Brad Smith
2005-12-22re-work PHY setup, media handling and dual-port detection.Brad Smith
Based on the Marvell FreeBSD driver.
2005-12-16remove unused code to use IO space.Brad Smith
2005-12-15merge printing of the revision and the interrupt string into one printf.Brad Smith
2005-12-10sk_shutdown -> skc_shutdown and register the shutdown function withBrad Smith
shutdownhook_establish().
2005-12-10shrink dmesg entry by one line by merging the chipset revision intoBrad Smith
the skc line and fix various error condition printf's in skc_attach(), sk_attach() and sk_alloc_jumbo_mem() so the messages will be displayed properly. ok krw@
2005-11-26fix interrupt moderation timer frequencies for Yukon and Yukon-II basedBrad Smith
chips. From Jeff Rizzo on NetBSD's tech-net list, based on the Marvell sk98lin Linux driver, and also matches what the Marvell FreeBSD does.
2005-11-15more accurately reflect the naming scheme of the Marvell Yukon devices with ↵Brad Smith
there pcidevs entries. Based on information from the Marvell Yukon/Yukon-II FreeBSD driver.
2005-11-07- splimp -> splnetBrad Smith
- remove spl's from attach - removing redundant checks before pci_mapreg_map() - fix dmesg printing - de-allocate resources on failure to attach - remove unused VLAN input code from vge(4)
2005-10-15add 2 new Yukon PCI ids and recognize Yukon-2 EC Ultra ASIC.Brad Smith
2005-10-15update Via and 3Com ids.Brad Smith
2005-09-20memory, media handling and a bunch of register definitions for Yukon-2.Brad Smith
From jason@
2005-09-20merge xmaciireg.h and yukonreg.h into if_skreg.hBrad Smith
2005-09-20shuffle some stuff from skreg to skvarBrad Smith
2005-09-17add media detection and dual port detection for Yukon-2.Brad Smith
from jason@
2005-09-16- remove code to read PCI VPD as we do not use that anymore.Brad Smith
- remove some FreeBSD-ism's: struct resource *'s. - fail more gracefully in sk_probe() instead of in sk_attach() for newer unsupported ASIC revisions. From jason@
2005-08-29- use pci_mapreg_type() to fix some systems that would fail to attachBrad Smith
sk(4) with "can't map mem space". - add missing newline for failure case of pci_intr_establish(). ok deraadt@
2005-07-25don't bother with printf in *_jalloc()Brad Smith
2005-07-24simplify error paths and add some missing ones; brad@ ok.Federico G. Schwindt
deallocation for jumbo memory left.
2005-07-22- sync sk_alloc_jumbo_mem() to look like bge's bge_alloc_jumbo_mem()Brad Smith
- oops, forgot to remove a line in sk_rxeof()
2005-07-22also take the PCI subsystem id into consideration when trying to probeBrad Smith
for Linksys EG1032 cards, that way we do not try and attach to newer rev 3 cards that use the RealTek 8169S chipset.
2005-07-21- add bus_dmamap_sync()'s; From NetBSDBrad Smith
- use pci_mapreg_map() - remove unnecessary splimp() usage in skc_attach() - make sure to disestablish the interrupt on failure Tested by a few end-users.
2005-07-14add D-Link PCI id.Brad Smith
From: jsg@
2005-07-12remove unused prototype sk_free_jumbo_memBrad Smith
2005-07-12free resources for Jumbo buffers in sk_stop().Brad Smith
ok deraadt, krw, beck
2005-07-02clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.Brad Smith
2005-07-02- mbuf external storage is of (caddr_t), not (caddr_t *).Brad Smith
- check for MTU being too small with ETHERMIN - don't bother reseting the card since it'll default to allowing Jumbos
2005-05-17remove spurious bpf_mtap (I think it's leftover debugging code from a year ago)Jason Wright
2005-05-16add a newline hereBrad Smith
2005-05-11remove comment which is not valid anymoreBrad Smith
2005-05-11- Also match on Yukon LP's for the Lite rev A0 test.Brad Smith
- Do not call mii_pollstat() from within device tick routines; the status information is updated by mii_tick(). - Take PHY out of reset for Yukon Lite rev A3. This resolves the intermittent "no PHY found!" issue. From FreeBSD - Recognize some newer Yukon chipsets ok krw@, tested by krw@ and a few others, mostly with LOM Lite A3's but also with some other ASIC revs too.
2005-04-25csum -> csum_flagsBrad Smith
ok krw@ canacar@
2005-03-18fail to attach with a printf instead of a panic for newer yet unsupportedBrad Smith
Yukon-2-based cards. ok deraadt@