mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
ne2000: convert to memory API
Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
23c5e4cab2
commit
1ec4e1ddc9
3 changed files with 59 additions and 41 deletions
|
@ -4,6 +4,7 @@
|
|||
#define NE2000_MEM_SIZE NE2000_PMEM_END
|
||||
|
||||
typedef struct NE2000State {
|
||||
MemoryRegion io;
|
||||
uint8_t cmd;
|
||||
uint32_t start;
|
||||
uint32_t stop;
|
||||
|
@ -27,12 +28,7 @@ typedef struct NE2000State {
|
|||
uint8_t mem[NE2000_MEM_SIZE];
|
||||
} NE2000State;
|
||||
|
||||
void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val);
|
||||
uint32_t ne2000_ioport_read(void *opaque, uint32_t addr);
|
||||
void ne2000_asic_ioport_write(void *opaque, uint32_t addr, uint32_t val);
|
||||
uint32_t ne2000_asic_ioport_read(void *opaque, uint32_t addr);
|
||||
void ne2000_reset_ioport_write(void *opaque, uint32_t addr, uint32_t val);
|
||||
uint32_t ne2000_reset_ioport_read(void *opaque, uint32_t addr);
|
||||
void ne2000_setup_io(NE2000State *s, unsigned size);
|
||||
extern const VMStateDescription vmstate_ne2000;
|
||||
void ne2000_reset(NE2000State *s);
|
||||
int ne2000_can_receive(VLANClientState *vc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue