hw/net/lan9118: Extract lan9118_phy
authorBernhard Beschow <shentey@gmail.com>
Wed, 11 Dec 2024 15:30:51 +0000 (15:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 11 Dec 2024 15:30:51 +0000 (15:30 +0000)
commitc0cf6b412ecb099d49fe040d32fd5dd149f770d7
treebf048ac2cd8d8ebb364cbf652054327523513abd
parent97f2796a3736ed37a1b85dc1c76a6c45b829dd17
hw/net/lan9118: Extract lan9118_phy

A very similar implementation of the same device exists in imx_fec. Prepare for
a common implementation by extracting a device model into its own files.

Some migration state has been moved into the new device model which breaks
migration compatibility for the following machines:
* smdkc210
* realview-*
* vexpress-*
* kzm
* mps2-*

While breaking migration ABI, fix the size of the MII registers to be 16 bit,
as defined by IEEE 802.3u.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20241102125724.532843-2-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/Kconfig
hw/net/lan9118.c
hw/net/lan9118_phy.c [new file with mode: 0644]
hw/net/meson.build
include/hw/net/lan9118_phy.h [new file with mode: 0644]