summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_jmevar.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Some fixes for jme_encap()..brad2013-12-071-3/+1
| | | | | | | | | | | | | | | | | | | - Remove the maximum DMA segments handling bits as it is unused between DragonFly and OpenBSD. - Fix error handling for bus_dmamap_load_mbuf() so as to not try unloading a DMA map that had not already been loaded. - Clean up the DMA chain defragmenting path to remove unwanted printfs and simplify things a bit. - Have jme_encap() check the number of mapped DMA segments against the TX ring to see if it'll fit as do most of the driver nowadays. - Remove the KASSERT's that shouldn't be there. - Simplify the dummy descriptor handling to be closer to the FreeBSD driver since unlike the DragonFly driver this originated from our driver always uses the 64-bit dummy descriptor. - If the ring was full make sure to IF_PREPEND() the packet back on the queue since it wasn't transmitted. Tested by myself, comete@daknet.org and vigdis+obsd@chown.me.
* - remove unused variablekevlo2009-01-101-2/+1
| | | | | | - eliminate hardcoded return value of jme_init_rx_ring() ok jsg@
* Configure the clock sources for tx mac/offload engines, requiredjsg2008-12-011-1/+2
| | | | | | | | for newer revisions, makes the JMC261 work. Thanks to JMicron for supplying hardware to test against. ok brad@
* - Add a workaround field to the softc struct.brad2008-10-291-2/+5
| | | | | | | | | | | | | | | | - Move the extended FIFO workaround from the capabilities field to the workaround field. - Add General purpose register 1 defines for the workarounds. - Enable a workaround for CRC errors that can be experienced with A2 revision adapters. - Add a workaround for packet loss that can be experienced with A2 revision adapters when in 10/100 mode with half duplex. From DraonFly - Rename the workaround flags so they describe what is being worked around. ok jsg@
* Remove ioctl handlers for MTU changing and multicast, they're alreadybrad2008-10-201-2/+1
| | | | | | handled by ether_ioctl() and simplify the interface flags handler. ok jsg@
* Add drivers for the JMicron JMC250/JMC260 Ethernet controllersjsg2008-09-261-0/+244
and JMicron JMP202/JMP211 Ethernet PHYs. Written by Pyun YongHyeon for FreeBSD, ported to DragonFlyBSD by Sepherosa Ziehau and then ported to OpenBSD by me. Thanks once again to JMicron for supplying hardware and information which made this possible. Some cleanup still needs to be done, and checksum offload needs to be sorted out, but the driver otherwise seems to work great. Comitted over a JMC250 card.