mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Add and use remaining #defines for PCI device IDs (Stuart Brady)
This patch adds and uses #defines for the remaining hardcoded PCI device IDs. It also moves definitions taken from linux/pci_ids.h into a separate header (hw/pci_ids.h), removes the 'RTL' from PCI_DEVICE_ID_REALTEK_RTL8029, and renames PCI_DEVICE_ID_FSL_E500 to PCI_DEVICE_ID_MPC8533E to match Linux's definition. Changes in v2: * Don't use C99-style comments * Move definitions from linux/pci_ids.h into a separate header * Rename PCI_DEVICE_ID_FSL_E500 to PCI_DEVICE_ID_MPC8533E Signed-off-by: Stuart Brady <stuart.brady@gmail.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6841 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
b8c18e4c90
commit
a770dc7ea6
9 changed files with 28 additions and 87 deletions
|
@ -324,8 +324,8 @@ PCIBus *ppce500_pci_init(qemu_irq pci_irqs[4], target_phys_addr_t registers)
|
|||
"host bridge", sizeof(PCIDevice),
|
||||
0, NULL, NULL);
|
||||
|
||||
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_FSL);
|
||||
pci_config_set_device_id(d->config, PCI_DEVICE_ID_FSL_E500);
|
||||
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_FREESCALE);
|
||||
pci_config_set_device_id(d->config, PCI_DEVICE_ID_MPC8533E);
|
||||
pci_config_set_class(d->config, PCI_CLASS_PROCESSOR_POWERPC);
|
||||
|
||||
controller->pci_dev = d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue