Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
macmodes.c File Reference
#include <linux/errno.h>
#include <linux/fb.h>
#include <linux/string.h>
#include <linux/module.h>
#include "macmodes.h"

Go to the source code of this file.

Data Structures

struct  mode_map
 
struct  monitor_map
 

Macros

#define DEFAULT_MODEDB_INDEX   0
 

Functions

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

Macro Definition Documentation

#define DEFAULT_MODEDB_INDEX   0

Definition at line 32 of file macmodes.c.

Function Documentation

EXPORT_SYMBOL ( mac_vmode_to_var  )
EXPORT_SYMBOL ( mac_map_monitor_sense  )
EXPORT_SYMBOL ( mac_find_mode  )
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.

MODULE_LICENSE ( "GPL"  )