Module Name:    src
Committed By:   jakllsch
Date:           Fri May  3 15:42:31 UTC 2013

Modified Files:
        src/sys/arch/x86/pci: pci_machdep.c

Log Message:
use IO_VGA as symbolic constant for 0x3c0 in x86_genfb_set_mapreg()


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/x86/pci/pci_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/pci/pci_machdep.c
diff -u src/sys/arch/x86/pci/pci_machdep.c:1.56 src/sys/arch/x86/pci/pci_machdep.c:1.57
--- src/sys/arch/x86/pci/pci_machdep.c:1.56	Thu Mar  1 20:16:27 2012
+++ src/sys/arch/x86/pci/pci_machdep.c	Fri May  3 15:42:29 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_machdep.c,v 1.56 2012/03/01 20:16:27 jakllsch Exp $	*/
+/*	$NetBSD: pci_machdep.c,v 1.57 2013/05/03 15:42:29 jakllsch Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.56 2012/03/01 20:16:27 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.57 2013/05/03 15:42:29 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -803,10 +803,10 @@ einval:
 static void
 x86_genfb_set_mapreg(void *opaque, int index, int r, int g, int b)
 {
-	outb(0x3c0 + VGA_DAC_ADDRW, index);
-	outb(0x3c0 + VGA_DAC_PALETTE, (uint8_t)r >> 2);
-	outb(0x3c0 + VGA_DAC_PALETTE, (uint8_t)g >> 2);
-	outb(0x3c0 + VGA_DAC_PALETTE, (uint8_t)b >> 2);
+	outb(IO_VGA + VGA_DAC_ADDRW, index);
+	outb(IO_VGA + VGA_DAC_PALETTE, (uint8_t)r >> 2);
+	outb(IO_VGA + VGA_DAC_PALETTE, (uint8_t)g >> 2);
+	outb(IO_VGA + VGA_DAC_PALETTE, (uint8_t)b >> 2);
 }
 
 static bool

Reply via email to