Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit edb9c79

Browse files
drivers/gop: support 64-bits compilation
Change-Id: If507abb6471980c82d6c1aa4512d8cb12224ef91 Signed-off-by: Jeremy Compostella <[email protected]>
1 parent 0dcf7d7 commit edb9c79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gop/gop.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Intel Corporation
2+
* Copyright (c) 2018-2020, Intel Corporation
33
* All rights reserved.
44
*
55
* Authors: Jérémy Compostella <[email protected]>
@@ -96,7 +96,7 @@ query_mode(EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
9696
static void get_resolution(pcidev_t dev, UINT32 *width, UINT32 *height,
9797
size_t *pipe)
9898
{
99-
uint32_t mmio, size;
99+
unsigned long mmio, size;
100100
size_t i;
101101

102102
mmio = pci_read_config32(dev, 0x10) & ~0xf;
@@ -114,7 +114,7 @@ static void get_resolution(pcidev_t dev, UINT32 *width, UINT32 *height,
114114

115115
static uint8_t *get_framebuffer(pcidev_t dev, size_t pipe)
116116
{
117-
uint32_t mmio, gmaddr, surf;
117+
unsigned long mmio, gmaddr, surf;
118118

119119
mmio = pci_read_config32(dev, 0x10) & ~0xf;
120120
surf = read32((void *)(mmio + PLANE_SURF + pipe * PIPE_OFFSET));
@@ -125,7 +125,7 @@ static uint8_t *get_framebuffer(pcidev_t dev, size_t pipe)
125125

126126
static void set_efi_color_order(pcidev_t dev)
127127
{
128-
uint32_t mmio, ctl, surf;
128+
unsigned long mmio, ctl, surf;
129129
size_t i;
130130

131131
mmio = pci_read_config32(dev, 0x10) & ~0xf;

0 commit comments

Comments
 (0)