summaryrefslogtreecommitdiff
path: root/src/drivers/emulation
diff options
context:
space:
mode:
authorMartin Roth <martin@coreboot.org>2019-10-23 21:41:00 -0600
committerMartin Roth <martinroth@google.com>2019-10-27 21:08:39 +0000
commit38ddbfb325866716c9c65a460e388f33d1a773dd (patch)
treeffc7469c60e0a94321cf96de2bd0c4928067849f /src/drivers/emulation
parente74ca4ffc2008a93e38909a4d583408affbaf28a (diff)
src/[arch-lib]: change "unsigned" to "unsigned int"
Signed-off-by: Martin Roth <martin@coreboot.org> Change-Id: Ibb7b48a7a144421aff29acbb7ac30968ae5fe5ab Reviewed-on: https://review.coreboot.org/c/coreboot/+/36329 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/drivers/emulation')
-rw-r--r--src/drivers/emulation/qemu/cirrus.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/drivers/emulation/qemu/cirrus.c b/src/drivers/emulation/qemu/cirrus.c
index c36ce2f47f..43710d9ece 100644
--- a/src/drivers/emulation/qemu/cirrus.c
+++ b/src/drivers/emulation/qemu/cirrus.c
@@ -197,23 +197,23 @@ write_hidden_dac (uint8_t data)
static void cirrus_init_linear_fb(struct device *dev)
{
uint8_t cr_ext, cr_overlay;
- unsigned pitch = (width * 4) / VGA_CR_PITCH_DIVISOR;
+ unsigned int pitch = (width * 4) / VGA_CR_PITCH_DIVISOR;
uint8_t sr_ext = 0, hidden_dac = 0;
- unsigned vdisplay_end = height - 2;
- unsigned line_compare = 0x3ff;
+ unsigned int vdisplay_end = height - 2;
+ unsigned int line_compare = 0x3ff;
uint8_t overflow, cell_height_reg;
- unsigned horizontal_end = width / VGA_CR_WIDTH_DIVISOR;
- unsigned horizontal_total = horizontal_end + 40;
- unsigned horizontal_blank_start = horizontal_end;
- unsigned horizontal_sync_pulse_start = horizontal_end + 3;
- unsigned horizontal_sync_pulse_end = 0;
-
- unsigned horizontal_blank_end = 0;
- unsigned vertical_blank_start = height + 1;
- unsigned vertical_blank_end = 0;
- unsigned vertical_sync_start = height + 3;
- unsigned vertical_sync_end = 0;
- unsigned vertical_total = height + 40;
+ unsigned int horizontal_end = width / VGA_CR_WIDTH_DIVISOR;
+ unsigned int horizontal_total = horizontal_end + 40;
+ unsigned int horizontal_blank_start = horizontal_end;
+ unsigned int horizontal_sync_pulse_start = horizontal_end + 3;
+ unsigned int horizontal_sync_pulse_end = 0;
+
+ unsigned int horizontal_blank_end = 0;
+ unsigned int vertical_blank_start = height + 1;
+ unsigned int vertical_blank_end = 0;
+ unsigned int vertical_sync_start = height + 3;
+ unsigned int vertical_sync_end = 0;
+ unsigned int vertical_total = height + 40;
/* find lfb pci bar */
addr = pci_read_config32(dev, PCI_BASE_ADDRESS_0);