summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_msk.c
AgeCommit message (Collapse)Author
2010-05-19BUS_DMA_ZERO instead of alloc, map, bzero.Owain Ainsworth
ok krw@
2010-01-09Remove typo and magic numbers from #if 0'd block, from Brad.Stuart Henderson
2009-12-18More device id ordering, from BradStuart Henderson
2009-12-17Device id ordering, from BradStuart Henderson
2009-11-26Only re-initialise interfaces on suspend if they were IFF_RUNNING.Mark Kettenis
ok deraadt@, claudio@
2009-11-24Thoroughly reset the chip upon suspend and give the PHY a chance toMark Kettenis
re-initialise itself afterward. ok deraadt@, mlarkin@, claudio@, pirofti@
2009-11-24for MCLGETI to work correctly drivers need to first dequeue all availableClaudio Jeker
packets and then refill the RX ring. When not done this way the rx ring can not grow correctly. Tested by jmc@, OK deraadt@, kettenis@
2009-11-24msk_newbuf() had an off by one when putting the packet onto the clusterClaudio Jeker
and cleared the mbuf pointer of the next element, causing a mbuf leak. While there also ensure that the valid bit of the first buffer is only set when the full chain got assembled. Tested by jmc@, ok kettenis@
2009-10-15Add detach support to a few more drivers, and in others do the neccessaryTheo de Raadt
operations in the detach function in the right order. Also ensure that the interrupt handlers not trust registers that go away. read over very carefully by dms, tested by me
2009-10-04Correctly store the tag results from bus_dmamem_alloc() so that theTheo de Raadt
detach routine can free the right resources ok dlg kettenis
2009-08-13- consistify cfdriver for the ethernet drivers (0 -> NULL)Jasper Lievisse Adriaanse
ok dlg@
2009-08-09MCLGETI() will now allocate a mbuf header if it is not provided, thusTheo de Raadt
reducing the amount of splnet/splx dancing required.. especially in the worst case (of m_cldrop) ok dlg kettenis damien
2009-03-29Bypass macsec on extreme/supreme based chips.Jonathan Gray
Makes my 88E8072 work. ok kettenis@
2009-03-29Remove holdover XMAC II writes/reads inherited from sk asJonathan Gray
they aren't required and cause problems like the 88E8072 hard locking a system when enabling macsec bypass. Tested on 8053/8072 by me and 8021 by kettenis. ok kettenis@
2009-03-27add definitions for more yukon 2 revisions found in linux driverJonathan Gray
(which tend to be required to know which of the many bugs we will need to work around before each particular revision of hardware will actually work). ok kettenis@
2009-03-23Switch msk(4) over to using MCLGETI when allocating mbufs for the RX ring.Mark Kettenis
This gets rid of one of the evil jumbo allocators!
2009-03-23Prevent null pointer dereference that could happen when we process an RXMark Kettenis
interrupt that was queued while stopping the interface.
2009-03-1688E8057 is a Yukon 2 Ultra 2, and this might make it work on a littleTheo de Raadt
shiny green box in Japan ok kettenis
2009-02-22Make Yukon-2 FE+ (88E8040, 88E8042) work.Mark Kettenis
ok 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-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@