diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-08-06 23:04:43 +0000 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-08-06 23:22:49 +0000 |
commit | 94715ba97508dd42919a7525e362efb00dde1271 (patch) | |
tree | 9ad5e92149e59eed1b0385a950608608d7df0494 /drivers/video/via/viamode.h | |
parent | 363699722a2a6801d098693fa15bc3b68d6b4f31 (diff) | |
download | op-kernel-dev-94715ba97508dd42919a7525e362efb00dde1271.zip op-kernel-dev-94715ba97508dd42919a7525e362efb00dde1271.tar.gz |
viafb: add new funcions to select a single mode
This patch introduces 2 new functions for selecting a single mode
based on hres, vres and refresh rate and changes some uses to use
those. The advantage is that it is less error prone than doing the
selection based on refresh rate everywhere and allows replacing the
modetable structure. This includes a little change that users may
notice: If a refresh rate was given as module parameters but does
not exist in the modetable prior to this patch a refresh rate of 60
was assumed and after this patch the closest supported refresh rate
to the one provided by the user is used.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/viamode.h')
-rw-r--r-- | drivers/video/via/viamode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/via/viamode.h b/drivers/video/via/viamode.h index 3751289..0396581 100644 --- a/drivers/video/via/viamode.h +++ b/drivers/video/via/viamode.h @@ -61,6 +61,8 @@ extern struct patch_table res_patch_table[]; extern struct VPITTable VPIT; struct VideoModeTable *viafb_get_mode(int hres, int vres); +struct crt_mode_table *viafb_get_best_mode(int hres, int vres, int refresh); struct VideoModeTable *viafb_get_rb_mode(int hres, int vres); +struct crt_mode_table *viafb_get_best_rb_mode(int hres, int vres, int refresh); #endif /* __VIAMODE_H__ */ |