fw_cfg: expose control register size in fw_cfg.h
commitce9a2aa372f567d1a19417ab02789706d132daf7
authorGabriel L. Somlo <somlo@cmu.edu>
Fri, 19 Feb 2016 18:20:25 +0000 (19 13:20 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Mar 2016 09:46:30 +0000 (8 10:46 +0100)
treeb447b7e8da4524f816af2ca23d91c6b4466a36d1
parent97556fe80e4f7252300b3498b3477fb4295153a3
fw_cfg: expose control register size in fw_cfg.h

Expose the size of the control register (FW_CFG_CTL_SIZE) in fw_cfg.h.
Add comment to fw_cfg_io_realize() pointing out that since the
8-bit data register is always subsumed by the 16-bit control
register in the port I/O case, we use the control register width
as the *total* width of the (classic, non-DMA) port I/O region reserved
for the device.

Cc: Marc MarĂ­ <markmb@redhat.com>
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Marc MarĂ­ <markmb@redhat.com>
Message-id: 1455906029-25565-2-git-send-email-somlo@cmu.edu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/nvram/fw_cfg.c
include/hw/nvram/fw_cfg.h