1 #define PCNET_IOPORT_SIZE 0x20
2 #define PCNET_PNPMMIO_SIZE 0x20
4 #define PCNET_LOOPTEST_CRC 1
5 #define PCNET_LOOPTEST_NOCRC 2
8 typedef struct PCNetState_st PCNetState
;
10 struct PCNetState_st
{
13 QEMUTimer
*poll_timer
;
20 int mmio_index
, xmit_pos
;
24 void (*phys_mem_read
)(void *dma_opaque
, target_phys_addr_t addr
,
25 uint8_t *buf
, int len
, int do_bswap
);
26 void (*phys_mem_write
)(void *dma_opaque
, target_phys_addr_t addr
,
27 uint8_t *buf
, int len
, int do_bswap
);
32 void pcnet_h_reset(void *opaque
);
33 void pcnet_ioport_writew(void *opaque
, uint32_t addr
, uint32_t val
);
34 uint32_t pcnet_ioport_readw(void *opaque
, uint32_t addr
);
35 void pcnet_common_cleanup(PCNetState
*d
);
36 int pcnet_common_init(DeviceState
*dev
, PCNetState
*s
,
38 extern const VMStateDescription vmstate_pcnet
;