| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
|
| |
- eliminate hardcoded return value of jme_init_rx_ring()
ok jsg@
|
|
|
|
|
|
|
|
| |
for newer revisions, makes the JMC261 work.
Thanks to JMicron for supplying hardware to test against.
ok brad@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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@
|
|
|
|
|
|
| |
handled by ether_ioctl() and simplify the interface flags handler.
ok jsg@
|
|
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.
|