pci: initialize pci config headers depending it pci header type.
commitfb23162885f7fd8cf7334bed22c25ac32c7d8b9d
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 30 Oct 2009 12:21:22 +0000 (30 21:21 +0900)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 9 Nov 2009 14:43:10 +0000 (9 08:43 -0600)
treec0a02f0d3a402336ecf847074692fd486ff41b18
parentedb000350d265b2eddb297453ddf9d504fb85fd0
pci: initialize pci config headers depending it pci header type.

- Only sets default subsystem id for header type 00.(normal header type)
  because header type 01 doesn't have subsystem id, and uses the register
  for other purpose. So setting default subsystem id doesn't make sense.

- initialize wmask more for header type 01.(bridge header type)
  Without those wmasks, linux was confused not boot,
  and lspci was confused not to print out expected IO/memory range.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/cirrus_vga.c
hw/pci.c
hw/pci.h