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

TOMOYO Linux Cross Reference
Linux/arch/x86/boot/video.h

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/boot/video.h (Version linux-6.12-rc7) and /arch/mips/boot/video.h (Version linux-6.11.7)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /* -*- linux-c -*- ---------------------------    
  3  *                                                
  4  *   Copyright (C) 1991, 1992 Linus Torvalds      
  5  *   Copyright 2007 rPath, Inc. - All Rights R    
  6  *                                                
  7  * -------------------------------------------    
  8                                                   
  9 /*                                                
 10  * Header file for the real-mode video probing    
 11  */                                               
 12                                                   
 13 #ifndef BOOT_VIDEO_H                              
 14 #define BOOT_VIDEO_H                              
 15                                                   
 16 #include <linux/types.h>                          
 17                                                   
 18 /*                                                
 19  * This code uses an extended set of video mod    
 20  * Aliases for standard modes                     
 21  *      NORMAL_VGA (-1)                           
 22  *      EXTENDED_VGA (-2)                         
 23  *      ASK_VGA (-3)                              
 24  * Video modes numbered by menu position -- NO    
 25  * of compatibility when extending the table.     
 26  */                                               
 27 #define VIDEO_FIRST_MENU 0x0000                   
 28                                                   
 29 /* Standard BIOS video modes (BIOS number + 0x    
 30 #define VIDEO_FIRST_BIOS 0x0100                   
 31                                                   
 32 /* VESA BIOS video modes (VESA number + 0x0200    
 33 #define VIDEO_FIRST_VESA 0x0200                   
 34                                                   
 35 /* Video7 special modes (BIOS number + 0x0900)    
 36 #define VIDEO_FIRST_V7 0x0900                     
 37                                                   
 38 /* Special video modes */                         
 39 #define VIDEO_FIRST_SPECIAL 0x0f00                
 40 #define VIDEO_80x25 0x0f00                        
 41 #define VIDEO_8POINT 0x0f01                       
 42 #define VIDEO_80x43 0x0f02                        
 43 #define VIDEO_80x28 0x0f03                        
 44 #define VIDEO_CURRENT_MODE 0x0f04                 
 45 #define VIDEO_80x30 0x0f05                        
 46 #define VIDEO_80x34 0x0f06                        
 47 #define VIDEO_80x60 0x0f07                        
 48 #define VIDEO_GFX_HACK 0x0f08                     
 49 #define VIDEO_LAST_SPECIAL 0x0f09                 
 50                                                   
 51 /* Video modes given by resolution */             
 52 #define VIDEO_FIRST_RESOLUTION 0x1000             
 53                                                   
 54 /* The "recalculate timings" flag */              
 55 #define VIDEO_RECALC 0x8000                       
 56                                                   
 57 void store_screen(void);                          
 58 #define DO_STORE() store_screen()                 
 59                                                   
 60 /*                                                
 61  * Mode table structures                          
 62  */                                               
 63                                                   
 64 struct mode_info {                                
 65         u16 mode;               /* Mode number    
 66         u16 x, y;               /* Width, heig    
 67         u16 depth;              /* Bits per pi    
 68 };                                                
 69                                                   
 70 struct card_info {                                
 71         const char *card_name;                    
 72         int (*set_mode)(struct mode_info *mode    
 73         int (*probe)(void);                       
 74         struct mode_info *modes;                  
 75         int nmodes;             /* Number of p    
 76         int unsafe;             /* Probing is     
 77         u16 xmode_first;        /* Unprobed mo    
 78         u16 xmode_n;            /* Size of unp    
 79 };                                                
 80                                                   
 81 #define __videocard struct card_info __section    
 82 extern struct card_info video_cards[], video_c    
 83                                                   
 84 int mode_defined(u16 mode);     /* video.c */     
 85                                                   
 86 /* Basic video information */                     
 87 #define ADAPTER_CGA     0       /* CGA/MDA/HGC    
 88 #define ADAPTER_EGA     1                         
 89 #define ADAPTER_VGA     2                         
 90                                                   
 91 extern int adapter;                               
 92 extern int force_x, force_y;    /* Don't query    
 93 extern int do_restore;          /* Restore scr    
 94 extern int graphic_mode;        /* Graphics mo    
 95                                                   
 96 /* Accessing VGA indexed registers */             
 97 static inline u8 in_idx(u16 port, u8 index)       
 98 {                                                 
 99         outb(index, port);                        
100         return inb(port+1);                       
101 }                                                 
102                                                   
103 static inline void out_idx(u8 v, u16 port, u8     
104 {                                                 
105         outw(index+(v << 8), port);               
106 }                                                 
107                                                   
108 /* Writes a value to an indexed port and then     
109 static inline u8 tst_idx(u8 v, u16 port, u8 in    
110 {                                                 
111         out_idx(port, index, v);                  
112         return in_idx(port, index);               
113 }                                                 
114                                                   
115 /* Get the I/O port of the VGA CRTC */            
116 u16 vga_crtc(void);             /* video-vga.c    
117                                                   
118 #endif /* BOOT_VIDEO_H */                         
119                                                   

~ [ 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