Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Set RI_NO_AUTO in rip->ri_flg if tga_init() is i...



details:   https://anonhg.NetBSD.org/src/rev/9b59bc7db345
branches:  trunk
changeset: 754892:9b59bc7db345
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat May 15 06:38:34 2010 +0000

description:
Set RI_NO_AUTO in rip->ri_flg if tga_init() is invoked from cnattach.

diffstat:

 sys/dev/pci/tga.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r fa09ed80b75a -r 9b59bc7db345 sys/dev/pci/tga.c
--- a/sys/dev/pci/tga.c Sat May 15 06:36:12 2010 +0000
+++ b/sys/dev/pci/tga.c Sat May 15 06:38:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.77 2009/05/16 14:27:30 tsutsui Exp $ */
+/* $NetBSD: tga.c,v 1.78 2010/05/15 06:38:34 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.77 2009/05/16 14:27:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.78 2010/05/15 06:38:34 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -331,6 +331,8 @@
        rip->ri_height = dc->dc_ht;
        rip->ri_stride = dc->dc_rowbytes;
        rip->ri_hw = dc;
+       if (dc == &tga_console_dc)
+               rip->ri_flg |= RI_NO_AUTO;
 
        if (tgac->tgac_phys_depth == 32) {
                rip->ri_rnum = 8;



Home | Main Index | Thread Index | Old Index