]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/efi_api.h
config: am335x_evm: detect BoneGreen using BBG1
[karo-tx-uboot.git] / include / efi_api.h
index 03f6687aaee3e6bc4f6a3dbcc54e1a034d8ecd75..51d7586e6347f8e6244b845cf7dc1d59a1e037dd 100644 (file)
@@ -259,7 +259,7 @@ struct efi_device_path {
 
 struct efi_device_path_file_path {
        struct efi_device_path dp;
-       u16 str[16];
+       u16 str[32];
 };
 
 #define BLOCK_IO_GUID \
@@ -365,4 +365,51 @@ struct efi_console_control_protocol
                        uint16_t *password);
 };
 
+#define EFI_GOP_GUID \
+       EFI_GUID(0x9042a9de, 0x23dc, 0x4a38, \
+                0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a)
+
+#define EFI_GOT_RGBA8          0
+#define EFI_GOT_BGRA8          1
+#define EFI_GOT_BITMASK                2
+
+struct efi_gop_mode_info
+{
+       u32 version;
+       u32 width;
+       u32 height;
+       u32 pixel_format;
+       u32 pixel_bitmask[4];
+       u32 pixels_per_scanline;
+};
+
+struct efi_gop_mode
+{
+       u32 max_mode;
+       u32 mode;
+       struct efi_gop_mode_info *info;
+       unsigned long info_size;
+       efi_physical_addr_t fb_base;
+       unsigned long fb_size;
+};
+
+#define EFI_BLT_VIDEO_FILL             0
+#define EFI_BLT_VIDEO_TO_BLT_BUFFER    1
+#define EFI_BLT_BUFFER_TO_VIDEO                2
+#define EFI_BLT_VIDEO_TO_VIDEO         3
+
+struct efi_gop
+{
+       efi_status_t (EFIAPI *query_mode)(struct efi_gop *this, u32 mode_number,
+                                         unsigned long *size_of_info,
+                                         struct efi_gop_mode_info **info);
+       efi_status_t (EFIAPI *set_mode)(struct efi_gop *this, u32 mode_number);
+       efi_status_t (EFIAPI *blt)(struct efi_gop *this, void *buffer,
+                                  unsigned long operation, unsigned long sx,
+                                  unsigned long sy, unsigned long dx,
+                                  unsigned long dy, unsigned long width,
+                                  unsigned long height, unsigned long delta);
+       struct efi_gop_mode *mode;
+};
+
 #endif