Statistics
| Branch: | Revision:

root / hw / pcnet.h @ 93148aa5

History | View | Annotate | Download (2 kB)

# Date Author Comment
488a1a5d 11/01/2011 11:52 pm Jan Kiszka

pcnet: Move BCR defines to header

This moves BCR defines to the common header and immediately makes use of
them to add BCR_APROMWE, replacing the open-coded write check in
pcnet_aprom_writeb.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

e1c2008a 11/01/2011 11:52 pm Jan Kiszka

pcnet: Add link state support

Update lnkst on link state changes so that guests can obtain this
information via reading back the LED output pin. Works for Linux but
not for guests that depend on the missing PHY.

Signed-off-by: Jan Kiszka <>...

fe87aa83 08/21/2011 10:52 pm Blue Swirl

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 */...
bd8d6f7c 08/08/2011 06:22 pm Avi Kivity

pcnet: convert to memory API

Also related chips.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

a4c75a21 11/27/2010 01:23 pm Paul Brook

Split out common pcnet code

The core pcnet emulation code is used by both the PCI "pcnet" device
and the SPARC "lance" device. Split the common code frm the PCI code so
that that can be configures independantly.

Signed-off-by: Paul Brook <>

1fa51482 12/03/2009 05:41 pm Mark McLoughlin

net: convert pcnet to NICState

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

3d865059 10/27/2009 07:28 pm Juan Quintela

pcnet: port to vmstate

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

94e1a912 10/27/2009 07:28 pm Gerd Hoffmann

pcnet: split away lance.c (sparc32 code).

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>