diff options
author | 2004-01-20 19:23:06 +0000 | |
---|---|---|
committer | 2004-01-20 19:23:06 +0000 | |
commit | 9bef5d82b59d7a3429a0f949e47ae5dccb6592b9 (patch) | |
tree | 06b90080956b81d072ebce0b8f0d36c1c384fd75 | |
parent | notes on pool_cache. ok markus jmc a while back. (diff) | |
download | wireguard-openbsd-9bef5d82b59d7a3429a0f949e47ae5dccb6592b9.tar.xz wireguard-openbsd-9bef5d82b59d7a3429a0f949e47ae5dccb6592b9.zip |
Correct checks for non-i810 chip; from FreeBSD.
test and ok millert@
-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"); |