Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci read 32bits instead of 64bits and truncate the u...
details: https://anonhg.NetBSD.org/src/rev/67be175bcebc
branches: trunk
changeset: 760010:67be175bcebc
user: cegger <cegger%NetBSD.org@localhost>
date: Thu Dec 23 21:34:02 2010 +0000
description:
read 32bits instead of 64bits and truncate the upper 32bits
diffstat:
sys/dev/pci/voyagerfb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d588f2379ef5 -r 67be175bcebc sys/dev/pci/voyagerfb.c
--- a/sys/dev/pci/voyagerfb.c Thu Dec 23 21:11:37 2010 +0000
+++ b/sys/dev/pci/voyagerfb.c Thu Dec 23 21:34:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: voyagerfb.c,v 1.5 2010/12/16 06:45:51 cegger Exp $ */
+/* $NetBSD: voyagerfb.c,v 1.6 2010/12/23 21:34:02 cegger Exp $ */
/*
* Copyright (c) 2009 Michael Lorenz
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.5 2010/12/16 06:45:51 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.6 2010/12/23 21:34:02 cegger Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -207,7 +207,7 @@
sc->sc_dataport = bus_space_vaddr(sc->sc_memt, sc->sc_regh);
sc->sc_dataport += SM502_DATAPORT;
- reg = bus_space_read_8(sc->sc_memt, sc->sc_regh, SM502_PANEL_DISP_CRTL);
+ reg = bus_space_read_4(sc->sc_memt, sc->sc_regh, SM502_PANEL_DISP_CRTL);
switch (reg & SM502_PDC_DEPTH_MASK) {
case SM502_PDC_8BIT:
sc->sc_depth = 8;
Home |
Main Index |
Thread Index |
Old Index