summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_sk.c
AgeCommit message (Collapse)Author
2009-03-30Switch sk(4) over to using MCLGETI when allocating mbufs for the RX ring.Mark Kettenis
Another evil jumbo allocator bites the dust.
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-10-14Change m_devget()'s outdated and unused "offset" argument: It isChristian Weisgerber
now the offset into the first mbuf of the target chain before copying the source data over. From FreeBSD. Convert drivers' use of m_devget(). Mostly from thib@. Update mbuf(9) man page. ok claudio@, thib@
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-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-05-24Also recognize the Schneider & Koch SK-9821/SK-9843 adapters fromBrad Smith
Fujitsu.
2008-05-23Simplify the combination use of pci_mapreg_type()/pci_mapreg_map() asBrad Smith
suggested by dlg@ awhile ago. ok dlg@
2008-03-02Change some spaces to tabs in the transmit functions.Brad Smith
ok kettenis@
2008-01-17Add splnet around mii_tick() in sk_yukon_tick().Brad Smith
ok kettenis@ dlg@
2007-05-26separate the attach information from the status information with a colon.Reyk Floeter
suggested by deraadt@
2007-05-22%z in printf(9) is not the same as %z in printf(3). Change to %luRay Lai
and cast arg to ulong. OK miod@.
2007-05-07shrink code by not using __inline without static; ok kettenisTheo de Raadt
2007-02-12Fix prototype, from brad@, no binary changePedro Martelletto
2007-02-10Move HASH_BITS constant to if_skreg.h as SK_HASH_BITS. Remove unusedKenneth R Westerback
code and an unnecessary comment, No functional change. From brad@.
2007-02-03Fix typo; clear tx FIFO underrun IRQ as intended instead of rx FIFO overrunMark Kettenis
IRQ. From brad@
2007-01-18Don't reinitialize card at every media change.Kenneth R Westerback
From Brad, tested by Brad, wilfried@ and Johan M:son Lindman. ok wilfried@
2007-01-05For Yukon-based cards, pass MIIF_DOPAUSE to mii_attach().Mark Kettenis
From brad@
2007-01-03In sk_marv_miibus_writereg, wait for busy flag to clear instead ofMark Kettenis
continuing when busy flag set.
2007-01-03Don't say 'Marvell' twice for each sk/msk device in dmesg. No functionalKenneth R Westerback
change. from brad@ ok mglocker@
2006-12-06- Move TX ring full sanity check further up and check the number of DMAReyk Floeter
segments from the DMA map, instead of counting the DMA segments in the for loop and breaking out later. - Unload the DMA map if encountering an error condition. Tested on amd64/i386/sparc64 ok brad@ mglocker@
2006-11-16remove the small amount of code for Yukon-2 chipsets now that there is msk(4).Brad Smith
2006-11-08Make XMAC work on on big-endian systems.Mark Kettenis
help & ok jason@, ok brad@
2006-10-16Fix some "is is"s. ok otto@.Tom Cosgrove
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