summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYusuf Khan <yusisamerican@gmail.com>2024-05-02 00:02:54 -0500
committerMarge Bot <emma+marge@anholt.net>2024-05-02 23:06:24 +0000
commit63e8ad83c7b7cb131e9213980f6c72df83ae6319 (patch)
treebba3e646ea44aff147344b946073e987c2a6fa28 /src
parentb1b6f64bde0215c13e22615553a79f433368af80 (diff)
nv: support 0xf0 device id range
inspired by a bugzilla patch: "nv-2.1.12 : patch to add the latest and a lot of Nvidia CPUs (56) (until February 2009)" Signed-off-by: Yusuf Khan <yusisamerican@gmail.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/17>
Diffstat (limited to 'src')
-rw-r--r--src/nv_driver.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 26c9666..01e556d 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -876,6 +876,7 @@ NVIsSupported(CARD32 id)
case 0x0090:
case 0x00C0:
case 0x0120:
+ case 0x00F0:
case 0x0140:
case 0x0160:
case 0x0170:
@@ -1838,6 +1839,29 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
case 0x03D0:
pNv->Architecture = NV_ARCH_40;
break;
+ case 0x00F0:
+ switch (pNv->Chipset & 0xf) {
+ case 0x1: /* GeForce 6600 GT */
+ case 0x2: /* GeForce 6600 */
+ case 0x3: /* GeForce 6200 */
+ case 0x4: /* GeForce 6600 LE */
+ case 0x5: /* GeForce 7800 GS */
+ case 0x6: /* GeForce 6800 GS/XT */
+ case 0x8: /* Quadro FX 3400/4400 */
+ case 0x9: /* GeForce 6800 GT/GTO/Ultra */
+ pNv->Architecture = NV_ARCH_40;
+ break;
+ case 0xa:
+ case 0xb:
+ case 0xc:
+ case 0xd:
+ case 0xe:
+ pNv->Architecture = NV_ARCH_30;
+ break;
+ case 0xf:
+ pNv->Architecture = NV_ARCH_10;
+ break;
+ }
default:
pNv->Architecture = NV_ARCH_04;
break;