mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
pci: Tidy up PCI host bridges
Adopt the QOM parent field name and enforce QOM-style access via casts. Don't just typedef PCIHostState, either use it directly or embed it. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8558d942b6
commit
67c332fd12
10 changed files with 42 additions and 28 deletions
|
@ -43,7 +43,7 @@
|
|||
#define DEC_21154(obj) OBJECT_CHECK(DECState, (obj), TYPE_DEC_21154)
|
||||
|
||||
typedef struct DECState {
|
||||
PCIHostState host_state;
|
||||
PCIHostState parent_obj;
|
||||
} DECState;
|
||||
|
||||
static int dec_map_irq(PCIDevice *pci_dev, int irq_num)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue