Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/dev/pci Pullup rev 1.37 (requested by jmcneill in t...



details:   https://anonhg.NetBSD.org/src/rev/afb8e151fefe
branches:  netbsd-2-0
changeset: 560199:afb8e151fefe
user:      jmc <jmc%NetBSD.org@localhost>
date:      Thu Apr 01 05:23:14 2004 +0000

description:
Pullup rev 1.37 (requested by jmcneill in ticket #36)

Don't allow block sizes < 288 bytes on VT823x chips. PR#22788

diffstat:

 sys/dev/pci/auvia.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r fb742c82f1ea -r afb8e151fefe sys/dev/pci/auvia.c
--- a/sys/dev/pci/auvia.c       Thu Apr 01 02:44:55 2004 +0000
+++ b/sys/dev/pci/auvia.c       Thu Apr 01 05:23:14 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auvia.c,v 1.36 2004/03/25 23:07:09 xtraeme Exp $       */
+/*     $NetBSD: auvia.c,v 1.36.2.1 2004/04/01 05:23:14 jmc Exp $       */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.36 2004/03/25 23:07:09 xtraeme Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvia.c,v 1.36.2.1 2004/04/01 05:23:14 jmc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -754,6 +754,12 @@
 int
 auvia_round_blocksize(void *addr, int blk)
 {
+       struct auvia_softc *sc = addr;
+
+       /* XXX VT823x might have the limitation of dma_ops size */
+       if (sc->sc_flags & AUVIA_FLAGS_VT8233 && blk < 288)
+               blk = 288;
+
        return (blk & -32);
 }
 



Home | Main Index | Thread Index | Old Index