diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-09-22 19:47:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:53 -0400 |
commit | 93967bee6f8b5f5bfbab0e8d6cab13f45d1ace75 (patch) | |
tree | b13465cd248dbf2b2b1f0edbaf2f66ec00213431 /drivers/video | |
parent | 31de59d5e1cd6968ea9d1a19cceefb7a037e46bf (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.c | 43 |
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); | |||
2191 | module_exit(viafb_exit); | 2192 | module_exit(viafb_exit); |
2192 | 2193 | ||
2193 | #ifdef MODULE | 2194 | #ifdef MODULE |
2194 | module_param(viafb_memsize, int, 0); | 2195 | module_param(viafb_memsize, int, S_IRUSR); |
2195 | 2196 | ||
2196 | module_param(viafb_mode, charp, 0); | 2197 | module_param(viafb_mode, charp, S_IRUSR); |
2197 | MODULE_PARM_DESC(viafb_mode, "Set resolution (default=640x480)"); | 2198 | MODULE_PARM_DESC(viafb_mode, "Set resolution (default=640x480)"); |
2198 | 2199 | ||
2199 | module_param(viafb_mode1, charp, 0); | 2200 | module_param(viafb_mode1, charp, S_IRUSR); |
2200 | MODULE_PARM_DESC(viafb_mode1, "Set resolution (default=640x480)"); | 2201 | MODULE_PARM_DESC(viafb_mode1, "Set resolution (default=640x480)"); |
2201 | 2202 | ||
2202 | module_param(viafb_bpp, int, 0); | 2203 | module_param(viafb_bpp, int, S_IRUSR); |
2203 | MODULE_PARM_DESC(viafb_bpp, "Set color depth (default=32bpp)"); | 2204 | MODULE_PARM_DESC(viafb_bpp, "Set color depth (default=32bpp)"); |
2204 | 2205 | ||
2205 | module_param(viafb_bpp1, int, 0); | 2206 | module_param(viafb_bpp1, int, S_IRUSR); |
2206 | MODULE_PARM_DESC(viafb_bpp1, "Set color depth (default=32bpp)"); | 2207 | MODULE_PARM_DESC(viafb_bpp1, "Set color depth (default=32bpp)"); |
2207 | 2208 | ||
2208 | module_param(viafb_refresh, int, 0); | 2209 | module_param(viafb_refresh, int, S_IRUSR); |
2209 | MODULE_PARM_DESC(viafb_refresh, | 2210 | MODULE_PARM_DESC(viafb_refresh, |
2210 | "Set CRT viafb_refresh rate (default = 60)"); | 2211 | "Set CRT viafb_refresh rate (default = 60)"); |
2211 | 2212 | ||
2212 | module_param(viafb_refresh1, int, 0); | 2213 | module_param(viafb_refresh1, int, S_IRUSR); |
2213 | MODULE_PARM_DESC(viafb_refresh1, | 2214 | MODULE_PARM_DESC(viafb_refresh1, |
2214 | "Set CRT refresh rate (default = 60)"); | 2215 | "Set CRT refresh rate (default = 60)"); |
2215 | 2216 | ||
2216 | module_param(viafb_lcd_panel_id, int, 0); | 2217 | module_param(viafb_lcd_panel_id, int, S_IRUSR); |
2217 | MODULE_PARM_DESC(viafb_lcd_panel_id, | 2218 | MODULE_PARM_DESC(viafb_lcd_panel_id, |
2218 | "Set Flat Panel type(Default=1024x768)"); | 2219 | "Set Flat Panel type(Default=1024x768)"); |
2219 | 2220 | ||
2220 | module_param(viafb_lcd_dsp_method, int, 0); | 2221 | module_param(viafb_lcd_dsp_method, int, S_IRUSR); |
2221 | MODULE_PARM_DESC(viafb_lcd_dsp_method, | 2222 | MODULE_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 | ||
2224 | module_param(viafb_SAMM_ON, int, 0); | 2225 | module_param(viafb_SAMM_ON, int, S_IRUSR); |
2225 | MODULE_PARM_DESC(viafb_SAMM_ON, | 2226 | MODULE_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 | ||
2228 | module_param(viafb_accel, int, 0); | 2229 | module_param(viafb_accel, int, S_IRUSR); |
2229 | MODULE_PARM_DESC(viafb_accel, | 2230 | MODULE_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 | ||
2232 | module_param(viafb_active_dev, charp, 0); | 2233 | module_param(viafb_active_dev, charp, S_IRUSR); |
2233 | MODULE_PARM_DESC(viafb_active_dev, "Specify active devices."); | 2234 | MODULE_PARM_DESC(viafb_active_dev, "Specify active devices."); |
2234 | 2235 | ||
2235 | module_param(viafb_display_hardware_layout, int, 0); | 2236 | module_param(viafb_display_hardware_layout, int, S_IRUSR); |
2236 | MODULE_PARM_DESC(viafb_display_hardware_layout, | 2237 | MODULE_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 | ||
2239 | module_param(viafb_second_size, int, 0); | 2240 | module_param(viafb_second_size, int, S_IRUSR); |
2240 | MODULE_PARM_DESC(viafb_second_size, | 2241 | MODULE_PARM_DESC(viafb_second_size, |
2241 | "Set secondary device memory size"); | 2242 | "Set secondary device memory size"); |
2242 | 2243 | ||
2243 | module_param(viafb_dual_fb, int, 0); | 2244 | module_param(viafb_dual_fb, int, S_IRUSR); |
2244 | MODULE_PARM_DESC(viafb_dual_fb, | 2245 | MODULE_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 | ||
2247 | module_param(viafb_platform_epia_dvi, int, 0); | 2248 | module_param(viafb_platform_epia_dvi, int, S_IRUSR); |
2248 | MODULE_PARM_DESC(viafb_platform_epia_dvi, | 2249 | MODULE_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 | ||
2251 | module_param(viafb_device_lcd_dualedge, int, 0); | 2252 | module_param(viafb_device_lcd_dualedge, int, S_IRUSR); |
2252 | MODULE_PARM_DESC(viafb_device_lcd_dualedge, | 2253 | MODULE_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 | ||
2255 | module_param(viafb_bus_width, int, 0); | 2256 | module_param(viafb_bus_width, int, S_IRUSR); |
2256 | MODULE_PARM_DESC(viafb_bus_width, | 2257 | MODULE_PARM_DESC(viafb_bus_width, |
2257 | "Set bus width of panel.(Default = 12)"); | 2258 | "Set bus width of panel.(Default = 12)"); |
2258 | 2259 | ||
2259 | module_param(viafb_lcd_mode, int, 0); | 2260 | module_param(viafb_lcd_mode, int, S_IRUSR); |
2260 | MODULE_PARM_DESC(viafb_lcd_mode, | 2261 | MODULE_PARM_DESC(viafb_lcd_mode, |
2261 | "Set Flat Panel mode(Default=OPENLDI)"); | 2262 | "Set Flat Panel mode(Default=OPENLDI)"); |
2262 | 2263 | ||
2263 | module_param(viafb_lcd_port, charp, 0); | 2264 | module_param(viafb_lcd_port, charp, S_IRUSR); |
2264 | MODULE_PARM_DESC(viafb_lcd_port, "Specify LCD output port."); | 2265 | MODULE_PARM_DESC(viafb_lcd_port, "Specify LCD output port."); |
2265 | 2266 | ||
2266 | module_param(viafb_dvi_port, charp, 0); | 2267 | module_param(viafb_dvi_port, charp, S_IRUSR); |
2267 | MODULE_PARM_DESC(viafb_dvi_port, "Specify DVI output port."); | 2268 | MODULE_PARM_DESC(viafb_dvi_port, "Specify DVI output port."); |
2268 | 2269 | ||
2269 | MODULE_LICENSE("GPL"); | 2270 | MODULE_LICENSE("GPL"); |