mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
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>
This commit is contained in:
parent
129cac5b5a
commit
a4c75a21f3
5 changed files with 11 additions and 308 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue