aboutsummaryrefslogtreecommitdiff
path: root/hw/pcnet.h
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-11-25 18:49:15 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:31 -0600
commit1fa5148223e77a705a8626fd9cacb1ba3f1c779f (patch)
treed9aa15043693fa087a1b37f8e35ca6470733abc3 /hw/pcnet.h
parent1c2045b549df75a2869e408d4fdec6738c72da81 (diff)
net: convert pcnet to NICState
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pcnet.h')
-rw-r--r--hw/pcnet.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/pcnet.h b/hw/pcnet.h
index e61d5a4479..efacc9fa59 100644
--- a/hw/pcnet.h
+++ b/hw/pcnet.h
@@ -8,7 +8,7 @@
typedef struct PCNetState_st PCNetState;
struct PCNetState_st {
- VLANClientState *vc;
+ NICState *nic;
NICConf conf;
QEMUTimer *poll_timer;
int rap, isr, lnkst;
@@ -32,7 +32,8 @@ struct PCNetState_st {
void pcnet_h_reset(void *opaque);
void pcnet_ioport_writew(void *opaque, uint32_t addr, uint32_t val);
uint32_t pcnet_ioport_readw(void *opaque, uint32_t addr);
+int pcnet_can_receive(VLANClientState *nc);
+ssize_t pcnet_receive(VLANClientState *nc, const uint8_t *buf, size_t size_);
void pcnet_common_cleanup(PCNetState *d);
-int pcnet_common_init(DeviceState *dev, PCNetState *s,
- NetCleanup *cleanup);
+int pcnet_common_init(DeviceState *dev, PCNetState *s, NetClientInfo *info);
extern const VMStateDescription vmstate_pcnet;