mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
use PCI_HEADER_TYPE.
use symbolic value instead of 0x0e and related value. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
parent
ccbb4d44fc
commit
6407f37373
21 changed files with 37 additions and 32 deletions
|
@ -110,7 +110,7 @@ void macio_init (PCIBus *bus, int device_id, int is_oldworld, int pic_mem_index,
|
|||
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
|
||||
pci_config_set_device_id(d->config, device_id);
|
||||
pci_config_set_class(d->config, PCI_CLASS_OTHERS << 8);
|
||||
d->config[0x0e] = 0x00; // header_type
|
||||
d->config[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type
|
||||
|
||||
d->config[0x3d] = 0x01; // interrupt on pin 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue