On 13/2/23 09:36, Philippe Mathieu-Daudé wrote:
On 13/2/23 08:08, Philippe Mathieu-Daudé wrote:
Have all the EEPRO100-based devices share a common (abstract)
QOM parent.

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  hw/net/eepro100.c | 40 ++++++++++++++++++++++++++--------------
  1 file changed, 26 insertions(+), 14 deletions(-)

diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c
index dc07984ae9..dac42ba17b 100644
--- a/hw/net/eepro100.c
+++ b/hw/net/eepro100.c
@@ -235,8 +235,14 @@ typedef enum {
      ru_ready = 4
  } ru_state_t;
-typedef struct {
+#define TYPE_EEPRO100 "eepro100"
+OBJECT_DECLARE_SIMPLE_TYPE(EEPRO100State, EEPRO100)

Self-NACK, I'll respin also introducing EEPRO100Class for completeness.

Respin posted here:
https://lore.kernel.org/qemu-devel/20230213101048.94519-1-phi...@linaro.org/

Reply via email to