1. 23 12月, 2013 1 次提交
    • M
      pci-host: Consistently set cannot_instantiate_with_device_add_yet · 08c58f92
      Markus Armbruster 提交于
      Many PCI host bridges consist of a sysbus device and a PCI device.
      You need both for the thing to work.  Arguably, these bridges should
      be modelled as a single, composite devices instead of pairs of
      seemingly independent devices you can only use together, but we're not
      there, yet.
      
      Since the sysbus part can't be instantiated with device_add, yet,
      permitting it with the PCI part is useless.  We shouldn't offer
      useless options to the user, so let's set
      cannot_instantiate_with_device_add_yet for them.
      
      It's already set for Bonito, Grackle, i440FX and Raven.  Document why.
      
      Set it for the others: dec-21154, e500-host-bridge, gt64120_pci, mch,
      pbm-pci, ppc4xx-host-bridge, sh_pci_host, u3-agp, uni-north-agp,
      uni-north-internal-pci, uni-north-pci, and versatile_pci_host.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NMarcel Apfelbaum <marcel.a@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      08c58f92
  2. 04 7月, 2013 2 次提交
  3. 09 4月, 2013 2 次提交
  4. 27 3月, 2013 1 次提交
  5. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  6. 19 12月, 2012 1 次提交
  7. 17 12月, 2012 1 次提交
  8. 23 10月, 2012 1 次提交
    • A
      Rename target_phys_addr_t to hwaddr · a8170e5e
      Avi Kivity 提交于
      target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are
      reserved) and its purpose doesn't match the name (most target_phys_addr_t
      addresses are not target specific).  Replace it with a finger-friendly,
      standards conformant hwaddr.
      
      Outstanding patchsets can be fixed up with the command
      
        git rebase -i --exec 'find -name "*.[ch]"
                              | xargs s/target_phys_addr_t/hwaddr/g' origin
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a8170e5e
  9. 22 8月, 2012 4 次提交
  10. 15 2月, 2012 1 次提交
  11. 04 2月, 2012 1 次提交
    • A
      qdev: register all types natively through QEMU Object Model · 39bffca2
      Anthony Liguori 提交于
      This was done in a mostly automated fashion.  I did it in three steps and then
      rebased it into a single step which avoids repeatedly touching every file in
      the tree.
      
      The first step was a sed-based addition of the parent type to the subclass
      registration functions.
      
      The second step was another sed-based removal of subclass registration functions
      while also adding virtual functions from the base class into a class_init
      function as appropriate.
      
      Finally, a python script was used to convert the DeviceInfo structures and
      qdev_register_subclass functions to TypeInfo structures, class_init functions,
      and type_register_static calls.
      
      We are almost fully converted to QOM after this commit.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      39bffca2
  12. 28 1月, 2012 2 次提交
  13. 21 1月, 2012 2 次提交
    • A
      PPC: 4xx: Qdevify the 440 PCI host controller · 623f7c21
      Alexander Graf 提交于
      Due to popular demand, this qdevifies the PCI host controller of 4xx SoCs
      the same way as e500.
      
      We have to introduce a small stub function for pci init that will be
      removed in a later patch, once we qdev'ified the board, to keep the build
      working.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      623f7c21
    • A
      PPC: 440: Ignore invalid PCI IRQs · d49bc1fb
      Alexander Graf 提交于
      When running a 440 target, we currently get invalid irq_num values (-1)
      which completely confuse the IRQ setting code.
      
      This is most likely due to the missing qdev conversion.
      
      While this shouldn't happen in the first place and should really rather
      be fixed by converting the target, I dislike segfaults. So for now, let's
      just print a warning and ignore invalid irq_num values.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      d49bc1fb
  14. 25 11月, 2011 1 次提交
  15. 04 9月, 2011 1 次提交
  16. 26 8月, 2011 1 次提交
  17. 25 8月, 2011 1 次提交
  18. 21 8月, 2011 1 次提交
  19. 08 8月, 2011 1 次提交
  20. 29 7月, 2011 1 次提交
  21. 23 4月, 2011 1 次提交
  22. 11 12月, 2010 2 次提交
  23. 06 7月, 2010 1 次提交
  24. 22 3月, 2010 1 次提交
    • B
      Compile pci_host only once · 952760bb
      Blue Swirl 提交于
      Convert pci_host_conf_register_mmio_noswap(x) to
      pci_host_conf_register_mmio(x, 0).
      
      Convert pci_host_conf_register_mmio(x) to
      pci_host_conf_register_mmio(x, 1) for big endian hosts, all cases
      happen to be BE.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      952760bb
  25. 01 12月, 2009 1 次提交
  26. 09 11月, 2009 1 次提交
    • I
      pci_host.h: move functions in pci_host.h into .c file. · 4f5e19e6
      Isaku Yamahata 提交于
      split static functions in pci_host.h into pci_host.c and
      pci_host_template.h.
      Later a structures declared in pci_host.h, PCIHostState, will be used.
      However pci_host.h doesn't allow to include itself easily. This patches
      addresses it.
      
      pci_host.h includes functions which are instantiated in .c by including
      pci_host.h with typedefing pci_addr_t.
      pci_addr_t is per pci host bridge and is typedef'ed to uint32_t for ioio
      or target_phys_addr_t for mmio in .c file.
      That prevents from including pci_host.h to use PCIHostState because of
      requiring type, pci_addr_t.
      
      Its purpose to include is to instantiate io function for mmio or ioio
      depending on which pci host bridge requires ioio or mmio.
      To avoid including code, we always instantiate both version.
      Signed-off-by: NIsaku Yamahata <yamahata@valinux.co.jp>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4f5e19e6
  27. 02 10月, 2009 2 次提交
  28. 04 9月, 2009 1 次提交
  29. 26 8月, 2009 1 次提交
  30. 17 7月, 2009 1 次提交
  31. 30 6月, 2009 1 次提交