mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-26 03:33:28 +00:00 
			
		
		
		
	 650d103d3e
			
		
	
	
		650d103d3e
		
	
	
	
	
		
			
			In my "build everything" tree, changing hw/hw.h triggers a recompile of some 2600 out of 6600 objects (not counting tests and objects that don't depend on qemu/osdep.h). The previous commits have left only the declaration of hw_error() in hw/hw.h. This permits dropping most of its inclusions. Touching it now recompiles less than 200 objects. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20190812052359.30071-19-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef HW_NE2000_H
 | |
| #define HW_NE2000_H
 | |
| 
 | |
| #include "qemu/units.h"
 | |
| #include "net/net.h"
 | |
| 
 | |
| #define NE2000_PMEM_SIZE    (32 * KiB)
 | |
| #define NE2000_PMEM_START   (16 * KiB)
 | |
| #define NE2000_PMEM_END     (NE2000_PMEM_SIZE+NE2000_PMEM_START)
 | |
| #define NE2000_MEM_SIZE     NE2000_PMEM_END
 | |
| 
 | |
| typedef struct NE2000State {
 | |
|     MemoryRegion io;
 | |
|     uint8_t cmd;
 | |
|     uint32_t start;
 | |
|     uint32_t stop;
 | |
|     uint8_t boundary;
 | |
|     uint8_t tsr;
 | |
|     uint8_t tpsr;
 | |
|     uint16_t tcnt;
 | |
|     uint16_t rcnt;
 | |
|     uint32_t rsar;
 | |
|     uint8_t rsr;
 | |
|     uint8_t rxcr;
 | |
|     uint8_t isr;
 | |
|     uint8_t dcfg;
 | |
|     uint8_t imr;
 | |
|     uint8_t phys[6]; /* mac address */
 | |
|     uint8_t curpag;
 | |
|     uint8_t mult[8]; /* multicast mask array */
 | |
|     qemu_irq irq;
 | |
|     NICState *nic;
 | |
|     NICConf c;
 | |
|     uint8_t mem[NE2000_MEM_SIZE];
 | |
| } NE2000State;
 | |
| 
 | |
| void ne2000_setup_io(NE2000State *s, DeviceState *dev, unsigned size);
 | |
| extern const VMStateDescription vmstate_ne2000;
 | |
| void ne2000_reset(NE2000State *s);
 | |
| ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_);
 | |
| 
 | |
| #endif
 |