viamode.h (1298B)
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. 4 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. 5 6 */ 7 8#ifndef __VIAMODE_H__ 9#define __VIAMODE_H__ 10 11#include "global.h" 12 13struct VPITTable { 14 unsigned char Misc; 15 unsigned char SR[StdSR]; 16 unsigned char GR[StdGR]; 17 unsigned char AR[StdAR]; 18}; 19 20struct patch_table { 21 int table_length; 22 struct io_reg *io_reg_table; 23}; 24 25extern int NUM_TOTAL_CN400_ModeXregs; 26extern int NUM_TOTAL_CN700_ModeXregs; 27extern int NUM_TOTAL_KM400_ModeXregs; 28extern int NUM_TOTAL_CX700_ModeXregs; 29extern int NUM_TOTAL_VX855_ModeXregs; 30extern int NUM_TOTAL_CLE266_ModeXregs; 31extern int NUM_TOTAL_PATCH_MODE; 32 33extern struct io_reg CN400_ModeXregs[]; 34extern struct io_reg CN700_ModeXregs[]; 35extern struct io_reg KM400_ModeXregs[]; 36extern struct io_reg CX700_ModeXregs[]; 37extern struct io_reg VX800_ModeXregs[]; 38extern struct io_reg VX855_ModeXregs[]; 39extern struct io_reg CLE266_ModeXregs[]; 40extern struct io_reg PM1024x768[]; 41extern struct patch_table res_patch_table[]; 42extern struct VPITTable VPIT; 43 44const struct fb_videomode *viafb_get_best_mode(int hres, int vres, 45 int refresh); 46const struct fb_videomode *viafb_get_best_rb_mode(int hres, int vres, 47 int refresh); 48 49#endif /* __VIAMODE_H__ */