summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
AgeCommit message (Collapse)Author
2006-09-27fix the use of LIST_INSERT_HEAD in [m]sk_alloc_jumbo_mem().Brad Smith
2006-09-26Set sk_jumbo_buf to NULL if malloc() fails in the for loop withinBrad Smith
[m]sk_alloc_jumbo_mem().
2006-09-18g/c unused SK_{SET,CLR}BIT macrosBrad Smith
From riz@NetBSD
2006-08-17cosmetic tweaks.Brad Smith
2006-08-17remove PCI ids which msk(4) will match against from sk(4).Brad Smith
2006-08-09revert rev 1.119 as this seems to cause problems with some PHY.Brad Smith
2006-08-04and the same goes for sk_init_yukon().Brad Smith
2006-08-04remove now redundant promiscuous mode handling code from sk_init_xmac().Brad Smith
2006-08-04refactor the promiscuous mode handling code and simplify the ioctl handler.Brad Smith
2006-08-04Fix busy check for PHY write operation with Yukon chips.Brad Smith
From yongari@FreeBSD
2006-07-30Add more strict receive path packet validation routine. PreviouslyBrad Smith
the driver could pass corrupted packets to the upper layer under certain conditions. From yongari@FreeBSD
2006-07-23improved Yukon init routine with proper workaround for the PHY COMA mode.Brad Smith
From yongari@FreeBSD
2006-06-22Add appropriate swapping for big-endian systems. Allows sk(4) to workBrad Smith
on macppc and sparc64. ok reyk@
2006-06-22adjust PCI ids.Brad Smith
2006-06-17add sys/timeout.hBrad Smith
2006-06-17remove some whitespace.Brad Smith
2006-06-15Fix watchdog timeout errors seen on a few systems.Brad Smith
The SK-NET GENESIS document says reading the SK_ISSR register should stop generating further interrupts, but it seems there is the possibility of losing interrupts between reading the SK_ISSR register and determining which interrupts have been reported. To cope with this situation we continuously read the SK_ISSR register until there are no interrupts. However, it seems that the above workaround does not fix all cases. Add workaround code that tries to protect against false alarms from the watchdog handler by trying to reclaim pending Tx descriptors before resetting the hardware. This should fix occasional watchdog timeouts seen with this driver. From FreeBSD
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@