Revision d55380bb hw/dec_pci.c
b/hw/dec_pci.c | ||
---|---|---|
23 | 23 |
* THE SOFTWARE. |
24 | 24 |
*/ |
25 | 25 |
|
26 |
#include "dec_pci.h" |
|
26 | 27 |
#include "sysbus.h" |
27 | 28 |
#include "pci.h" |
28 | 29 |
#include "pci_host.h" |
... | ... | |
42 | 43 |
PCIHostState host_state; |
43 | 44 |
} DECState; |
44 | 45 |
|
46 |
static int dec_map_irq(PCIDevice *pci_dev, int irq_num) |
|
47 |
{ |
|
48 |
return irq_num; |
|
49 |
} |
|
50 |
|
|
51 |
PCIBus *pci_dec_21154_init(PCIBus *parent_bus, int devfn) |
|
52 |
{ |
|
53 |
DeviceState *dev; |
|
54 |
PCIBus *ret; |
|
55 |
|
|
56 |
dev = qdev_create(NULL, "dec-21154"); |
|
57 |
qdev_init_nofail(dev); |
|
58 |
ret = pci_bridge_init(parent_bus, devfn, |
|
59 |
PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21154, |
|
60 |
dec_map_irq, "DEC 21154 PCI-PCI bridge"); |
|
61 |
|
|
62 |
return ret; |
|
63 |
} |
|
64 |
|
|
45 | 65 |
static int pci_dec_21154_init_device(SysBusDevice *dev) |
46 | 66 |
{ |
47 | 67 |
DECState *s; |
Also available in: Unified diff