diff options
author | Avi Kivity <avi@redhat.com> | 2011-08-08 16:09:19 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-08 10:22:29 -0500 |
commit | bd8d6f7cadb6ace98c779135217a4ed7b5fccc23 (patch) | |
tree | cbf0cda5d31639b287691e55604f11e7b752698a /hw/pcnet.h | |
parent | 1ec4e1ddc900f4293cd66e17485c8075a3551fed (diff) |
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>
Diffstat (limited to 'hw/pcnet.h')
-rw-r--r-- | hw/pcnet.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/pcnet.h b/hw/pcnet.h index 534bdf9c2b..7e1c6853dd 100644 --- a/hw/pcnet.h +++ b/hw/pcnet.h @@ -4,6 +4,7 @@ #define PCNET_LOOPTEST_CRC 1 #define PCNET_LOOPTEST_NOCRC 2 +#include "memory.h" typedef struct PCNetState_st PCNetState; @@ -17,7 +18,8 @@ struct PCNetState_st { uint16_t csr[128]; uint16_t bcr[32]; uint64_t timer; - int mmio_index, xmit_pos; + MemoryRegion mmio; + int xmit_pos; uint8_t buffer[4096]; int tx_busy; qemu_irq irq; |