From 32f7789dd7a418379a6920652059d2a49060a2a2 Mon Sep 17 00:00:00 2001 From: drochner Date: Mon, 8 Jul 2002 19:48:37 +0000 Subject: [PATCH] there is at least one VGA chip (Silicon Motion Lynx EM+) where fast scrolling by moving the display offset pointer doesn't work --- sys/dev/pci/vga_pci.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c index 704f92ebb25c..a53e6458d5c5 100644 --- a/sys/dev/pci/vga_pci.c +++ b/sys/dev/pci/vga_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: vga_pci.c,v 1.16 2002/07/02 18:17:30 drochner Exp $ */ +/* $NetBSD: vga_pci.c,v 1.17 2002/07/08 19:48:37 drochner Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vga_pci.c,v 1.16 2002/07/02 18:17:30 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vga_pci.c,v 1.17 2002/07/08 19:48:37 drochner Exp $"); #include #include @@ -89,15 +89,13 @@ const struct vga_funcs vga_pci_funcs = { vga_pci_mmap, }; -#if 0 /* caught by the more general rule below */ static const struct { int id; int quirks; } vga_pci_quirks[] = { - {PCI_ID_CODE(PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RAGE_XL_AGP), - VGA_QUIRK_ONEFONT}, + {PCI_ID_CODE(PCI_VENDOR_SILMOTION, PCI_PRODUCT_SILMOTION_LYNX_EMP), + VGA_QUIRK_NOFASTSCROLL}, }; -#endif static const struct { int vid; @@ -112,13 +110,11 @@ vga_pci_lookup_quirks(pa) { int i; -#if 0 for (i = 0; i < sizeof(vga_pci_quirks) / sizeof (vga_pci_quirks[0]); i++) { if (vga_pci_quirks[i].id == pa->pa_id) return (vga_pci_quirks[i].quirks); } -#endif for (i = 0; i < sizeof(vga_pci_vquirks) / sizeof (vga_pci_vquirks[0]); i++) { if (vga_pci_vquirks[i].vid == PCI_VENDOR(pa->pa_id))