]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net/tulip: add chip status register values
authorSven Schnelle <svens@stackframe.org>
Mon, 5 Feb 2024 19:47:17 +0000 (20:47 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 14 Feb 2024 18:12:57 +0000 (21:12 +0300)
commit281fea01d6d71ea8f5b33390f32886f054813cf6
tree3cc1cbebe909c2b92141a26eb90a261becaea694
parent9ab476c3de1c2ff5851f00671cd24d6a16efff54
hw/net/tulip: add chip status register values

Netbsd isn't able to detect a link on the emulated tulip card. That's
because netbsd reads the Chip Status Register of the Phy (address
0x14). The default phy data in the qemu tulip driver is all zero,
which means no link is established and autonegotation isn't complete.

Therefore set the register to 0x3b40, which means:

Link is up, Autonegotation complete, Full Duplex, 100MBit/s Link
speed.

Also clear the mask because this register is read only.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Helge Deller <deller@gmx.de>
Tested-by: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
(cherry picked from commit 9b60a3ed5569a70bbdd29e3c9ec4c5d4685c6e2c)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/net/tulip.c