Commit 93967bee authored by Harald Welte's avatar Harald Welte Committed by Linus Torvalds

viafb: make module parameters visible in sysfs

Signed-off-by: default avatarHarald Welte <HaraldWelte@viatech.com>
Signed-off-by: default avatarFlorian 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 31de59d5
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/stat.h>
#define _MASTER_FILE #define _MASTER_FILE
#include "global.h" #include "global.h"
...@@ -2191,79 +2192,79 @@ module_init(viafb_init); ...@@ -2191,79 +2192,79 @@ module_init(viafb_init);
module_exit(viafb_exit); module_exit(viafb_exit);
#ifdef MODULE #ifdef MODULE
module_param(viafb_memsize, int, 0); module_param(viafb_memsize, int, S_IRUSR);
module_param(viafb_mode, charp, 0); module_param(viafb_mode, charp, S_IRUSR);
MODULE_PARM_DESC(viafb_mode, "Set resolution (default=640x480)"); MODULE_PARM_DESC(viafb_mode, "Set resolution (default=640x480)");
module_param(viafb_mode1, charp, 0); module_param(viafb_mode1, charp, S_IRUSR);
MODULE_PARM_DESC(viafb_mode1, "Set resolution (default=640x480)"); MODULE_PARM_DESC(viafb_mode1, "Set resolution (default=640x480)");
module_param(viafb_bpp, int, 0); module_param(viafb_bpp, int, S_IRUSR);
MODULE_PARM_DESC(viafb_bpp, "Set color depth (default=32bpp)"); MODULE_PARM_DESC(viafb_bpp, "Set color depth (default=32bpp)");
module_param(viafb_bpp1, int, 0); module_param(viafb_bpp1, int, S_IRUSR);
MODULE_PARM_DESC(viafb_bpp1, "Set color depth (default=32bpp)"); MODULE_PARM_DESC(viafb_bpp1, "Set color depth (default=32bpp)");
module_param(viafb_refresh, int, 0); module_param(viafb_refresh, int, S_IRUSR);
MODULE_PARM_DESC(viafb_refresh, MODULE_PARM_DESC(viafb_refresh,
"Set CRT viafb_refresh rate (default = 60)"); "Set CRT viafb_refresh rate (default = 60)");
module_param(viafb_refresh1, int, 0); module_param(viafb_refresh1, int, S_IRUSR);
MODULE_PARM_DESC(viafb_refresh1, MODULE_PARM_DESC(viafb_refresh1,
"Set CRT refresh rate (default = 60)"); "Set CRT refresh rate (default = 60)");
module_param(viafb_lcd_panel_id, int, 0); module_param(viafb_lcd_panel_id, int, S_IRUSR);
MODULE_PARM_DESC(viafb_lcd_panel_id, MODULE_PARM_DESC(viafb_lcd_panel_id,
"Set Flat Panel type(Default=1024x768)"); "Set Flat Panel type(Default=1024x768)");
module_param(viafb_lcd_dsp_method, int, 0); module_param(viafb_lcd_dsp_method, int, S_IRUSR);
MODULE_PARM_DESC(viafb_lcd_dsp_method, MODULE_PARM_DESC(viafb_lcd_dsp_method,
"Set Flat Panel display scaling method.(Default=Expandsion)"); "Set Flat Panel display scaling method.(Default=Expandsion)");
module_param(viafb_SAMM_ON, int, 0); module_param(viafb_SAMM_ON, int, S_IRUSR);
MODULE_PARM_DESC(viafb_SAMM_ON, MODULE_PARM_DESC(viafb_SAMM_ON,
"Turn on/off flag of SAMM(Default=OFF)"); "Turn on/off flag of SAMM(Default=OFF)");
module_param(viafb_accel, int, 0); module_param(viafb_accel, int, S_IRUSR);
MODULE_PARM_DESC(viafb_accel, MODULE_PARM_DESC(viafb_accel,
"Set 2D Hardware Acceleration: 0 = OFF, 1 = ON (default)"); "Set 2D Hardware Acceleration: 0 = OFF, 1 = ON (default)");
module_param(viafb_active_dev, charp, 0); module_param(viafb_active_dev, charp, S_IRUSR);
MODULE_PARM_DESC(viafb_active_dev, "Specify active devices."); MODULE_PARM_DESC(viafb_active_dev, "Specify active devices.");
module_param(viafb_display_hardware_layout, int, 0); module_param(viafb_display_hardware_layout, int, S_IRUSR);
MODULE_PARM_DESC(viafb_display_hardware_layout, MODULE_PARM_DESC(viafb_display_hardware_layout,
"Display Hardware Layout (LCD Only, DVI Only...,etc)"); "Display Hardware Layout (LCD Only, DVI Only...,etc)");
module_param(viafb_second_size, int, 0); module_param(viafb_second_size, int, S_IRUSR);
MODULE_PARM_DESC(viafb_second_size, MODULE_PARM_DESC(viafb_second_size,
"Set secondary device memory size"); "Set secondary device memory size");
module_param(viafb_dual_fb, int, 0); module_param(viafb_dual_fb, int, S_IRUSR);
MODULE_PARM_DESC(viafb_dual_fb, MODULE_PARM_DESC(viafb_dual_fb,
"Turn on/off flag of dual framebuffer devices.(Default = OFF)"); "Turn on/off flag of dual framebuffer devices.(Default = OFF)");
module_param(viafb_platform_epia_dvi, int, 0); module_param(viafb_platform_epia_dvi, int, S_IRUSR);
MODULE_PARM_DESC(viafb_platform_epia_dvi, MODULE_PARM_DESC(viafb_platform_epia_dvi,
"Turn on/off flag of DVI devices on EPIA board.(Default = OFF)"); "Turn on/off flag of DVI devices on EPIA board.(Default = OFF)");
module_param(viafb_device_lcd_dualedge, int, 0); module_param(viafb_device_lcd_dualedge, int, S_IRUSR);
MODULE_PARM_DESC(viafb_device_lcd_dualedge, MODULE_PARM_DESC(viafb_device_lcd_dualedge,
"Turn on/off flag of dual edge panel.(Default = OFF)"); "Turn on/off flag of dual edge panel.(Default = OFF)");
module_param(viafb_bus_width, int, 0); module_param(viafb_bus_width, int, S_IRUSR);
MODULE_PARM_DESC(viafb_bus_width, MODULE_PARM_DESC(viafb_bus_width,
"Set bus width of panel.(Default = 12)"); "Set bus width of panel.(Default = 12)");
module_param(viafb_lcd_mode, int, 0); module_param(viafb_lcd_mode, int, S_IRUSR);
MODULE_PARM_DESC(viafb_lcd_mode, MODULE_PARM_DESC(viafb_lcd_mode,
"Set Flat Panel mode(Default=OPENLDI)"); "Set Flat Panel mode(Default=OPENLDI)");
module_param(viafb_lcd_port, charp, 0); module_param(viafb_lcd_port, charp, S_IRUSR);
MODULE_PARM_DESC(viafb_lcd_port, "Specify LCD output port."); MODULE_PARM_DESC(viafb_lcd_port, "Specify LCD output port.");
module_param(viafb_dvi_port, charp, 0); module_param(viafb_dvi_port, charp, S_IRUSR);
MODULE_PARM_DESC(viafb_dvi_port, "Specify DVI output port."); MODULE_PARM_DESC(viafb_dvi_port, "Specify DVI output port.");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment