linux/drivers/video/fbdev/macmodes.h

/*
 *  linux/drivers/video/macmodes.h -- Standard MacOS video modes
 *
 *	Copyright (C) 1998 Geert Uytterhoeven
 *
 *  This file is subject to the terms and conditions of the GNU General Public
 *  License. See the file COPYING in the main directory of this archive for
 *  more details.
 */

#ifndef _VIDEO_MACMODES_H
#define _VIDEO_MACMODES_H

    /*
     *  Video mode values.
     *  These are supposed to be the same as the values that Apple uses in
     *  MacOS.
     */

#define VMODE_NVRAM
#define VMODE_512_384_60I
#define VMODE_512_384_60
#define VMODE_640_480_50I
#define VMODE_640_480_60I
#define VMODE_640_480_60
#define VMODE_640_480_67
#define VMODE_640_870_75P
#define VMODE_768_576_50I
#define VMODE_800_600_56
#define VMODE_800_600_60
#define VMODE_800_600_72
#define VMODE_800_600_75
#define VMODE_832_624_75
#define VMODE_1024_768_60
#define VMODE_1024_768_70
#define VMODE_1024_768_75V
#define VMODE_1024_768_75
#define VMODE_1152_870_75
#define VMODE_1280_960_75
#define VMODE_1280_1024_75
#define VMODE_1152_768_60
#define VMODE_1600_1024_60
#define VMODE_MAX
#define VMODE_CHOOSE

#define CMODE_NVRAM
#define CMODE_CHOOSE
#define CMODE_8
#define CMODE_16
#define CMODE_32


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


    /*
     *  Addresses in NVRAM where video mode and pixel size are stored.
     */

#define NV_VMODE
#define NV_CMODE

#endif /* _VIDEO_MACMODES_H */