4 #include "qemu/units.h"
8 #define NE2000_PMEM_SIZE (32 * KiB)
9 #define NE2000_PMEM_START (16 * KiB)
10 #define NE2000_PMEM_END (NE2000_PMEM_SIZE+NE2000_PMEM_START)
11 #define NE2000_MEM_SIZE NE2000_PMEM_END
13 typedef struct NE2000State
{
29 uint8_t phys
[6]; /* mac address */
31 uint8_t mult
[8]; /* multicast mask array */
35 uint8_t mem
[NE2000_MEM_SIZE
];
38 void ne2000_setup_io(NE2000State
*s
, DeviceState
*dev
, unsigned size
);
39 extern const VMStateDescription vmstate_ne2000
;
40 void ne2000_reset(NE2000State
*s
);
41 ssize_t
ne2000_receive(NetClientState
*nc
, const uint8_t *buf
, size_t size_
);