diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-01-20 19:23:07 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-01-20 19:23:07 +0000 |
commit | da69718c36f22fca1dbdcbace371c13fcb1b1e74 (patch) | |
tree | 163600decbeef4f6ce811f8a9b907e706235f80f /sys/dev | |
parent | 58c9ff4e2ea895e53026f10391c50c5dbcfabbfd (diff) |
Correct checks for non-i810 chip; from FreeBSD.
test and ok millert@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/agp_i810.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c index 1bcf5f1dab1..2115778a41e 100644 --- a/sys/dev/pci/agp_i810.c +++ b/sys/dev/pci/agp_i810.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agp_i810.c,v 1.5 2003/03/19 20:06:28 millert Exp $ */ +/* $OpenBSD: agp_i810.c,v 1.6 2004/01/20 19:23:06 grange Exp $ */ /* $NetBSD: agp_i810.c,v 1.15 2003/01/31 00:07:39 thorpej Exp $ */ /*- @@ -320,7 +320,7 @@ agp_i810_bind_page(struct vga_pci_softc *sc, off_t offset, bus_addr_t physical) return (EINVAL); } - if (isc->chiptype == CHIP_I810) { + if (isc->chiptype != CHIP_I810) { if ((offset >> AGP_PAGE_SHIFT) < isc->stolen) { #ifdef DEBUG printf("agp: trying to bind into stolen memory\n"); @@ -342,7 +342,7 @@ agp_i810_unbind_page(struct vga_pci_softc *sc, off_t offset) if (offset < 0 || offset >= (isc->gatt->ag_entries << AGP_PAGE_SHIFT)) return (EINVAL); - if (isc->chiptype == CHIP_I830 ) { + if (isc->chiptype != CHIP_I810 ) { if ((offset >> AGP_PAGE_SHIFT) < isc->stolen) { #ifdef DEBUG printf("agp: trying to unbind from stolen memory\n"); |