there is at least one VGA chip (Silicon Motion Lynx EM+) where fast scrolling

by moving the display offset pointer doesn't work
This commit is contained in:
drochner 2002-07-08 19:48:37 +00:00
parent 2693ad5a05
commit 32f7789dd7
1 changed files with 4 additions and 8 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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))