aboutsummaryrefslogtreecommitdiff
path: root/hw/net/lance.c
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2017-10-14 13:22:22 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2017-10-31 17:25:36 +0000
commit76d28ca7653b69df5e9a4e11b2d15cbe885e5698 (patch)
tree2f819ecd1e5779e0477d0b1c00e41ebaecffb2ad /hw/net/lance.c
parent7f773ff5d0d2172a7fb4a16a283c1fc5965f6fac (diff)
lance: move TYPE_LANCE and SysBusPCNetState from lance.c to lance.h
This enables them to be used outside of lance.c. We also update the comment to refer to the SPARC32 lance device rather than the AMD PCNet-II device (of which lance is a register-compatible subset). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> CC: Jason Wang <jasowang@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/net/lance.c')
-rw-r--r--hw/net/lance.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/hw/net/lance.c b/hw/net/lance.c
index 92b0c68274..23929fd1e6 100644
--- a/hw/net/lance.c
+++ b/hw/net/lance.c
@@ -41,19 +41,10 @@
#include "qemu/timer.h"
#include "qemu/sockets.h"
#include "hw/sparc/sun4m.h"
-#include "pcnet.h"
+#include "hw/net/lance.h"
#include "trace.h"
#include "sysemu/sysemu.h"
-#define TYPE_LANCE "lance"
-#define SYSBUS_PCNET(obj) \
- OBJECT_CHECK(SysBusPCNetState, (obj), TYPE_LANCE)
-
-typedef struct {
- SysBusDevice parent_obj;
-
- PCNetState state;
-} SysBusPCNetState;
static void parent_lance_reset(void *opaque, int irq, int level)
{