Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci use IO_VGA as symbolic constant for 0x3c0 i...
details: https://anonhg.NetBSD.org/src/rev/5e4ca96062b3
branches: trunk
changeset: 786602:5e4ca96062b3
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri May 03 15:42:29 2013 +0000
description:
use IO_VGA as symbolic constant for 0x3c0 in x86_genfb_set_mapreg()
diffstat:
sys/arch/x86/pci/pci_machdep.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r 2414d035f882 -r 5e4ca96062b3 sys/arch/x86/pci/pci_machdep.c
--- a/sys/arch/x86/pci/pci_machdep.c Fri May 03 15:38:04 2013 +0000
+++ b/sys/arch/x86/pci/pci_machdep.c Fri May 03 15:42:29 2013 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index