History | View | Annotate | Download (2 kB)
pcnet: Move BCR defines to header
This moves BCR defines to the common header and immediately makes use ofthem to add BCR_APROMWE, replacing the open-coded write check inpcnet_aprom_writeb.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
pcnet: Add link state support
Update lnkst on link state changes so that guests can obtain thisinformation via reading back the LED output pin. Works for Linux butnot for guests that depend on the missing PHY.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
pcnet: avoid structure holes spotted by pahole
Edited report from pahole on amd64 host:struct PCNetState_st {... uint16_t bcr32; /* 340 64 */
/* XXX 4 bytes hole, try to pack /... int tx_busy; / 4520 4 */...
pcnet: convert to memory API
Also related chips.
Reviewed-by: Richard Henderson <rth@twiddle.net>Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Split out common pcnet code
The core pcnet emulation code is used by both the PCI "pcnet" deviceand the SPARC "lance" device. Split the common code frm the PCI code sothat that can be configures independantly.
Signed-off-by: Paul Brook <paul@codesourcery.com>
net: convert pcnet to NICState
Signed-off-by: Mark McLoughlin <markmc@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
pcnet: port to vmstate
Signed-off-by: Juan Quintela <quintela@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
pcnet: split away lance.c (sparc32 code).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>