diff options
author | Jonathan Corbet <corbet@lwn.net> | 2010-04-22 15:48:09 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-05-07 19:16:02 -0400 |
commit | 24b4d82e4715841848a499534ed5cb7db3d6bca3 (patch) | |
tree | 957c3664ac41da616e2aec7e8adb07247ee1a551 /drivers/video/via/hw.h | |
parent | f045f77bc0bf238a871b10bea9e425329a8e4abc (diff) |
viafb: Separate global and fb-specific data
This patch moves data of interest into a new viafb_dev structure which
describes the device as a whole; the idea here is to create a separation
between what all devices may need and what the framebuffer device in
particular needs.
I've also made some small steps toward thinning out the global.h mess.
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Cc: Harald Welte <laforge@gnumonks.org>
Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/video/via/hw.h')
-rw-r--r-- | drivers/video/via/hw.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/via/hw.h b/drivers/video/via/hw.h index d6b25acd4a99..d248f4dc12ec 100644 --- a/drivers/video/via/hw.h +++ b/drivers/video/via/hw.h | |||
@@ -900,15 +900,13 @@ int viafb_setmode(struct VideoModeTable *vmode_tbl, int video_bpp, | |||
900 | struct VideoModeTable *vmode_tbl1, int video_bpp1); | 900 | struct VideoModeTable *vmode_tbl1, int video_bpp1); |
901 | void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, int refresh, | 901 | void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, int refresh, |
902 | struct VideoModeTable *vmode_tbl); | 902 | struct VideoModeTable *vmode_tbl); |
903 | void viafb_init_chip_info(struct pci_dev *pdev, | 903 | void viafb_init_chip_info(int chip_type); |
904 | const struct pci_device_id *pdi); | ||
905 | void viafb_init_dac(int set_iga); | 904 | void viafb_init_dac(int set_iga); |
906 | int viafb_get_pixclock(int hres, int vres, int vmode_refresh); | 905 | int viafb_get_pixclock(int hres, int vres, int vmode_refresh); |
907 | int viafb_get_refresh(int hres, int vres, u32 float_refresh); | 906 | int viafb_get_refresh(int hres, int vres, u32 float_refresh); |
908 | void viafb_update_device_setting(int hres, int vres, int bpp, | 907 | void viafb_update_device_setting(int hres, int vres, int bpp, |
909 | int vmode_refresh, int flag); | 908 | int vmode_refresh, int flag); |
910 | 909 | ||
911 | int viafb_get_fb_size_from_pci(void); | ||
912 | void viafb_set_iga_path(void); | 910 | void viafb_set_iga_path(void); |
913 | void viafb_set_primary_address(u32 addr); | 911 | void viafb_set_primary_address(u32 addr); |
914 | void viafb_set_secondary_address(u32 addr); | 912 | void viafb_set_secondary_address(u32 addr); |