diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-11-25 18:49:15 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:31 -0600 |
commit | 1fa5148223e77a705a8626fd9cacb1ba3f1c779f (patch) | |
tree | d9aa15043693fa087a1b37f8e35ca6470733abc3 /hw/pcnet.h | |
parent | 1c2045b549df75a2869e408d4fdec6738c72da81 (diff) | |
download | qemu-1fa5148223e77a705a8626fd9cacb1ba3f1c779f.zip qemu-1fa5148223e77a705a8626fd9cacb1ba3f1c779f.tar.gz qemu-1fa5148223e77a705a8626fd9cacb1ba3f1c779f.tar.bz2 |
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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |