aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-09-22 19:47:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-23 10:39:53 -0400
commit93967bee6f8b5f5bfbab0e8d6cab13f45d1ace75 (patch)
treeb13465cd248dbf2b2b1f0edbaf2f66ec00213431 /drivers/video
parent31de59d5e1cd6968ea9d1a19cceefb7a037e46bf (diff)
viafb: make module parameters visible in sysfs
Signed-off-by: Harald Welte <HaraldWelte@viatech.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Scott Fang <ScottFang@viatech.com.cn> Cc: Joseph Chan <JosephChan@via.com.tw> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/via/viafbdev.c43
1 files changed, 22 insertions, 21 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index 8e43759a0b8d..94ade1f9ff72 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -21,6 +21,7 @@
21 21
22#include <linux/module.h> 22#include <linux/module.h>
23#include <linux/seq_file.h> 23#include <linux/seq_file.h>
24#include <linux/stat.h>
24#define _MASTER_FILE 25#define _MASTER_FILE
25 26
26#include "global.h" 27#include "global.h"
@@ -2191,79 +2192,79 @@ module_init(viafb_init);
2191module_exit(viafb_exit); 2192module_exit(viafb_exit);
2192 2193
2193#ifdef MODULE 2194#ifdef MODULE
2194module_param(viafb_memsize, int, 0); 2195module_param(viafb_memsize, int, S_IRUSR);
2195 2196
2196module_param(viafb_mode, charp, 0); 2197module_param(viafb_mode, charp, S_IRUSR);
2197MODULE_PARM_DESC(viafb_mode, "Set resolution (default=640x480)"); 2198MODULE_PARM_DESC(viafb_mode, "Set resolution (default=640x480)");
2198 2199
2199module_param(viafb_mode1, charp, 0); 2200module_param(viafb_mode1, charp, S_IRUSR);
2200MODULE_PARM_DESC(viafb_mode1, "Set resolution (default=640x480)"); 2201MODULE_PARM_DESC(viafb_mode1, "Set resolution (default=640x480)");
2201 2202
2202module_param(viafb_bpp, int, 0); 2203module_param(viafb_bpp, int, S_IRUSR);
2203MODULE_PARM_DESC(viafb_bpp, "Set color depth (default=32bpp)"); 2204MODULE_PARM_DESC(viafb_bpp, "Set color depth (default=32bpp)");
2204 2205
2205module_param(viafb_bpp1, int, 0); 2206module_param(viafb_bpp1, int, S_IRUSR);
2206MODULE_PARM_DESC(viafb_bpp1, "Set color depth (default=32bpp)"); 2207MODULE_PARM_DESC(viafb_bpp1, "Set color depth (default=32bpp)");
2207 2208
2208module_param(viafb_refresh, int, 0); 2209module_param(viafb_refresh, int, S_IRUSR);
2209MODULE_PARM_DESC(viafb_refresh, 2210MODULE_PARM_DESC(viafb_refresh,
2210 "Set CRT viafb_refresh rate (default = 60)"); 2211 "Set CRT viafb_refresh rate (default = 60)");
2211 2212
2212module_param(viafb_refresh1, int, 0); 2213module_param(viafb_refresh1, int, S_IRUSR);
2213MODULE_PARM_DESC(viafb_refresh1, 2214MODULE_PARM_DESC(viafb_refresh1,
2214 "Set CRT refresh rate (default = 60)"); 2215 "Set CRT refresh rate (default = 60)");
2215 2216
2216module_param(viafb_lcd_panel_id, int, 0); 2217module_param(viafb_lcd_panel_id, int, S_IRUSR);
2217MODULE_PARM_DESC(viafb_lcd_panel_id, 2218MODULE_PARM_DESC(viafb_lcd_panel_id,
2218 "Set Flat Panel type(Default=1024x768)"); 2219 "Set Flat Panel type(Default=1024x768)");
2219 2220
2220module_param(viafb_lcd_dsp_method, int, 0); 2221module_param(viafb_lcd_dsp_method, int, S_IRUSR);
2221MODULE_PARM_DESC(viafb_lcd_dsp_method, 2222MODULE_PARM_DESC(viafb_lcd_dsp_method,
2222 "Set Flat Panel display scaling method.(Default=Expandsion)"); 2223 "Set Flat Panel display scaling method.(Default=Expandsion)");
2223 2224
2224module_param(viafb_SAMM_ON, int, 0); 2225module_param(viafb_SAMM_ON, int, S_IRUSR);
2225MODULE_PARM_DESC(viafb_SAMM_ON, 2226MODULE_PARM_DESC(viafb_SAMM_ON,
2226 "Turn on/off flag of SAMM(Default=OFF)"); 2227 "Turn on/off flag of SAMM(Default=OFF)");
2227 2228
2228module_param(viafb_accel, int, 0); 2229module_param(viafb_accel, int, S_IRUSR);
2229MODULE_PARM_DESC(viafb_accel, 2230MODULE_PARM_DESC(viafb_accel,
2230 "Set 2D Hardware Acceleration: 0 = OFF, 1 = ON (default)"); 2231 "Set 2D Hardware Acceleration: 0 = OFF, 1 = ON (default)");
2231 2232
2232module_param(viafb_active_dev, charp, 0); 2233module_param(viafb_active_dev, charp, S_IRUSR);
2233MODULE_PARM_DESC(viafb_active_dev, "Specify active devices."); 2234MODULE_PARM_DESC(viafb_active_dev, "Specify active devices.");
2234 2235
2235module_param(viafb_display_hardware_layout, int, 0); 2236module_param(viafb_display_hardware_layout, int, S_IRUSR);
2236MODULE_PARM_DESC(viafb_display_hardware_layout, 2237MODULE_PARM_DESC(viafb_display_hardware_layout,
2237 "Display Hardware Layout (LCD Only, DVI Only...,etc)"); 2238 "Display Hardware Layout (LCD Only, DVI Only...,etc)");
2238 2239
2239module_param(viafb_second_size, int, 0); 2240module_param(viafb_second_size, int, S_IRUSR);
2240MODULE_PARM_DESC(viafb_second_size, 2241MODULE_PARM_DESC(viafb_second_size,
2241 "Set secondary device memory size"); 2242 "Set secondary device memory size");
2242 2243
2243module_param(viafb_dual_fb, int, 0); 2244module_param(viafb_dual_fb, int, S_IRUSR);
2244MODULE_PARM_DESC(viafb_dual_fb, 2245MODULE_PARM_DESC(viafb_dual_fb,
2245 "Turn on/off flag of dual framebuffer devices.(Default = OFF)"); 2246 "Turn on/off flag of dual framebuffer devices.(Default = OFF)");
2246 2247
2247module_param(viafb_platform_epia_dvi, int, 0); 2248module_param(viafb_platform_epia_dvi, int, S_IRUSR);
2248MODULE_PARM_DESC(viafb_platform_epia_dvi, 2249MODULE_PARM_DESC(viafb_platform_epia_dvi,
2249 "Turn on/off flag of DVI devices on EPIA board.(Default = OFF)"); 2250 "Turn on/off flag of DVI devices on EPIA board.(Default = OFF)");
2250 2251
2251module_param(viafb_device_lcd_dualedge, int, 0); 2252module_param(viafb_device_lcd_dualedge, int, S_IRUSR);
2252MODULE_PARM_DESC(viafb_device_lcd_dualedge, 2253MODULE_PARM_DESC(viafb_device_lcd_dualedge,
2253 "Turn on/off flag of dual edge panel.(Default = OFF)"); 2254 "Turn on/off flag of dual edge panel.(Default = OFF)");
2254 2255
2255module_param(viafb_bus_width, int, 0); 2256module_param(viafb_bus_width, int, S_IRUSR);
2256MODULE_PARM_DESC(viafb_bus_width, 2257MODULE_PARM_DESC(viafb_bus_width,
2257 "Set bus width of panel.(Default = 12)"); 2258 "Set bus width of panel.(Default = 12)");
2258 2259
2259module_param(viafb_lcd_mode, int, 0); 2260module_param(viafb_lcd_mode, int, S_IRUSR);
2260MODULE_PARM_DESC(viafb_lcd_mode, 2261MODULE_PARM_DESC(viafb_lcd_mode,
2261 "Set Flat Panel mode(Default=OPENLDI)"); 2262 "Set Flat Panel mode(Default=OPENLDI)");
2262 2263
2263module_param(viafb_lcd_port, charp, 0); 2264module_param(viafb_lcd_port, charp, S_IRUSR);
2264MODULE_PARM_DESC(viafb_lcd_port, "Specify LCD output port."); 2265MODULE_PARM_DESC(viafb_lcd_port, "Specify LCD output port.");
2265 2266
2266module_param(viafb_dvi_port, charp, 0); 2267module_param(viafb_dvi_port, charp, S_IRUSR);
2267MODULE_PARM_DESC(viafb_dvi_port, "Specify DVI output port."); 2268MODULE_PARM_DESC(viafb_dvi_port, "Specify DVI output port.");
2268 2269
2269MODULE_LICENSE("GPL"); 2270MODULE_LICENSE("GPL");