mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 04:06:46 +00:00 
			
		
		
		
	 d1f2c96a81
			
		
	
	
		d1f2c96a81
		
	
	
	
	
		
			
			Turn PCMCIACardState into a device. Move callbacks to new PCMCIACardClass. Derive TYPE_MICRODRIVE from TYPE_PCMCIA_CARD. Replace ide_init2_with_non_qdev_drives(). Signed-off-by: Othmar Pasteka <pasteka@kabsi.at> Signed-off-by: Andreas Färber <afaerber@suse.de>
		
			
				
	
	
		
			25 lines
		
	
	
		
			490 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			490 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * PCMCIA emulation
 | |
|  *
 | |
|  * Copyright 2013 SUSE LINUX Products GmbH
 | |
|  */
 | |
| 
 | |
| #include "qemu-common.h"
 | |
| #include "hw/hw.h"
 | |
| #include "hw/pcmcia.h"
 | |
| 
 | |
| static const TypeInfo pcmcia_card_type_info = {
 | |
|     .name = TYPE_PCMCIA_CARD,
 | |
|     .parent = TYPE_DEVICE,
 | |
|     .instance_size = sizeof(PCMCIACardState),
 | |
|     .abstract = true,
 | |
|     .class_size = sizeof(PCMCIACardClass),
 | |
| };
 | |
| 
 | |
| static void pcmcia_register_types(void)
 | |
| {
 | |
|     type_register_static(&pcmcia_card_type_info);
 | |
| }
 | |
| 
 | |
| type_init(pcmcia_register_types)
 |