~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/xen/vga.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/x86/xen/vga.c (Version linux-6.12-rc7) and /arch/i386/xen/vga.c (Version linux-6.5.13)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2 #include <linux/screen_info.h>                    
  3 #include <linux/init.h>                           
  4                                                   
  5 #include <asm/setup.h>                            
  6                                                   
  7 #include <xen/interface/xen.h>                    
  8                                                   
  9 #include "xen-ops.h"                              
 10                                                   
 11 void __init xen_init_vga(const struct dom0_vga    
 12                          struct screen_info *s    
 13 {                                                 
 14         /* This is drawn from a dump from vgac    
 15          * standard Linux. */                     
 16         screen_info->orig_video_mode = 3;         
 17         screen_info->orig_video_isVGA = 1;        
 18         screen_info->orig_video_lines = 25;       
 19         screen_info->orig_video_cols = 80;        
 20         screen_info->orig_video_ega_bx = 3;       
 21         screen_info->orig_video_points = 16;      
 22         screen_info->orig_y = screen_info->ori    
 23                                                   
 24         switch (info->video_type) {               
 25         case XEN_VGATYPE_TEXT_MODE_3:             
 26                 if (size < offsetof(struct dom    
 27                     + sizeof(info->u.text_mode    
 28                         break;                    
 29                 screen_info->orig_video_lines     
 30                 screen_info->orig_video_cols =    
 31                 screen_info->orig_x = info->u.    
 32                 screen_info->orig_y = info->u.    
 33                 screen_info->orig_video_points    
 34                         info->u.text_mode_3.fo    
 35                 break;                            
 36                                                   
 37         case XEN_VGATYPE_EFI_LFB:                 
 38         case XEN_VGATYPE_VESA_LFB:                
 39                 if (size < offsetof(struct dom    
 40                                     u.vesa_lfb    
 41                         break;                    
 42                 screen_info->orig_video_isVGA     
 43                 screen_info->lfb_width = info-    
 44                 screen_info->lfb_height = info    
 45                 screen_info->lfb_depth = info-    
 46                 screen_info->lfb_base = info->    
 47                 screen_info->lfb_size = info->    
 48                 screen_info->lfb_linelength =     
 49                 screen_info->red_size = info->    
 50                 screen_info->red_pos = info->u    
 51                 screen_info->green_size = info    
 52                 screen_info->green_pos = info-    
 53                 screen_info->blue_size = info-    
 54                 screen_info->blue_pos = info->    
 55                 screen_info->rsvd_size = info-    
 56                 screen_info->rsvd_pos = info->    
 57                                                   
 58                 if (size >= offsetof(struct do    
 59                                      u.vesa_lf    
 60                     + sizeof(info->u.vesa_lfb.    
 61                     && info->u.vesa_lfb.ext_lf    
 62                         screen_info->ext_lfb_b    
 63                         screen_info->capabilit    
 64                 }                                 
 65                                                   
 66                 if (info->video_type == XEN_VG    
 67                         screen_info->orig_vide    
 68                         break;                    
 69                 }                                 
 70                                                   
 71                 if (size >= offsetof(struct do    
 72                                      u.vesa_lf    
 73                     + sizeof(info->u.vesa_lfb.    
 74                         screen_info->vesa_attr    
 75                 break;                            
 76         }                                         
 77 }                                                 
 78                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php