mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-26 03:33:28 +00:00 
			
		
		
		
	 41ea82055c
			
		
	
	
		41ea82055c
		
	
	
	
	
		
			
			Move the I8042 macro close to the TYPE_I8042 define. This will make future conversion to OBJECT_DECLARE* easier. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Tested-By: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200825192110.3528606-34-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			637 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			637 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * QEMU PS/2 Controller
 | |
|  *
 | |
|  * Copyright (c) 2003 Fabrice Bellard
 | |
|  *
 | |
|  * SPDX-License-Identifier: MIT
 | |
|  */
 | |
| #ifndef HW_INPUT_I8042_H
 | |
| #define HW_INPUT_I8042_H
 | |
| 
 | |
| #include "hw/isa/isa.h"
 | |
| 
 | |
| #define TYPE_I8042 "i8042"
 | |
| #define I8042(obj) OBJECT_CHECK(ISAKBDState, (obj), TYPE_I8042)
 | |
| 
 | |
| #define I8042_A20_LINE "a20"
 | |
| 
 | |
| typedef struct ISAKBDState ISAKBDState;
 | |
| 
 | |
| void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
 | |
|                    MemoryRegion *region, ram_addr_t size,
 | |
|                    hwaddr mask);
 | |
| void i8042_isa_mouse_fake_event(ISAKBDState *isa);
 | |
| void i8042_setup_a20_line(ISADevice *dev, qemu_irq a20_out);
 | |
| 
 | |
| #endif /* HW_INPUT_I8042_H */
 |