/[qemu]/qemu/hw/pci.c
ViewVC logotype

Diff of /qemu/hw/pci.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by bellard, Sat Oct 9 17:32:58 2004 UTC revision 1.16 by bellard, Wed Apr 6 23:00:25 2005 UTC
# Line 494  PIIX3State *piix3_state; Line 494  PIIX3State *piix3_state;
494  static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)  static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)
495  {  {
496      int slot_addend;      int slot_addend;
497      slot_addend = (pci_dev->devfn >> 3);      slot_addend = (pci_dev->devfn >> 3) - 1;
498      return (irq_num + slot_addend) & 3;      return (irq_num + slot_addend) & 3;
499  }  }
500    

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26