1. 12 7月, 2010 4 次提交
    • I
      pci: remove PCIDeviceInfo::header_type · e327e323
      Isaku Yamahata 提交于
      replace PCIDeviceInfo::header_type with is_bridge
      as suggested by Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      e327e323
    • I
      pci: don't overwrite multi functio bit in pci header type. · b80d4a98
      Isaku Yamahata 提交于
      Don't overwrite pci header type.
      Otherwise, multi function bit which pci_init_header_type() sets
      appropriately is lost.
      Anyway PCI_HEADER_TYPE_NORMAL is zero, so it is unnecessary to zero
      which is already zero cleared.
      
      how to test:
      run qemu and issue info pci to see whether a device in question is
      normal device, not pci-to-pci bridge.
      This is handy because guest os isn't required.
      
      tested changes:
      The following files are covered by using following commands.
      sparc64-softmmu
        apb_pci.c, vga-pci.c, cmd646.c, ne2k_pci.c, sun4u.c
      ppc-softmmu
        grackle_pci.c, cmd646.c, ne2k_pci.c, vga-pci.c, macio.c
      ppc-softmmu -M mac99
        unin_pci.c(uni-north, uni-north-agp)
      ppc64-softmmu
        pci-ohci, ne2k_pci, vga-pci, unin_pci.c(u3-agp)
      x86_64-softmmu
        acpi_piix4.c, ide/piix.c, piix_pci.c
        -vga vmware vmware_vga.c
        -watchdog i6300esb wdt_i6300esb.c
        -usb usb-uhci.c
        -sound ac97 ac97.c
        -nic model=rtl8139 rtl8139.c
        -nic model=pcnet pcnet.c
        -balloon virtio virtio-pci.c:
      
      untested changes:
      The following changes aren't tested.
      prep_pci.c: ppc-softmmu -M prep should cover, but core dumped.
      unin_pci.c(uni-north-pci): the caller is commented out.
      openpic.c: the caller is commented out in ppc_prep.c
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      b80d4a98
    • I
      pci: insert assert that auto-assigned-address function is single function device. · 6fa84913
      Isaku Yamahata 提交于
      Auto-assigned-address pci function (passing devfn = -1) is always
      single function.
      This patch adds assert() to guarantee that auto-assigned-address function
      is always single function device at function = 0.
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      6fa84913
    • I
      pci: use PCI_DEVFN() where appropriate. · 520128bd
      Isaku Yamahata 提交于
      Use PCI_DEVFN() and PCI_FUNC_MAX where appropriate.
      This patch make it clear that func = 0.
      
      test:
      The following object files with/without this patch are stripped and compared.
      They remains same.
        arm-softmmu/versatile_pci.o
        libhw32/ppce500_pci.o
        libhw32/unin_pci.o
        libhw64/ppce500_pci.o
        libhw64/unin_pci.o
        mips-softmmu/gt64xxx.o
        mips64-softmmu/gt64xxx.o
        mips64el-softmmu/gt64xxx.o
        mipsel-softmmu/gt64xxx.o
      
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Yu Liu <yu.liu@freescale.com>
      Cc: Paul Brook <paul@codesourcery.com>
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      520128bd
  2. 11 7月, 2010 1 次提交
  3. 08 7月, 2010 2 次提交
  4. 06 7月, 2010 33 次提交