diff options
Diffstat (limited to 'drivers/video/via/hw.h')
-rw-r--r-- | drivers/video/via/hw.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/video/via/hw.h b/drivers/video/via/hw.h index 12ef32d334cb..a109de379816 100644 --- a/drivers/video/via/hw.h +++ b/drivers/video/via/hw.h | |||
@@ -24,6 +24,11 @@ | |||
24 | 24 | ||
25 | #include "viamode.h" | 25 | #include "viamode.h" |
26 | #include "global.h" | 26 | #include "global.h" |
27 | #include "via_modesetting.h" | ||
28 | |||
29 | #define viafb_read_reg(p, i) via_read_reg(p, i) | ||
30 | #define viafb_write_reg(i, p, d) via_write_reg(p, i, d) | ||
31 | #define viafb_write_reg_mask(i, p, d, m) via_write_reg_mask(p, i, d, m) | ||
27 | 32 | ||
28 | /*************************************************** | 33 | /*************************************************** |
29 | * Definition IGA1 Design Method of CRTC Registers * | 34 | * Definition IGA1 Design Method of CRTC Registers * |
@@ -823,8 +828,8 @@ struct iga2_crtc_timing { | |||
823 | }; | 828 | }; |
824 | 829 | ||
825 | /* device ID */ | 830 | /* device ID */ |
826 | #define CLE266 0x3123 | 831 | #define CLE266_FUNCTION3 0x3123 |
827 | #define KM400 0x3205 | 832 | #define KM400_FUNCTION3 0x3205 |
828 | #define CN400_FUNCTION2 0x2259 | 833 | #define CN400_FUNCTION2 0x2259 |
829 | #define CN400_FUNCTION3 0x3259 | 834 | #define CN400_FUNCTION3 0x3259 |
830 | /* support VT3314 chipset */ | 835 | /* support VT3314 chipset */ |
@@ -870,7 +875,6 @@ extern int viafb_LCD_ON; | |||
870 | extern int viafb_DVI_ON; | 875 | extern int viafb_DVI_ON; |
871 | extern int viafb_hotplug; | 876 | extern int viafb_hotplug; |
872 | 877 | ||
873 | void viafb_write_reg_mask(u8 index, int io_port, u8 data, u8 mask); | ||
874 | void viafb_set_output_path(int device, int set_iga, | 878 | void viafb_set_output_path(int device, int set_iga, |
875 | int output_interface); | 879 | int output_interface); |
876 | 880 | ||
@@ -885,8 +889,6 @@ void viafb_crt_disable(void); | |||
885 | void viafb_crt_enable(void); | 889 | void viafb_crt_enable(void); |
886 | void init_ad9389(void); | 890 | void init_ad9389(void); |
887 | /* Access I/O Function */ | 891 | /* Access I/O Function */ |
888 | void viafb_write_reg(u8 index, u16 io_port, u8 data); | ||
889 | u8 viafb_read_reg(int io_port, u8 index); | ||
890 | void viafb_lock_crt(void); | 892 | void viafb_lock_crt(void); |
891 | void viafb_unlock_crt(void); | 893 | void viafb_unlock_crt(void); |
892 | void viafb_load_fetch_count_reg(int h_addr, int bpp_byte, int set_iga); | 894 | void viafb_load_fetch_count_reg(int h_addr, int bpp_byte, int set_iga); |
@@ -900,20 +902,14 @@ int viafb_setmode(struct VideoModeTable *vmode_tbl, int video_bpp, | |||
900 | struct VideoModeTable *vmode_tbl1, int video_bpp1); | 902 | struct VideoModeTable *vmode_tbl1, int video_bpp1); |
901 | void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, int refresh, | 903 | void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, int refresh, |
902 | struct VideoModeTable *vmode_tbl); | 904 | struct VideoModeTable *vmode_tbl); |
903 | void viafb_init_chip_info(struct pci_dev *pdev, | 905 | void viafb_init_chip_info(int chip_type); |
904 | const struct pci_device_id *pdi); | ||
905 | void viafb_init_dac(int set_iga); | 906 | void viafb_init_dac(int set_iga); |
906 | int viafb_get_pixclock(int hres, int vres, int vmode_refresh); | 907 | int viafb_get_pixclock(int hres, int vres, int vmode_refresh); |
907 | int viafb_get_refresh(int hres, int vres, u32 float_refresh); | 908 | int viafb_get_refresh(int hres, int vres, u32 float_refresh); |
908 | void viafb_update_device_setting(int hres, int vres, int bpp, | 909 | void viafb_update_device_setting(int hres, int vres, int bpp, |
909 | int vmode_refresh, int flag); | 910 | int vmode_refresh, int flag); |
910 | 911 | ||
911 | int viafb_get_fb_size_from_pci(void); | ||
912 | void viafb_set_iga_path(void); | 912 | void viafb_set_iga_path(void); |
913 | void viafb_set_primary_address(u32 addr); | ||
914 | void viafb_set_secondary_address(u32 addr); | ||
915 | void viafb_set_primary_pitch(u32 pitch); | ||
916 | void viafb_set_secondary_pitch(u32 pitch); | ||
917 | void viafb_set_primary_color_register(u8 index, u8 red, u8 green, u8 blue); | 913 | void viafb_set_primary_color_register(u8 index, u8 red, u8 green, u8 blue); |
918 | void viafb_set_secondary_color_register(u8 index, u8 red, u8 green, u8 blue); | 914 | void viafb_set_secondary_color_register(u8 index, u8 red, u8 green, u8 blue); |
919 | void viafb_get_fb_info(unsigned int *fb_base, unsigned int *fb_len); | 915 | void viafb_get_fb_info(unsigned int *fb_base, unsigned int *fb_len); |