Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
0004  * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
0005 
0006  */
0007 
0008 #ifndef __VIAMODE_H__
0009 #define __VIAMODE_H__
0010 
0011 #include "global.h"
0012 
0013 struct VPITTable {
0014     unsigned char Misc;
0015     unsigned char SR[StdSR];
0016     unsigned char GR[StdGR];
0017     unsigned char AR[StdAR];
0018 };
0019 
0020 struct patch_table {
0021     int table_length;
0022     struct io_reg *io_reg_table;
0023 };
0024 
0025 extern int NUM_TOTAL_CN400_ModeXregs;
0026 extern int NUM_TOTAL_CN700_ModeXregs;
0027 extern int NUM_TOTAL_KM400_ModeXregs;
0028 extern int NUM_TOTAL_CX700_ModeXregs;
0029 extern int NUM_TOTAL_VX855_ModeXregs;
0030 extern int NUM_TOTAL_CLE266_ModeXregs;
0031 extern int NUM_TOTAL_PATCH_MODE;
0032 
0033 extern struct io_reg CN400_ModeXregs[];
0034 extern struct io_reg CN700_ModeXregs[];
0035 extern struct io_reg KM400_ModeXregs[];
0036 extern struct io_reg CX700_ModeXregs[];
0037 extern struct io_reg VX800_ModeXregs[];
0038 extern struct io_reg VX855_ModeXregs[];
0039 extern struct io_reg CLE266_ModeXregs[];
0040 extern struct io_reg PM1024x768[];
0041 extern struct patch_table res_patch_table[];
0042 extern struct VPITTable VPIT;
0043 
0044 const struct fb_videomode *viafb_get_best_mode(int hres, int vres,
0045     int refresh);
0046 const struct fb_videomode *viafb_get_best_rb_mode(int hres, int vres,
0047     int refresh);
0048 
0049 #endif /* __VIAMODE_H__ */