diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-05-19 13:36:03 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2010-04-20 16:23:19 -0400 |
commit | 107ea34db4560e6db41a9da90128ccc5e60f6b21 (patch) | |
tree | 60e75e5ade320b57fa3c3663f4df8c6d8a39e019 /drivers/video/via/hw.c | |
parent | f1b99aa9dbe908b2839885aa999d6e8512fe1040 (diff) |
viafb: Determine type of 2D engine and store it in chip_info
This will help us for the upcoming support for 2D acceleration using
the M1 engine.
[jc: fixed merge conflicts]
Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Diffstat (limited to 'drivers/video/via/hw.c')
-rw-r--r-- | drivers/video/via/hw.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index c94bcce71eaf..ae664fbd7e80 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c | |||
@@ -2016,6 +2016,21 @@ static void init_gfx_chip_info(struct pci_dev *pdev, | |||
2016 | CX700_REVISION_700; | 2016 | CX700_REVISION_700; |
2017 | } | 2017 | } |
2018 | } | 2018 | } |
2019 | |||
2020 | /* Determine which 2D engine we have */ | ||
2021 | switch (viaparinfo->chip_info->gfx_chip_name) { | ||
2022 | case UNICHROME_VX800: | ||
2023 | case UNICHROME_VX855: | ||
2024 | viaparinfo->chip_info->twod_engine = VIA_2D_ENG_M1; | ||
2025 | break; | ||
2026 | case UNICHROME_K8M890: | ||
2027 | case UNICHROME_P4M900: | ||
2028 | viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H5; | ||
2029 | break; | ||
2030 | default: | ||
2031 | viaparinfo->chip_info->twod_engine = VIA_2D_ENG_H2; | ||
2032 | break; | ||
2033 | } | ||
2019 | } | 2034 | } |
2020 | 2035 | ||
2021 | static void init_tmds_chip_info(void) | 2036 | static void init_tmds_chip_info(void) |