Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
video.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  mode_info
 
struct  card_info
 

Macros

#define VIDEO_FIRST_MENU   0x0000
 
#define VIDEO_FIRST_BIOS   0x0100
 
#define VIDEO_FIRST_VESA   0x0200
 
#define VIDEO_FIRST_V7   0x0900
 
#define VIDEO_FIRST_SPECIAL   0x0f00
 
#define VIDEO_80x25   0x0f00
 
#define VIDEO_8POINT   0x0f01
 
#define VIDEO_80x43   0x0f02
 
#define VIDEO_80x28   0x0f03
 
#define VIDEO_CURRENT_MODE   0x0f04
 
#define VIDEO_80x30   0x0f05
 
#define VIDEO_80x34   0x0f06
 
#define VIDEO_80x60   0x0f07
 
#define VIDEO_GFX_HACK   0x0f08
 
#define VIDEO_LAST_SPECIAL   0x0f09
 
#define VIDEO_FIRST_RESOLUTION   0x1000
 
#define VIDEO_RECALC   0x8000
 
#define DO_STORE()   store_screen()
 
#define __videocard   struct card_info __attribute__((section(".videocards")))
 
#define ADAPTER_CGA   0 /* CGA/MDA/HGC */
 
#define ADAPTER_EGA   1
 
#define ADAPTER_VGA   2
 

Functions

void store_screen (void)
 
int mode_defined (u16 mode)
 
u16 vga_crtc (void)
 

Variables

struct card_info video_cards []
 
struct card_info video_cards_end []
 
int adapter
 
u16 video_segment
 
int force_x
 
int force_y
 
int do_restore
 
int graphic_mode
 

Macro Definition Documentation

#define __videocard   struct card_info __attribute__((section(".videocards")))

Definition at line 83 of file video.h.

#define ADAPTER_CGA   0 /* CGA/MDA/HGC */

Definition at line 89 of file video.h.

#define ADAPTER_EGA   1

Definition at line 90 of file video.h.

#define ADAPTER_VGA   2

Definition at line 91 of file video.h.

#define DO_STORE ( )    store_screen()

Definition at line 60 of file video.h.

#define VIDEO_80x25   0x0f00

Definition at line 42 of file video.h.

#define VIDEO_80x28   0x0f03

Definition at line 45 of file video.h.

#define VIDEO_80x30   0x0f05

Definition at line 47 of file video.h.

#define VIDEO_80x34   0x0f06

Definition at line 48 of file video.h.

#define VIDEO_80x43   0x0f02

Definition at line 44 of file video.h.

#define VIDEO_80x60   0x0f07

Definition at line 49 of file video.h.

#define VIDEO_8POINT   0x0f01

Definition at line 43 of file video.h.

#define VIDEO_CURRENT_MODE   0x0f04

Definition at line 46 of file video.h.

#define VIDEO_FIRST_BIOS   0x0100

Definition at line 32 of file video.h.

#define VIDEO_FIRST_MENU   0x0000

Definition at line 29 of file video.h.

#define VIDEO_FIRST_RESOLUTION   0x1000

Definition at line 54 of file video.h.

#define VIDEO_FIRST_SPECIAL   0x0f00

Definition at line 41 of file video.h.

#define VIDEO_FIRST_V7   0x0900

Definition at line 38 of file video.h.

#define VIDEO_FIRST_VESA   0x0200

Definition at line 35 of file video.h.

#define VIDEO_GFX_HACK   0x0f08

Definition at line 50 of file video.h.

#define VIDEO_LAST_SPECIAL   0x0f09

Definition at line 51 of file video.h.

#define VIDEO_RECALC   0x8000

Definition at line 57 of file video.h.

Function Documentation

int mode_defined ( u16  mode)

Definition at line 54 of file video-mode.c.

void store_screen ( void  )
u16 vga_crtc ( void  )

Definition at line 134 of file video-vga.c.

Variable Documentation

Definition at line 25 of file video-mode.c.

int do_restore

Definition at line 29 of file video-mode.c.

int force_x

Definition at line 27 of file video-mode.c.

int force_y

Definition at line 27 of file video-mode.c.

int graphic_mode

Definition at line 30 of file video-mode.c.

struct card_info video_cards[]
struct card_info video_cards_end[]
u16 video_segment

Definition at line 26 of file video-mode.c.