From: Stefan Weil Date: Tue, 6 Apr 2010 11:44:09 +0000 (+0200) Subject: eepro100: fix PCI interrupt pin configuration regression X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~8150^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f62719ca6fcdab99d6fbd7a1d6798e0fad4e0b70;p=sdk%2Femulator%2Fqemu.git eepro100: fix PCI interrupt pin configuration regression Commit 15e89f5916c9e82347cbd1fd416db3e348bab426 removed this setting, but it is still needed. Without this patch, e100 device drivers using interrupts don't work with qemu. See other nic emulations which also set the PCI interrupt pin. Signed-off-by: Stefan Weil Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/eepro100.c b/hw/eepro100.c index 949ca4e..785a7da 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -474,6 +474,9 @@ static void e100_pci_reset(EEPRO100State * s, E100PCIDeviceInfo *e100_device) /* PCI Latency Timer */ pci_set_byte(pci_conf + PCI_LATENCY_TIMER, 0x20); /* latency timer = 32 clocks */ /* Capability Pointer is set by PCI framework. */ + /* Interrupt Line */ + /* Interrupt Pin */ + pci_set_byte(pci_conf + PCI_INTERRUPT_PIN, 1); /* interrupt pin A */ /* Minimum Grant */ pci_set_byte(pci_conf + PCI_MIN_GNT, 0x08); /* Maximum Latency */