Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
macmodes.h File Reference

Go to the source code of this file.

Macros

#define VMODE_NVRAM   0
 
#define VMODE_512_384_60I   1 /* 512x384, 60Hz interlaced (NTSC) */
 
#define VMODE_512_384_60   2 /* 512x384, 60Hz */
 
#define VMODE_640_480_50I   3 /* 640x480, 50Hz interlaced (PAL) */
 
#define VMODE_640_480_60I   4 /* 640x480, 60Hz interlaced (NTSC) */
 
#define VMODE_640_480_60   5 /* 640x480, 60Hz (VGA) */
 
#define VMODE_640_480_67   6 /* 640x480, 67Hz */
 
#define VMODE_640_870_75P   7 /* 640x870, 75Hz (portrait) */
 
#define VMODE_768_576_50I   8 /* 768x576, 50Hz (PAL full frame) */
 
#define VMODE_800_600_56   9 /* 800x600, 56Hz */
 
#define VMODE_800_600_60   10 /* 800x600, 60Hz */
 
#define VMODE_800_600_72   11 /* 800x600, 72Hz */
 
#define VMODE_800_600_75   12 /* 800x600, 75Hz */
 
#define VMODE_832_624_75   13 /* 832x624, 75Hz */
 
#define VMODE_1024_768_60   14 /* 1024x768, 60Hz */
 
#define VMODE_1024_768_70   15 /* 1024x768, 70Hz (or 72Hz?) */
 
#define VMODE_1024_768_75V   16 /* 1024x768, 75Hz (VESA) */
 
#define VMODE_1024_768_75   17 /* 1024x768, 75Hz */
 
#define VMODE_1152_870_75   18 /* 1152x870, 75Hz */
 
#define VMODE_1280_960_75   19 /* 1280x960, 75Hz */
 
#define VMODE_1280_1024_75   20 /* 1280x1024, 75Hz */
 
#define VMODE_1152_768_60   21 /* 1152x768, 60Hz Titanium PowerBook */
 
#define VMODE_1600_1024_60   22 /* 1600x1024, 60Hz 22" Cinema Display */
 
#define VMODE_MAX   22
 
#define VMODE_CHOOSE   99
 
#define CMODE_NVRAM   -1
 
#define CMODE_CHOOSE   -2
 
#define CMODE_8   0 /* 8 bits/pixel */
 
#define CMODE_16   1 /* 16 (actually 15) bits/pixel */
 
#define CMODE_32   2 /* 32 (actually 24) bits/pixel */
 
#define NV_VMODE   0x140f
 
#define NV_CMODE   0x1410
 

Functions

int mac_vmode_to_var (int vmode, int cmode, struct fb_var_screeninfo *var)
 
int mac_var_to_vmode (const struct fb_var_screeninfo *var, int *vmode, int *cmode)
 
int mac_map_monitor_sense (int sense)
 
int mac_find_mode (struct fb_var_screeninfo *var, struct fb_info *info, const char *mode_option, unsigned int default_bpp)
 

Macro Definition Documentation

#define CMODE_16   1 /* 16 (actually 15) bits/pixel */

Definition at line 49 of file macmodes.h.

#define CMODE_32   2 /* 32 (actually 24) bits/pixel */

Definition at line 50 of file macmodes.h.

#define CMODE_8   0 /* 8 bits/pixel */

Definition at line 48 of file macmodes.h.

#define CMODE_CHOOSE   -2

Definition at line 47 of file macmodes.h.

#define CMODE_NVRAM   -1

Definition at line 46 of file macmodes.h.

#define NV_CMODE   0x1410

Definition at line 69 of file macmodes.h.

#define NV_VMODE   0x140f

Definition at line 68 of file macmodes.h.

#define VMODE_1024_768_60   14 /* 1024x768, 60Hz */

Definition at line 34 of file macmodes.h.

#define VMODE_1024_768_70   15 /* 1024x768, 70Hz (or 72Hz?) */

Definition at line 35 of file macmodes.h.

#define VMODE_1024_768_75   17 /* 1024x768, 75Hz */

Definition at line 37 of file macmodes.h.

#define VMODE_1024_768_75V   16 /* 1024x768, 75Hz (VESA) */

Definition at line 36 of file macmodes.h.

#define VMODE_1152_768_60   21 /* 1152x768, 60Hz Titanium PowerBook */

Definition at line 41 of file macmodes.h.

#define VMODE_1152_870_75   18 /* 1152x870, 75Hz */

Definition at line 38 of file macmodes.h.

#define VMODE_1280_1024_75   20 /* 1280x1024, 75Hz */

Definition at line 40 of file macmodes.h.

#define VMODE_1280_960_75   19 /* 1280x960, 75Hz */

Definition at line 39 of file macmodes.h.

#define VMODE_1600_1024_60   22 /* 1600x1024, 60Hz 22" Cinema Display */

Definition at line 42 of file macmodes.h.

#define VMODE_512_384_60   2 /* 512x384, 60Hz */

Definition at line 22 of file macmodes.h.

#define VMODE_512_384_60I   1 /* 512x384, 60Hz interlaced (NTSC) */

Definition at line 21 of file macmodes.h.

#define VMODE_640_480_50I   3 /* 640x480, 50Hz interlaced (PAL) */

Definition at line 23 of file macmodes.h.

#define VMODE_640_480_60   5 /* 640x480, 60Hz (VGA) */

Definition at line 25 of file macmodes.h.

#define VMODE_640_480_60I   4 /* 640x480, 60Hz interlaced (NTSC) */

Definition at line 24 of file macmodes.h.

#define VMODE_640_480_67   6 /* 640x480, 67Hz */

Definition at line 26 of file macmodes.h.

#define VMODE_640_870_75P   7 /* 640x870, 75Hz (portrait) */

Definition at line 27 of file macmodes.h.

#define VMODE_768_576_50I   8 /* 768x576, 50Hz (PAL full frame) */

Definition at line 28 of file macmodes.h.

#define VMODE_800_600_56   9 /* 800x600, 56Hz */

Definition at line 29 of file macmodes.h.

#define VMODE_800_600_60   10 /* 800x600, 60Hz */

Definition at line 30 of file macmodes.h.

#define VMODE_800_600_72   11 /* 800x600, 72Hz */

Definition at line 31 of file macmodes.h.

#define VMODE_800_600_75   12 /* 800x600, 75Hz */

Definition at line 32 of file macmodes.h.

#define VMODE_832_624_75   13 /* 832x624, 75Hz */

Definition at line 33 of file macmodes.h.

#define VMODE_CHOOSE   99

Definition at line 44 of file macmodes.h.

#define VMODE_MAX   22

Definition at line 43 of file macmodes.h.

#define VMODE_NVRAM   0

Definition at line 20 of file macmodes.h.

Function Documentation

int mac_find_mode ( struct fb_var_screeninfo var,
struct fb_info info,
const char mode_option,
unsigned int  default_bpp 
)

Definition at line 398 of file macmodes.c.

int mac_map_monitor_sense ( int  sense)

mac_map_monitor_sense - Convert monitor sense to vmode : Macintosh monitor sense number

Converts a Macintosh monitor sense number to a MacOS vmode number.

Returns MacOS vmode video mode number.

Definition at line 367 of file macmodes.c.

int mac_var_to_vmode ( const struct fb_var_screeninfo var,
int vmode,
int cmode 
)

Definition at line 303 of file macmodes.c.

int mac_vmode_to_var ( int  vmode,
int  cmode,
struct fb_var_screeninfo var 
)

Definition at line 221 of file macmodes.c.