mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ide: Introduce abstract QOM type for PCIIDEState
Needed for QOM casts. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
02a9594b4f
commit
f6c11d5644
5 changed files with 82 additions and 60 deletions
|
@ -37,8 +37,14 @@ typedef struct CMD646BAR {
|
|||
struct PCIIDEState *pci_dev;
|
||||
} CMD646BAR;
|
||||
|
||||
#define TYPE_PCI_IDE "pci-ide"
|
||||
#define PCI_IDE(obj) OBJECT_CHECK(PCIIDEState, (obj), TYPE_PCI_IDE)
|
||||
|
||||
typedef struct PCIIDEState {
|
||||
PCIDevice dev;
|
||||
/*< private >*/
|
||||
PCIDevice parent_obj;
|
||||
/*< public >*/
|
||||
|
||||
IDEBus bus[2];
|
||||
BMDMAState bmdma[2];
|
||||
uint32_t secondary; /* used only for cmd646 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue