Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pcmcia: QOM'ify PCMCIACardState and MicroDriveState
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>
- Loading branch information
Showing
7 changed files
with
219 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
common-obj-y += pcmcia.o | ||
obj-$(CONFIG_PXA2XX) += pxa2xx.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* 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) |
Oops, something went wrong.