summaryrefslogtreecommitdiff
path: root/drivers/firmware/google/coreboot_table.h
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-25 04:41:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-23 14:37:19 +0300
commit851b4c14532df4e4fd902b4b34cb0fe6937f03ca (patch)
tree88c1cf946df789f1769f1cfff4f1211832eae247 /drivers/firmware/google/coreboot_table.h
parentb616cf53aa7aaf7c7e09c851807ebf1ce566e297 (diff)
downloadlinux-851b4c14532df4e4fd902b4b34cb0fe6937f03ca.tar.xz
firmware: coreboot: Add coreboot framebuffer driver
Register a simplefb framebuffer when the coreboot table contains a framebuffer entry. Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firmware/google/coreboot_table.h')
-rw-r--r--drivers/firmware/google/coreboot_table.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/firmware/google/coreboot_table.h b/drivers/firmware/google/coreboot_table.h
index 26a3f3f3ac9c..8ad95a94481b 100644
--- a/drivers/firmware/google/coreboot_table.h
+++ b/drivers/firmware/google/coreboot_table.h
@@ -3,6 +3,7 @@
*
* Internal header for coreboot table access.
*
+ * Copyright 2014 Gerd Hoffmann <kraxel@redhat.com>
* Copyright 2017 Google Inc.
* Copyright 2017 Samuel Holland <samuel@sholland.org>
*
@@ -46,12 +47,33 @@ struct lb_cbmem_ref {
u64 cbmem_addr;
};
+/* Describes framebuffer setup by coreboot */
+struct lb_framebuffer {
+ u32 tag;
+ u32 size;
+
+ u64 physical_address;
+ u32 x_resolution;
+ u32 y_resolution;
+ u32 bytes_per_line;
+ u8 bits_per_pixel;
+ u8 red_mask_pos;
+ u8 red_mask_size;
+ u8 green_mask_pos;
+ u8 green_mask_size;
+ u8 blue_mask_pos;
+ u8 blue_mask_size;
+ u8 reserved_mask_pos;
+ u8 reserved_mask_size;
+};
+
/* A device, additionally with information from coreboot. */
struct coreboot_device {
struct device dev;
union {
struct coreboot_table_entry entry;
struct lb_cbmem_ref cbmem_ref;
+ struct lb_framebuffer framebuffer;
};
};