[coreboot] New patch to review for coreboot: 688a6ff Change uma_resource() to use new type IORESOURCE_UMA_FB.

Kyösti Mälkki (kyosti.malkki@gmail.com) gerrit at coreboot.org
Thu Jul 12 01:16:08 CEST 2012


Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1214

-gerrit

commit 688a6ffbb683d0f12c184f5536214c12486edc00
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date:   Wed Jul 11 23:14:49 2012 +0300

    Change uma_resource() to use new type IORESOURCE_UMA_FB.
    
    MTRR setup code can detect this and mark it as UC/WT/WC as suitable
    for the specific hardware.
    
    Change-Id: Ib7a3d450fc7c19e3ca72767dfb350412dd35c971
    Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
 src/devices/device_util.c     |    2 +-
 src/include/device/resource.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/devices/device_util.c b/src/devices/device_util.c
index 4e25eb1..6c10b65 100644
--- a/src/devices/device_util.c
+++ b/src/devices/device_util.c
@@ -833,7 +833,7 @@ void uma_resource(device_t dev, unsigned long index,
 	resource = new_resource(dev, index);
 	resource->base = ((resource_t)basek) << 10;
 	resource->size = ((resource_t)sizek) << 10;
-	resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
+	resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE | IORESOURCE_UMA_FB |
 		IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
 }
 
diff --git a/src/include/device/resource.h b/src/include/device/resource.h
index ef95b53..e667f91 100644
--- a/src/include/device/resource.h
+++ b/src/include/device/resource.h
@@ -20,6 +20,8 @@
 						 * to the bus below.
 						 */
 #define IORESOURCE_BRIDGE	0x00080000	/* The IO resource has a bus below it. */
+#define IORESOURCE_UMA_FB	0x00100000	/* UMA framebuffer */
+
 #define IORESOURCE_RESERVE	0x10000000	/* The resource needs to be reserved in the coreboot table */
 #define IORESOURCE_STORED	0x20000000	/* The IO resource assignment has been stored in the device */
 #define IORESOURCE_ASSIGNED	0x40000000	/* An IO resource that has been assigned a value */




More information about the coreboot mailing list