summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_msk.c
AgeCommit message (Collapse)Author
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-06-21add Marvell Yukon PCI id for the 88E8040T chipset.Brad Smith
From Linux sky2/Marvell sk98lin drivers.
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-02-03- add Marvell Yukon PCI ids for a second 88E8055 chipset and the 88E8075 ↵Brad Smith
chipset. - add initial support for the Marvell Yukon Supreme ASIC. Inspired by similar changes to the Linux sky2 driver. ok kettenis@ dlg@
2007-11-25Make msk(4) detachable.Mark Kettenis
"can't be wrong" deraadt@
2007-11-14add the Marvell 88E8042 and 88E8072 PCI ids.Brad Smith
From the Linux sky2 driver. ok dlg@
2007-10-02add initial support for the Marvell PCIe Yukon FE+ Fast Ethernet chipsets.Brad Smith
Inspired by similar changes to the Linux sky2 driver. Tested by dunceor, Schoeberle Daniel, moritz@ and brad@ on existing known working adapters. These chipsets are not actually available in hardware yet. ok dlg@
2007-09-17Remove an unused function msk_setfilt() which was copied from sk(4) and isBrad Smith
not of use to the Yukon chipsets. ok kettenis@ dlg@
2007-06-27Shrink code by not using __inline without static; like we did for sk(4).Mark Kettenis
From brad at comstyle dot com.
2007-06-01Only probe phy's at address 0; gets rid of bogus phy's on theMark Kettenis
Marvell Yukon 88E8036. ok jsg@
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-14Properly wrap mii_tick() up in splnet().Jonathan Gray
This seems to fix a bizzare problem I was having for some time with msk on MP amd64 where the machine would reboot itself under load. At least sk(4) and rl(4) code seems to have the potential for a similiar problem. ok kettenis@
2007-05-12Take alignment restrictions into account when setting up RAM buffer addresses.Mark Kettenis
This makes Yukon-2 FE chips work reliably. Pointed out by giovanni at gmail dot com.
2007-02-26This fixes the function names printed in the panic strings so thatTodd T. Fries
the correct function names are being used, this is msk(4), not sk(4). from brad@
2007-02-13Fix typo. Spotted by brad@.Mark Kettenis
2007-02-12Avoid unnecessary resets. This should make fiber 88E8021/22 work completely.Mark Kettenis
tested by jsg@, brad@
2007-02-11Add support for fiber on 88E8021/22.Mark Kettenis
2007-02-10Adjust for new/renamed DLink card & Marvell chips. Based on a diff by brad@.Mark Kettenis
2007-02-10Add preliminary support for Marvell Yukon-II Extreme chips.Mark Kettenis
Based on a diff from brad@.
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-17Remove some textual sk heritage warts by renaming some functions andKenneth R Westerback
eliminating a one line called once function by inserting its code inline. No functional change. From Brad.
2007-01-13Correctly count outbound packets.Mark Kettenis
From brad@
2007-01-08No need to re-init on every media change.Mark Kettenis
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-30Enable jumbo frames (except on the Yukon-2 FE).Mark Kettenis
From brad@
2006-12-30Pass MIIF_FORCEANEG to mii_attack() until we stop doing unnecessary PHYMark Kettenis
hardware resets.
2006-12-28Remove useless code dealing with media type. Simplify PHY reset code.Mark Kettenis
2006-12-28Pass MIIF_DOPAUSE to mii_attach().Mark Kettenis
2006-12-24Make non-autonegotiated 10baseT and 100baseTX work.Mark Kettenis
2006-12-24In msk_marv_miibus_writereg, wait for busy flag to clear instead ofMark Kettenis
continuing when busy flag set.
2006-12-16Enable RAM buffer for the second port too; makes dual port cards work soMark Kettenis
reenable attachment of the second port on cards that have it.
2006-12-16Process status descriptors for port B. Fix two typos while I'm there.Mark Kettenis
2006-12-15Process status descriptors that have SK_Y2_STOPC_OWN bit set instead ofMark Kettenis
looking at SK_STAT_BMU_PUTIDX; makes Yukon-2 XL rev. A3 work.
2006-12-12Clarifying a few pcidevs entry names based on names foundMichael Knudsen
in a much more recent Marvell Linux sk98lin driver. From brad@. ok me and kettenis (via mglocker)
2006-12-08Add the Broadcom BCM5787F PCI id.Gordon Willem Klok
Add D-Link DGE-560SX and another Marvell Yukon (unknown model) PCI ids. From the Linux sky2 driver via brad@
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-25remove some sk(4) specific media handling code.Brad Smith
ok kettenis@ Tested with Yukon-2 EC and Yukon-2 XL.
2006-11-23Do not attach second port on dual port cards for now.Mark Kettenis
This makes the first port work. ok brad@
2006-11-23Set some more power management bits; makes Yukon-2 XL work somewhat.Mark Kettenis
ok brad@
2006-11-17Remove code that deals with sk(4) specific phy's that breaks certain msk(4)Mark Kettenis
variants. tested by jsg@
2006-11-16when checking for an appropriate revision of chipset use SK_IS_YUKON2Brad Smith
instead of SK_IS_YUKON.
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-25add the new PCI ids.Brad Smith
2006-09-22add the Marvell Yukon 88E8056 PCI idBrad Smith