mirror of
				https://git.proxmox.com/git/grub2
				synced 2025-10-30 00:02:16 +00:00 
			
		
		
		
	 a2c1332b70
			
		
	
	
		a2c1332b70
		
	
	
	
	
		
			
			* commands/i386/pc/drivemap.c: Remove all trailing whitespace. * commands/lspci.c: Likewise. * commands/probe.c: Likewise. * commands/xnu_uuid.c: Likewise. * conf/i386-coreboot.rmk: Likewise. * conf/i386-efi.rmk: Likewise. * conf/i386-ieee1275.rmk: Likewise. * conf/i386-pc.rmk: Likewise. * conf/powerpc-ieee1275.rmk: Likewise. * conf/sparc64-ieee1275.rmk: Likewise. * conf/x86_64-efi.rmk: Likewise. * fs/i386/pc/pxe.c: Likewise. * gettext/gettext.c: Likewise. * include/grub/efi/graphics_output.h: Likewise. * include/grub/i386/pc/memory.h: Likewise. * kern/env.c: Likewise. * kern/i386/qemu/startup.S: Likewise. * lib/i386/pc/biosnum.c: Likewise. * lib/i386/relocator.c: Likewise. * lib/i386/relocator_asm.S: Likewise. * lib/relocator.c: Likewise. * loader/i386/bsd.c: Likewise. * loader/i386/multiboot.c: Likewise. * loader/i386/pc/chainloader.c: Likewise. * loader/i386/xnu.c: Likewise. * loader/xnu.c: Likewise. * normal/main.c: Likewise. * normal/menu_text.c: Likewise. * util/getroot.c: Likewise. * util/grub-mkconfig_lib.in: Likewise. * util/grub.d/00_header.in: Likewise. * util/i386/pc/grub-mkimage.c: Likewise. * util/mkisofs/eltorito.c: Likewise. * util/mkisofs/exclude.h: Likewise. * util/mkisofs/hash.c: Likewise. * util/mkisofs/iso9660.h: Likewise. * util/mkisofs/joliet.c: Likewise. * util/mkisofs/mkisofs.c: Likewise. * util/mkisofs/mkisofs.h: Likewise. * util/mkisofs/multi.c: Likewise. * util/mkisofs/name.c: Likewise. * util/mkisofs/rock.c: Likewise. * util/mkisofs/tree.c: Likewise. * util/mkisofs/write.c: Likewise. * video/efi_gop.c: Likewise.
		
			
				
	
	
		
			97 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			97 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  *  GRUB  --  GRand Unified Bootloader
 | |
|  *  Copyright (C) 2009  Free Software Foundation, Inc.
 | |
|  *
 | |
|  *  GRUB is free software: you can redistribute it and/or modify
 | |
|  *  it under the terms of the GNU General Public License as published by
 | |
|  *  the Free Software Foundation, either version 3 of the License, or
 | |
|  *  (at your option) any later version.
 | |
|  *
 | |
|  *  GRUB is distributed in the hope that it will be useful,
 | |
|  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|  *  GNU General Public License for more details.
 | |
|  *
 | |
|  *  You should have received a copy of the GNU General Public License
 | |
|  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 | |
|  */
 | |
| 
 | |
| #ifndef GRUB_EFI_GOP_HEADER
 | |
| #define GRUB_EFI_GOP_HEADER	1
 | |
| 
 | |
| /* Based on UEFI specification.  */
 | |
| 
 | |
| #define GRUB_EFI_GOP_GUID \
 | |
|   { 0x9042a9de, 0x23dc, 0x4a38, { 0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a }}
 | |
| 
 | |
| typedef enum
 | |
|   {
 | |
|     GRUB_EFI_GOT_RGBA8,
 | |
|     GRUB_EFI_GOT_BGRA8,
 | |
|     GRUB_EFI_GOT_BITMASK
 | |
|   }
 | |
|   grub_efi_gop_pixel_format_t;
 | |
| 
 | |
| struct grub_efi_gop_pixel_bitmask
 | |
| {
 | |
|   grub_uint32_t r;
 | |
|   grub_uint32_t g;
 | |
|   grub_uint32_t b;
 | |
|   grub_uint32_t a;
 | |
| };
 | |
| 
 | |
| struct grub_efi_gop_mode_info
 | |
| {
 | |
|   grub_efi_uint32_t version;
 | |
|   grub_efi_uint32_t width;
 | |
|   grub_efi_uint32_t height;
 | |
|   grub_efi_gop_pixel_format_t pixel_format;
 | |
|   struct grub_efi_gop_pixel_bitmask pixel_bitmask;
 | |
|   grub_efi_uint32_t pixels_per_scanline;
 | |
| };
 | |
| 
 | |
| struct grub_efi_gop_mode
 | |
| {
 | |
|   grub_efi_uint32_t max_mode;
 | |
|   grub_efi_uint32_t mode;
 | |
|   struct grub_efi_gop_mode_info *info;
 | |
|   grub_efi_uintn_t info_size;
 | |
|   grub_efi_physical_address_t fb_base;
 | |
|   grub_efi_uintn_t fb_size;
 | |
| };
 | |
| 
 | |
| /* Forward declaration.  */
 | |
| struct grub_efi_gop;
 | |
| 
 | |
| typedef grub_efi_status_t
 | |
| (*grub_efi_gop_query_mode_t) (struct grub_efi_gop *this,
 | |
| 			      grub_efi_uint32_t mode_number,
 | |
| 			      grub_efi_uintn_t *size_of_info,
 | |
| 			      struct grub_efi_gop_mode_info **info);
 | |
| 
 | |
| typedef grub_efi_status_t
 | |
| (*grub_efi_gop_set_mode_t) (struct grub_efi_gop *this,
 | |
| 			    grub_efi_uint32_t mode_number);
 | |
| 
 | |
| typedef grub_efi_status_t
 | |
| (*grub_efi_gop_blt_t) (struct grub_efi_gop *this,
 | |
| 		       void *buffer,
 | |
| 		       grub_efi_uintn_t operation,
 | |
| 		       grub_efi_uintn_t sx,
 | |
| 		       grub_efi_uintn_t sy,
 | |
| 		       grub_efi_uintn_t dx,
 | |
| 		       grub_efi_uintn_t dy,
 | |
| 		       grub_efi_uintn_t width,
 | |
| 		       grub_efi_uintn_t height,
 | |
| 		       grub_efi_uintn_t delta);
 | |
| 
 | |
| struct grub_efi_gop
 | |
| {
 | |
|   grub_efi_gop_query_mode_t query_mode;
 | |
|   grub_efi_gop_set_mode_t set_mode;
 | |
|   grub_efi_gop_blt_t blt;
 | |
|   struct grub_efi_gop_mode *mode;
 | |
| };
 | |
| 
 | |
| #endif
 |