summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-05-05 22:35:08 +0200
committerRusty Russell <rusty@rustcorp.com.au>2010-05-19 14:45:51 +0200
commit9778829cffd4d8d68c7e457645f958a82d4c4d8b (patch)
tree3bf9ec66c8af66430b2aaf3d089d39c8b4338b30 /drivers/macintosh
parentvirtio: console: Resize console port 0 on config intr only if multiport is off (diff)
downloadlinux-9778829cffd4d8d68c7e457645f958a82d4c4d8b.tar.xz
linux-9778829cffd4d8d68c7e457645f958a82d4c4d8b.zip
virtio: console: Store each console's size in the console structure
With support for multiple consoles, just using one {rows,cols} pair in the config space is not going to suffice. Store each console's size as part of the console struct. This changes the behaviour for one case when multiport is not enabled: when notifier_add_vio() is called, the console size is taken from that of the last config-space update instead of fetching it afresh from the config space. Also add a helper to update the size in the console struct as we'll need to use the same code to update the size via control messages when multiport support is enabled. Signed-off-by: Amit Shah <amit.shah@redhat.com> CC: Christian Borntraeger <borntraeger@de.ibm.com> CC: linuxppc-dev@ozlabs.org CC: Kusanagi Kouichi <slash@ac.auone-net.jp> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions