diff options
author | Paul Brook <paul@codesourcery.com> | 2010-11-27 11:23:34 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2010-11-27 11:23:34 +0000 |
commit | a4c75a21f3749b8dc5a8cc252bc57adb3f43453c (patch) | |
tree | f4fc3ce0c03d31bb80de946c83286a49286903bf /hw/pcnet.h | |
parent | 129cac5b5af110cfa94eae1a570c33ce795f0104 (diff) |
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 <paul@codesourcery.com>
Diffstat (limited to 'hw/pcnet.h')
-rw-r--r-- | hw/pcnet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/pcnet.h b/hw/pcnet.h index efacc9fa59..534bdf9c2b 100644 --- a/hw/pcnet.h +++ b/hw/pcnet.h @@ -32,6 +32,9 @@ 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); +void pcnet_ioport_writel(void *opaque, uint32_t addr, uint32_t val); +uint32_t pcnet_ioport_readl(void *opaque, uint32_t addr); +uint32_t pcnet_bcr_readw(PCNetState *s, uint32_t rap); 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); |