vmware_vga: Return a value for FB_SIZE before the device is enabled
commit5b9575c8b7873dee4ab233e065888bbce6dfbaa8
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 3 Nov 2012 11:47:08 +0000 (3 12:47 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 3 Nov 2012 13:26:53 +0000 (3 13:26 +0000)
tree13b911b16492a006240a4035c008a00c1676795b
parentaa32b38c5b2eb1afe30b3292454411bb760a432d
vmware_vga: Return a value for FB_SIZE before the device is enabled

According to the documentation drivers using this device should read
FB_SIZE before enabling the device to know what memory to map. This
would not work if we return 0 before enabled. The docs also mention
reading SVGA_REG_DEPTH but not writing it. (Only SVGA_REG_BITS_PER_PIXEL
can be written but we don't really support that either.)

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/vmware_vga.c